[Distutils] C extensions, Windows, and Fatal Python error
M.-A. Lemburg
mal@lemburg.com
Mon Oct 22 15:54:10 2001
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.
--
Marc-Andre Lemburg
CEO eGenix.com Software GmbH
______________________________________________________________________
Consulting & Company: http://www.egenix.com/
Python Software: http://www.lemburg.com/python/