[pygtk] ImportError: DLL load failed

Martin Walser martin.walser at gmx.de
Tue Feb 24 06:48:33 WST 2009


John wrote:
> Then the fact that you've built the debug version is not relevant.  Are
> you using the python.exe that you built or the one from python.org?  You
> probably want to use the one from python.org if you want to use the
> prebuilt pygtk binaries.  If you need to use the version you built, then
> you either need to rebuild pygtk or deal with the C runtime issue and
> any problems that arise from using different runtimes.  My short answer
> is that if you're going to build the interpreter, then build the
> extension modules with the same compiler.
> 
> Cheers,
> 
> John

Yipp.
Seems you were right.
Already downloaded the sources of pygobject but... no Visual Studio project
file - and I were lost. Also no Win32 building tutorial on the PyGTK pages.
:(

Made a clean install of Python 2.6.1 via installer to check if you're right
and it's really the fault of the self-built python.exe and... my project
fires up now. 

(MSVCR90.dll is still not found when letting dependency walker look in
_gobject.pyd... so this seems to be normal)

Thx!

I think I will simply put my debugging version aside the installer version
now.




More information about the pygtk mailing list