[PyQt] QScriptEngineAgent segmentation fault

Robert Kent rob at gulon.co.uk
Wed Oct 3 17:57:39 BST 2012


HI All,

I'm trying to implement a QtScript debugger but am unable to install a QScriptEngineAgent on a QScriptEngine. A much simplified example of what I'm doing is shown below:

from PyQt4.QtCore import *
from PyQt4.QtGui import *
from PyQt4.QtScript import *

if __name__=="__main__":
    from sys import argv
    a=QCoreApplication(argv)
    engine=QScriptEngine()
    agent=QScriptEngineAgent(engine)
    engine.setAgent(agent)

The last line line causes a "Segmentation fault: 11". I'm using PyQt 4.9.4 with Python 2.7.2 on Mac OSX Mountain Lion. Any thoughts, help or suggestions would be greatly appreciated.

Cheers, Rob




More information about the PyQt mailing list