[SciPy-user] can't get weave to work (apologies for resend)
Travis Oliphant
oliphant at ee.byu.edu
Thu Oct 26 19:28:39 EDT 2006
James Coughlan wrote:
>Hello,
>
>When I try to run a simple weave example (main.py):
>
>from scipy import weave
>a=1
>weave.inline('printf("%d",a);',['a'],compiler='gcc')
>
>it gives me this error message:
>"
>CompileError: error: Command "g++ -mno-cygwin -mdll -O2 -w
>-IC:\Python24\lib\site-packages\scipy\wea
>ve -IC:\Python24\lib\site-packages\scipy\weave\scxx
>-IC:\Python24\lib\site-packages\numpy\core\inclu
>de -IC:\Python24\include -IC:\Python24\PC -c
>C:\Python24\lib\site-packages\scipy\weave\scxx\weave_im
>p.cpp -o
>c:\docume~1\james\locals~1\temp\James\python24_intermediate\compiler_ad9404e4505a343c45a7cd
>
>
>09360558c2\Release\python24\lib\site-packages\scipy\weave\scxx\weave_imp.o"
>failed with exit status
>2
>WARNING: Failure executing file: <main.py>
>"
>
>
It looks like your compiler is not working.
Go to the temporary directory where weave has stored the source code it
is compiling and try to compile it at the command line. Perhaps we are
not seeing all the error messages that would identify what is wrong with
your set-up.
More information about the SciPy-User
mailing list