[SciPy-User] weave module bad file descriptor error

ascetic charlie@tct-corp....
Thu Jun 10 01:00:28 CDT 2010

I use pythonxy package for easily integrated installation of python
and scipy usage. (windows XP)

The following message had shown when I want to execute the example
(dict_sort.py) from scipy:

Dict sort of 1000 items for 3000 iterations:
 speed in python: 0.59299993515
[0, 1, 2, 3, 4]
No module named msvccompiler in numpy.distutils; trying from distutils
Found executable C:\Program Files\pythonxy\mingw\bin\g++.exe

Traceback (most recent call last):
 File "C:\Python26\Lib\site-packages\scipy\weave\examples
\dict_sort.py", line 121, in <module>
 File "C:\Python26\Lib\site-packages\scipy\weave\examples
\dict_sort.py", line 89, in sort_compare
 File "C:\Python26\Lib\site-packages\scipy\weave\examples
\dict_sort.py", line 38, in c_sort
   return inline_tools.inline(code,['adict'])
 File "..\inline_tools.py", line 335, in inline
 File "..\inline_tools.py", line 462, in compile_function
   verbose=verbose, **kw)
 File "..\ext_tools.py", line 365, in compile
   verbose = verbose, **kw)
 File "..\build_tools.py", line 272, in build_extension
   setup(name = module_name, ext_modules = [ext],verbose=verb)
 File "C:\Python26\lib\site-packages\numpy\distutils\core.py", line
184, in setup
   return old_setup(**new_attr)
 File "C:\Python26\lib\distutils\core.py", line 162, in setup
   raise SystemExit, error
CompileError: error: Bad file descriptor

But the Linux version can run it very well. It should not be the
problem of weave or distutils module.
Can anyone help me solve this question? Thanks!


More information about the SciPy-User mailing list