When I run
weave.test() I get a bunch of error and output ...
Ran 107 test in 25.298s FAILED (errors=9) I am runing Python 2.2.1 and I installed weave-0.2.3.win32. When I tried
os.system('gcc -v') I got NameError: name 'os' is not defined.
I am new to Python and weave. Any help would be appreciated. Thanks!
You need to import os before you can call it. Try:
import os os.system('gcc -v')
Also, a simple test to see more debug information is:
import weave weave.inline("",[],verbose=2)
The output from this may provide a few more hints as to what is happening. Also, weave only works if you have a C++ compiler installed (MSVC++ or gcc). Without one of these, there is no way for weave to compile the code. Eric
-----Original Message----- From: scipy-dev-admin@scipy.net [mailto:scipy-dev-admin@scipy.net] On Behalf Of russell cecala Sent: Thursday, July 18, 2002 10:36 PM To: scipy-dev@scipy.org Cc: russell cecala Subject: [SciPy-dev] weave.test() fails
When I run
weave.test() I get a bunch of error and output ...
Ran 107 test in 25.298s FAILED (errors=9)
I am runing Python 2.2.1 and I installed weave-0.2.3.win32.
When I tried
os.system('gcc -v') I got NameError: name 'os' is not defined.
I am new to Python and weave. Any help would be appreciated.
Thanks!
_______________________________________________ Scipy-dev mailing list Scipy-dev@scipy.net http://www.scipy.net/mailman/listinfo/scipy-dev
participants (2)
-
eric jones -
russell cecala