[PyKDE] Need help on a weird QThread problem

İsmail Dönmez ismail at uludag.org.tr
Wed Oct 5 08:34:40 BST 2005


FWIW I switched to Python threading module and everything is ok now.

On Friday 30 September 2005 17:27, İsmail Dönmez wrote:
> Hi all,
>
> I implemented a QThread based function to run some external command in my
> application. Its works like this :
>
> main widget:
>
> command  = QThreadClass()
> command.start()
>
> in QThreadClass:
>
> def run(self):
>      # Run some external command
>
> but when the main application exits I get this:
>
> Error in atexit._run_exitfuncs:
> Traceback (most recent call last):
>   File "/usr/lib/python2.4/atexit.py", line 24, in _run_exitfuncs
>     func(*targs, **kargs)
>   File "/usr/lib/python2.4/threading.py", line 636, in __exitfunc
>     self._Thread__delete()
>   File "/usr/lib/python2.4/threading.py", line 522, in __delete
>     del _active[_get_ident()]
> KeyError: -1211651904
> Error in sys.exitfunc:
> Traceback (most recent call last):
>   File "/usr/lib/python2.4/atexit.py", line 24, in _run_exitfuncs
>     func(*targs, **kargs)
>   File "/usr/lib/python2.4/threading.py", line 636, in __exitfunc
>     self._Thread__delete()
>   File "/usr/lib/python2.4/threading.py", line 522, in __delete
>     del _active[_get_ident()]
> KeyError: -1211651904
>
> Googling for the traceback doesn't provide much info, so wondering if
> anyone has an idea whats might be going on ?
>
> P.S: Please note that main app owns main widget instance and it owns the
> QThreadClass() instance.
>
> Regards,
> ismail
>
> _______________________________________________
> PyKDE mailing list    PyKDE at mats.imk.fraunhofer.de
> http://mats.imk.fraunhofer.de/mailman/listinfo/pykde




More information about the PyQt mailing list