[PyQt] QScriptEngineAgent segmentation fault

Phil Thompson phil at riverbankcomputing.com
Wed Oct 3 20:39:23 BST 2012


On Wed, 3 Oct 2012 17:57:39 +0100, Robert Kent <rob at gulon.co.uk> wrote:
> 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.

Bugs I'm afraid. Fixed in tonight's snapshot - you'll need the SIP
snapshot as well.

Phil


More information about the PyQt mailing list