C extensions, Windows, and Fatal Python error

Hello,
I'm running python 2.1 on win2k, and I've built an extension module using mingw32, following the instruction in the Manual to build python21.a.
Everything worked fine, I got my windows installer, ran it, but when I try to import the C extension, Python crashes:
Type "copyright", "credits" or "license" for more information.
from logilab.xmldiff import maplookup
Fatal Python error: Interpreter not initialized (version mismatch?)

Alexandre Fayolle wrote:
Hello,
I'm running python 2.1 on win2k, and I've built an extension module using mingw32, following the instruction in the Manual to build python21.a.
Everything worked fine, I got my windows installer, ran it, but when I try to import the C extension, Python crashes:
Type "copyright", "credits" or "license" for more information.
from logilab.xmldiff import maplookup
Fatal Python error: Interpreter not initialized (version mismatch?)
From a quick search on the net, I gather that this is caused by a wrong
python dll being loaded by the extension module, but the only python DLL I have is python21.dll.
Anyone got a hint ?
Could be caused by a linker problem between the mingw32 compiled extension and the MS VC compiled Python DLL -- they don't seem to share the same data segments.
participants (2)
-
Alexandre Fayolle
-
M.-A. Lemburg