[prev in list] [next in list] [prev in thread] [next in thread] 

List:       python-distutils-sig
Subject:    [Distutils] C extensions, Windows, and Fatal Python error
From:       mal () lemburg ! com (M ! -A !  Lemburg)
Date:       2001-10-22 15:54:10
Message-ID: 3BD47695.6B16F627 () lemburg ! com
[Download RAW message or body]

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/



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic