[Twisted-Python] qtreactor and OSX

Jean-Paul Calderone exarkun at divmod.com
Thu Apr 26 11:54:46 EDT 2007

On Thu, 26 Apr 2007 11:23:43 -0400, Black <python at blackslens.com> wrote:
>I have a program that uses QT and twisted. I've had no problem  running it 
>on a Linux machine, but when I moved it over to a Mac, I  get the following 
>Traceback (most recent call last):
>   File "cursor_test.py", line 8, in <module>
>     from twisted.internet import qtreactor
>   File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ python2.5 
>/site-packages/twisted/internet/qtreactor.py", line 7, in  <module>
>     from twisted.plugins.qtreactor_stub import errorMessage
>ImportError: No module named qtreactor_stub
>When I look in /Library/Frameworks/Python.framework/Versions/2.5/lib/ 
>python2.5/site-packages/twisted/plugins, qtreactor_stub.py is indeed  not 
>present. Has anyone seen this before and can tell me what is  going on here?
>Any guidance would be appreciated...

This seems to be a bug in Twisted.  The module which it *should* be importing
is twisted.plugins.twisted_qtstub (which I am guessing you have).

Renaming twisted_qtstub to qtreactor_stub or changing qtreactor.py to import
the name that actually exists should fix this.


More information about the Twisted-Python mailing list