[boost.python] ImportError: DLL Load failed.
Hello. I compiled a python module with msvc for python2.6 under windows xp. Under linux everything's ok, but under windows xp, I don't know what happens, I get an ImportError: DLL Load failed. I set sys.path to the directory containing the module, but no luck until now. Is it a problem with boost.python. I don't know what to think. Thanks for your help.
Germán Diago wrote:
Hello. I compiled a python module with msvc for python2.6 under windows xp. Under linux everything's ok, but under windows xp, I don't know what happens, I get an ImportError: DLL Load failed.
I set sys.path to the directory containing the module, but no luck until now. Is it a problem with boost.python. I don't know what to think. Thanks for your help.
Does your module's name end with .dll or with .pyd? From "What's New in Python 2.5": http://www.python.org/doc/2.5.4/whatsnew/ports.html#SECTION00015100000000000... "Windows: .dll is no longer supported as a filename extension for extension modules. .pyd is now the only filename extension that will be searched for."
I changed the extension name from .dll to .pyd but I'll verify if I
wrote file.dll.pyd. Maybe. Thanks for your time
2009/4/10 Nat Goodspeed
Germán Diago wrote:
Hello. I compiled a python module with msvc for python2.6 under windows xp. Under linux everything's ok, but under windows xp, I don't know what happens, I get an ImportError: DLL Load failed.
I set sys.path to the directory containing the module, but no luck until now. Is it a problem with boost.python. I don't know what to think. Thanks for your help.
Does your module's name end with .dll or with .pyd?
From "What's New in Python 2.5": http://www.python.org/doc/2.5.4/whatsnew/ports.html#SECTION00015100000000000...
"Windows: .dll is no longer supported as a filename extension for extension modules. .pyd is now the only filename extension that will be searched for." _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
I made sure it ends with .pyd. I have no idea which the problem is. But I get a different error than when I try to load a module that does not exist. My error is: ImportError: DLL Load failed. It's not the same as when you try to import a nonexistent module
Does your module's name end with .dll or with .pyd?
From "What's New in Python 2.5": http://www.python.org/doc/2.5.4/whatsnew/ports.html#SECTION00015100000000000...
"Windows: .dll is no longer supported as a filename extension for extension modules. .pyd is now the only filename extension that will be searched for." _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
Germán Diago schrieb:
ImportError: DLL Load failed. If i understand that correctly, python fails in
*_PyImport_GetDynLoadFunc*() in [1] and LoadLibraryEx() is simply failing. Regards, Georg [1] http://svn.python.org/view/python/tags/r26/Python/dynload_win.c?revision=66716&view=markup http://svn.python.org/view/python/tags/r26/Python/dynload_win.c?revision=66716&view=markup
participants (3)
-
Georg Fritzsche
-
Germán Diago
-
Nat Goodspeed