[Twisted-Python] wx and twisted

Jean-Paul Calderone exarkun at divmod.com
Mon Dec 3 08:47:55 EST 2007


On Mon, 03 Dec 2007 14:33:44 +0100, Michele Petrazzo - Unipex srl <michele.petrazzo at unipex.it> wrote:
>Hi all,
>just installed the last wx and twisted and tring my already working app and:
>
>Traceback (most recent call last):
>   File "threading.py", line 442, in __bootstrap
>     self.run()
>   File "threading.py", line 422, in run
>     self.__target(*self.__args, **self.__kwargs)
>   File "/usr/lib/python2.4/site- 
>packages/twisted/internet/_threadedselect.py", line 149, in _workerInThread
>     fn(*args)
>--- <exception caught here> ---
>   File "/usr/lib/python2.4/site- 
>packages/twisted/internet/_threadedselect.py", line 169, in 
>_doSelectInThread
>     [], timeout)
>exceptions.ValueError: file descriptor cannot be a negative integer (-1)
>
>and on shutdown:
>
>Traceback (most recent call last):
>   File "/usr/lib/python2.4/site-packages/wx-2.8-gtk2-unicode/wx/_core.py", 
>line 14364, in <lambda>
>     lambda event: event.callable(*event.args, **event.kw) )
>   File "/usr/lib/python2.4/site- 
>packages/twisted/internet/_threadedselect.py", line 243, in _interleave
>     msg, args = self.toMainThread.get_nowait()
>   File "/usr/lib/python2.4/Queue.py", line 141, in get_nowait
>     return self.get(False)
>   File "/usr/lib/python2.4/Queue.py", line 116, in get
>     raise Empty
>Queue.Empty
>
>
>How debug it?

Start looking at what has changed in wx since the previous working version,
or start looking at which calls are resulting in invalid file descriptors.

Or you could try to get the Twisted unit tests to run with wxreactor, and
then work on making them pass.

Jean-Paul




More information about the Twisted-Python mailing list