remip
unread,Aug 15, 2010, 3:25:12 AM8/15/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to cython-users
Hi,
I'm using cython successfully with setup.py --build_ext=mingw32 for
some modules, but I can't use pyximport :
ImportError: Building module failed: ['DistutilsPlatformError: Unable
to find vcvarsall.bat\n']
pyximport doesn't seems to read my distutils.cfg which points on
mingw32
trace:
>>> import pyximport
>>> pyximport.install()
>>> import vizfast
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "c:\Python26\lib\site-packages\pyximport\pyximport.py", line
328, in load_module
self.pyxbuild_dir)
File "c:\Python26\lib\site-packages\pyximport\pyximport.py", line
180, in load_module
so_path = build_module(name, pyxfilename, pyxbuild_dir)
File "c:\Python26\lib\site-packages\pyximport\pyximport.py", line
164, in build_module
reload_support=pyxargs.reload_support)
File "c:\Python26\lib\site-packages\pyximport\pyxbuild.py", line 87,
in pyx_to_dll
dist.run_commands()
File "c:\Python26\lib\distutils\dist.py", line 975, in run_commands
self.run_command(cmd)
File "c:\Python26\lib\distutils\dist.py", line 995, in run_command
cmd_obj.run()
File "c:\Python26\lib\distutils\command\build_ext.py", line 340, in
run
self.build_extensions()
File "c:\Python26\lib\site-packages\Cython\Distutils\build_ext.py",
line 83, in build_extensions
self.build_extension(ext)
File "c:\Python26\lib\distutils\command\build_ext.py", line 499, in
build_extension
depends=ext.depends)
File "c:\Python26\lib\distutils\msvc9compiler.py", line 449, in
compile
self.initialize()
File "c:\Python26\lib\distutils\msvc9compiler.py", line 359, in
initialize
vc_env = query_vcvarsall(VERSION, plat_spec)
File "c:\Python26\lib\distutils\msvc9compiler.py", line 251, in
query_vcvarsall
raise DistutilsPlatformError("Unable to find vcvarsall.bat")
ImportError: Building module failed: ['DistutilsPlatformError: Unable
to find vcvarsall.bat\n']
my env :
Windows 7 64bits
python 2.6.5 32bits
mingw 32bits gcc 3.4.5, bin dir in the path
cython 0.12.1
c:\Python26\lib\\distutils\distutils.cfg
[build]
compiler = mingw32
I've put some print, my cfg file is found by dist.find_config_files in
pyxbuild.py
['c:\\Python26\\lib\\distutils\\distutils.cfg']
Am I missing something ?
Regards,