Fatal Python error: PyThreadState_Get: no current thread

Thomas Wouters thomas at xs4all.net
Thu Sep 12 08:57:22 EDT 2002


On Thu, Sep 12, 2002 at 09:45:39PM +0930, Ben Gerblich wrote:

> My code has just started crashing. I get the message:

> Fatal Python error: PyThreadState_Get: no current thread
> Aborted (core dumped)

> Is there a way to turn on debug mode or something that will allow me to see
> where/why my app is crashing. "python2 -d main.py" does not shed any light.

This is an internal Python error, not one related to your program (other
than that it seems to want threads, directly or indirectly.) If memory
serves, the problem is that Python is compiled without threads, but one or
more of the extention modules you're using were compiled _with_ threads.
(Or, possibly, the other way 'round, but I don't think so.) Testing to see
if python is compiled with threads is fairly easy: run 'python2' and type
'import thread'. Perhaps you need to get threaded (or non-threaded) versions
of some of your RPMs ?

*cough*debian*cough*-ly y'rs, :)
-- 
Thomas Wouters <thomas at xs4all.net>

Hi! I'm a .signature virus! copy me into your .signature file to help me spread!




More information about the Python-list mailing list