[SciPy-Dev] request for testing: SciPy 0.7.2 RC1 + NumPy 1.4.1 RC1

Bruce Southey bsouthey@gmail....
Tue Apr 6 21:03:09 CDT 2010


On Mon, Apr 5, 2010 at 10:08 PM, Alan G Isaac <aisaac@american.edu> wrote:
> Python 2.6.5 (32bit) on Vista (64bit), no gcc.
> Alan Isaac
>
[snip]
> ............................................................................................................................................................................................................................'gcc' is not recognized as an internal or external command,
> operable program or batch file.
> 'gcc' is not recognized as an internal or external command,
> operable program or batch file.
> 'gcc' is not recognized as an internal or external command,
> operable program or batch file.
> 'gcc' is not recognized as an internal or external command,
> operable program or batch file.
> 'gcc' is not recognized as an internal or external command,
> operable program or batch file.
> 'gcc' is not recognized as an internal or external command,
> operable program or batch file.
> 'gcc' is not recognized as an internal or external command,
> operable program or batch file.
> 'gcc' is not recognized as an internal or external command,
> operable program or batch file.
> 'gcc' is not recognized as an internal or external command,
> operable program or batch file.
> 'gcc' is not recognized as an internal or external command,
> operable program or batch file.
> 'gcc' is not recognized as an internal or external command,
> operable program or batch file.

These are from the weave tests from running ' scipy.weave.test()' with
some of the message coming from the file
test_numpy_scalar_spec.py

I can reproduce the window on my system by running under IDLE:
>>>from scipy.weave.build_tools import msvc_exists, gcc_exists


There is no problem with
>>> msvc_exists()
0

>>>gcc_exists()
False
>>>
>From the command line it gives:
>>>gcc_exists()
'gcc' is not recognized as an internal or external command,
operable program or batch file.
False


Trying the associated code:
>>> import subprocess
>>> name='gcc'
>>> cmd=[str(name), '-v']
>>> cmd
['gcc', '-v']
>>> subprocess.Popen(cmd, True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)

Traceback (most recent call last):
  File "<pyshell#31>", line 1, in <module>
    subprocess.Popen(cmd, True, stdout=subprocess.PIPE,
stderr=subprocess.STDOUT)
  File "E:\Python26\lib\subprocess.py", line 621, in __init__
    errread, errwrite)
  File "E:\Python26\lib\subprocess.py", line 830, in _execute_child
    startupinfo)
WindowsError: [Error 2] The system cannot find the file specified
>>>

So apparently the exception is not being caught.

Bruce


More information about the SciPy-Dev mailing list