windows - can't import python extension -
i'm trying learn python extensions, , created simple noddy example c file , setup.py.
python.exe setup.py build
gives me:
running build running build_ext building 'noddy' extension creating build creating build\temp.win32-2.7 creating build\temp.win32-2.7\release c:\program files\microsoft visual studio 8\vc\bin\cl.exe /c /nologo /ox /md /w3 /gs- /dndebug -ic:\python27\include -ic:\python27\pc /tcnoddy.c /fobuild\temp.win32-2.7\release\noddy.obj noddy.c creating build\lib.win32-2.7 c:\program files\microsoft visual studio 8\vc\bin\link.exe /dll /nologo /incremental:no /libpath:c:\python27\libs /libpath:c:\python27\pcbuild /export:initnoddy build\temp.win32-2.7\release\noddy.obj /out:build\lib.win32-2.7\noddy.pyd /implib:build\temp.win32-2.7\release\noddy.lib /manifestfile:build\temp.win32-2.7\release\noddy.pyd.manifest creating library build\temp.win32-2.7\release\noddy.lib , object build\temp.win32-2.7\release\noddy.exp c:\program files\microsoft visual studio 8\vc\bin\mt.exe -nologo -manifest build\temp.win32-2.7\release\noddy.pyd.manifest -outputresource:build\lib.win32-2.7\noddy.pyd;2
i run python.exe setup.py install
, gives me:
running install running build running build_ext running install_lib copying build\lib.win32-2.7\noddy.pyd -> c:\python27\lib\site-packages running install_egg_info writing c:\python27\lib\site-packages\noddy-1.0-py2.7.egg-info
but then, in idle,
>>> import noddy traceback (most recent call last): file "<pyshell#0>", line 1, in <module> import noddy importerror: dll load failed: specified module not found.
so, doing wrong? admittedly, horribly confused.
use visual studio 2008 compiler build module.
vs8 visual studio 2005 , modules compiled version incompatible python 2.7 (same applies modules compiled visual studio 2010 btw.).
Comments
Post a Comment