Hi list,
I have exactly the same problem under Windows and the exelent Python(X,Y) distribution.

The problem is in the command line, there is no quote at the end just after -c and -o and so the path is splited.

The problem is new for me because before using this distrubution there was no space in my python path.
And now, yes. in 'c:\program files\...'

Does the weave maintener could fix this ? Or is it already fix but not include in the distribution ?

Thank

Samuel

Søren Nielsen a écrit :
Hi,

I've done a fresh install of MinGw 5.14, Python 2.4.4, Scipy 0.6.0, Numpy 1.1.0 and numarray 1.5.2

When I try to use weave i get this:

C:\>test_weave.py
<weave: compiling>
running build_ext
running build_src
building extension "sc_552cccf5dbf4f6eadd273cdcbd5860523" sources
customize Mingw32CCompiler
customize Mingw32CCompiler using build_ext
customize Mingw32CCompiler
customize Mingw32CCompiler using build_ext
building 'sc_552cccf5dbf4f6eadd273cdcbd5860523' extension
compiling C++ sources
C compiler: g++ -mno-cygwin -O2 -Wall

compile options: '-IC:\Python24\lib\site-packages\scipy\weave -IC:\Python24\lib\
site-packages\scipy\weave\scxx -IC:\Python24\lib\site-packages\numpy\core\includ
e -IC:\Python24\include -IC:\Python24\PC -c'
g++ -mno-cygwin -O2 -Wall -IC:\Python24\lib\site-packages\scipy\weave -IC:\Pytho
n24\lib\site-packages\scipy\weave\scxx -IC:\Python24\lib\site-packages\numpy\cor
e\include -IC:\Python24\include -IC:\Python24\PC -c C:\Python24\lib\site-package
s\scipy\weave\scxx\weave_imp.cpp -o c:\docume~1\lisear~1\lokale~1\temp\Lise Arle
th\python24_intermediate\compiler_08edc7e348e1c33f63a33ab500aef08e\Release\pytho
n24\lib\site-packages\scipy\weave\scxx\weave_imp.o
Found executable C:\MinGw\bin\g++.exe
g++.exe: Arleth\python24_intermediate\compiler_08edc7e348e1c33f63a33ab500aef08e\
Release\python24\lib\site-packages\scipy\weave\scxx\weave_imp.o: No such file or
 directory
Traceback (most recent call last):
  File "C:\test_weave.py", line 341, in ?
    main()
  File "C:\test_weave.py", line 224, in main
    weave.inline('printf("%d\\n",a);',['a'], verbose=2, type_converters=converte
rs.blitz)  #, compiler = 'msvc', verbpse=2, type_converters=converters.blitz, au
to_downcast=0) #'msvc' or 'gcc' or 'mingw32'
  File "C:\Python24\Lib\site-packages\scipy\weave\inline_tools.py", line 338, in
 inline
    auto_downcast = auto_downcast,
  File "C:\Python24\Lib\site-packages\scipy\weave\inline_tools.py", line 447, in
 compile_function
    verbose=verbose, **kw)
  File "C:\Python24\Lib\site-packages\scipy\weave\ext_tools.py", line 365, in co
mpile
    verbose = verbose, **kw)
  File "C:\Python24\Lib\site-packages\scipy\weave\build_tools.py", line 269, in
build_extension
    setup(name = module_name, ext_modules = [ext],verbose=verb)
  File "C:\Python24\Lib\site-packages\numpy\distutils\core.py", line 184, in set
up
    return old_setup(**new_attr)
  File "C:\Python24\lib\distutils\core.py", line 166, in setup
    raise SystemExit, "error: " + str(msg)
distutils.errors.CompileError: error: Command "g++ -mno-cygwin -O2 -Wall -IC:\Py
thon24\lib\site-packages\scipy\weave -IC:\Python24\lib\site-packages\scipy\weave
\scxx -IC:\Python24\lib\site-packages\numpy\core\include -IC:\Python24\include -
IC:\Python24\PC -c C:\Python24\lib\site-packages\scipy\weave\scxx\weave_imp.cpp
-o c:\docume~1\lisear~1\lokale~1\temp\Lise Arleth\python24_intermediate\compiler
_08edc7e348e1c33f63a33ab500aef08e\Release\python24\lib\site-packages\scipy\weave
\scxx\weave_imp.o" failed with exit status 1

the test_weave file was something i found on the scipy dev wiki... I also tried some of my older files that also uses weave and they all give the same error...

Can anyone help me with this?



_______________________________________________ SciPy-user mailing list SciPy-user@scipy.org http://projects.scipy.org/mailman/listinfo/scipy-user

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Samuel Garcia
Laboratoire de Neurosciences Sensorielles, Comportement, Cognition.
CNRS - UMR5020 - Universite Claude Bernard LYON 1
Equipe logistique et technique
50, avenue Tony Garnier
69366 LYON Cedex 07
FRANCE
Tél : 04 37 28 74 64
Fax : 04 37 28 76 01
http://olfac.univ-lyon1.fr/unite/equipe-07/
http://neuralensemble.org/trac/OpenElectrophy
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~