PyModule/.dll/thread error

Mark Hammond MarkH at ActiveState.com
Thu Aug 10 21:09:29 EDT 2000


"Mitja Semolic" <mitjase at hotmail.com> wrote in message
news:XzDk5.210$UZ2.7243 at news.siol.net...

> I am just tring to build a simple dll module. Is there a sample
source dll
> module that i could download?
>
>
>  When the module is imported from python i get the error: Fatal
Python
> error: PyThreadState_Get: no current thread.

This _usually_ means that your module is using a different
PythonXX.dll than Python itself is using.

Try running your sample from the MSVC debugger (you dont even need
debugging symbols enabled).  In the "Debug" window, look for messages
indicating what DLLs have been loaded.  If you see 2 Pythonxx.dll
libraries loaded (either different paths, different version numbers,
or different debug builds (ie, one as "_d" appended) then this is your
problem...

Mark.






More information about the Python-list mailing list