Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scipy.weave.inline CompileError: error: Bad file descriptor (Trac #1738) #2257

Closed
Tracked by #7
scipy-gitbot opened this issue Apr 25, 2013 · 3 comments
Closed
Tracked by #7
Labels
defect A clear bug or issue that prevents SciPy from being installed or used as expected Migrated from Trac

Comments

@scipy-gitbot
Copy link

Original ticket http://projects.scipy.org/scipy/ticket/1738 on 2012-09-29 by trac user AntonShiryaev, assigned to unknown.

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:\docume1\m@d_ph1\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
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:\docume1\m@d_ph1\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
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 =)

@yshahin
Copy link

yshahin commented Feb 13, 2015

Any updates on this?

@rgommers
Copy link
Member

weave is deprecated and has few users left, so this is low prio for the scipy devs. Patches will be accepted though.

@person142
Copy link
Member

Closing since weave is no longer a part of SciPy. This issue is now tracked at scipy/weave#7.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
defect A clear bug or issue that prevents SciPy from being installed or used as expected Migrated from Trac
Projects
None yet
Development

No branches or pull requests

4 participants