[Scipy-tickets] [SciPy] #1738: scipy.weave.inline CompileError: error: Bad file descriptor

SciPy Trac scipy-tickets@scipy....
Sat Sep 29 07:45:57 CDT 2012


#1738: scipy.weave.inline CompileError: error: Bad file descriptor
---------------------------+------------------------------------------------
 Reporter:  AntonShiryaev  |       Owner:  somebody   
     Type:  defect         |      Status:  new        
 Priority:  normal         |   Milestone:  Unscheduled
Component:  scipy.weave    |     Version:  0.10.1     
 Keywords:                 |  
---------------------------+------------------------------------------------
 Hello,Guys.I have some problem with scipy.weave.
 I test it on windows sp 3. I have installed python 2.7.3 from official
 site. Also, I have installed with pip modules numpy 1.6.2 и scipy 0.10.1 .
 I have installed mircosoft visual studio 2008 c/c++ (vcsetup.exe 83 mb)
 from microsoft site. Also, I have installed MinGW with gcc 4.6.2 . I have
 added 'C:\MinGW\bin'to variable PATH.
 When I run example script C:\Python27\Lib\site-
 packages\scipy\weave\examples\array3d.py
 I get errors from Python's IDLE:

 numpy:
 [[[ 0  1  2  3]
   [ 4  5  6  7]
   [ 8  9 10 11]]
  [[12 13 14 15]
   [16 17 18 19]
   [20 21 22 23]]]
 Pure Inline:
 No module named msvccompiler in numpy.distutils; trying from distutils
 creating
 c:\docume~1\m@d_ph~1\locals~1\temp\M@D_PHISICER\python27_intermediate\compiler_d41d8cd98f00b204e9800998ecf8427e
 Missing compiler_cxx fix for MSVCCompiler
 Found executable C:\Program Files\Microsoft Visual Studio
 9.0\VC\BIN\cl.exe
 Traceback (most recent call last):
   File "C:\Python32\Lib\site-packages\scipy\weave\examples\array3d.py",
 line 105, in <module>
     main()
   File "C:\Python32\Lib\site-packages\scipy\weave\examples\array3d.py",
 line 98, in main
     pure_inline(arr)
   File "C:\Python32\Lib\site-packages\scipy\weave\examples\array3d.py",
 line 57, in pure_inline
     weave.inline(code, ['arr'])
   File "C:\Python27\lib\site-packages\scipy\weave\inline_tools.py", line
 355, in inline
     **kw)
   File "C:\Python27\lib\site-packages\scipy\weave\inline_tools.py", line
 482, in compile_function
     verbose=verbose, **kw)
   File "C:\Python27\lib\site-packages\scipy\weave\ext_tools.py", line 367,
 in compile
     verbose = verbose, **kw)
   File "C:\Python27\lib\site-packages\scipy\weave\build_tools.py", line
 272, in build_extension
     setup(name = module_name, ext_modules = [ext],verbose=verb)
   File "C:\Python27\lib\site-packages\numpy\distutils\core.py", line 186,
 in setup
     return old_setup(**new_attr)
   File "C:\Python27\lib\distutils\core.py", line 162, in setup
     raise SystemExit, error
 CompileError: error: Bad file descriptor

 With MS Visual studio compile. When I use MinGw compiler by edit those
 code's line:
  weave.inline(code, ['arr'])  to weave.inline(code, ['arr'],
 compiler='gcc')
 weave.inline(code, ['arr'], type_converters=converters.blitz) to
 weave.inline(code, ['arr'],
 type_converters=converters.blitz,compiler='gcc')

 I get the same message from Python's IDLE:

 numpy:
 [[[ 0  1  2  3]
   [ 4  5  6  7]
   [ 8  9 10 11]]
  [[12 13 14 15]
   [16 17 18 19]
   [20 21 22 23]]]
 Pure Inline:
 creating
 c:\docume~1\m@d_ph~1\locals~1\temp\M@D_PHISICER\python27_intermediate\compiler_ceffdcf12be28532cafcaa87f8ac2f76
 Found executable C:\MinGW\bin\g++.exe
 Traceback (most recent call last):
   File "C:\Python32\Lib\site-packages\scipy\weave\examples\array3d.py",
 line 105, in <module>
     main()
   File "C:\Python32\Lib\site-packages\scipy\weave\examples\array3d.py",
 line 98, in main
     pure_inline(arr)
   File "C:\Python32\Lib\site-packages\scipy\weave\examples\array3d.py",
 line 57, in pure_inline
     weave.inline(code, ['arr'], compiler='gcc')
   File "C:\Python27\lib\site-packages\scipy\weave\inline_tools.py", line
 355, in inline
     **kw)
   File "C:\Python27\lib\site-packages\scipy\weave\inline_tools.py", line
 482, in compile_function
     verbose=verbose, **kw)
   File "C:\Python27\lib\site-packages\scipy\weave\ext_tools.py", line 367,
 in compile
     verbose = verbose, **kw)
   File "C:\Python27\lib\site-packages\scipy\weave\build_tools.py", line
 272, in build_extension
     setup(name = module_name, ext_modules = [ext],verbose=verb)
   File "C:\Python27\lib\site-packages\numpy\distutils\core.py", line 186,
 in setup
     return old_setup(**new_attr)
   File "C:\Python27\lib\distutils\core.py", line 162, in setup
     raise SystemExit, error
 CompileError: error: Bad file descriptor

 Thank you for your help =)

-- 
Ticket URL: <http://projects.scipy.org/scipy/ticket/1738>
SciPy <http://www.scipy.org>
SciPy is open-source software for mathematics, science, and engineering.


More information about the Scipy-tickets mailing list