weave problems, weave_imp.o no such file or directory
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?
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 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I have a space in my path too... So thats why it works on some computers and not on others... If you find a solution I'd really like to hear it.. The activity level on this mailing list is almost flatlining. Soren On Mon, Jul 7, 2008 at 11:42 AM, Samuel GARCIA <sgarcia@olfac.univ-lyon1.fr> wrote:
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 listSciPy-user@scipy.orghttp://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 01http://olfac.univ-lyon1.fr/unite/equipe-07/http://neuralensemble.org/trac/Op... ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
_______________________________________________ SciPy-user mailing list SciPy-user@scipy.org http://projects.scipy.org/mailman/listinfo/scipy-user
I have a similar issue when using pythonxy (2.1.4) (python version 2.5.2) and windows. The following import scipy print 'scipy.__version__',scipy.__version__ print 'scipy.__path__',scipy.__path__ from scipy import weave weave.inline('printf("hello world");', verbose=2) returns scipy.__version__ 0.6.0 scipy.__path__ ['C:\\Program Files\\pythonxy\\python\\lib\\site-packages\\scipy'] <weave: compiling> kw {'extra_link_args': [], 'define_macros': [], 'libraries': [], 'sources': ['C:\\Program Files\\pythonxy\\python\\lib\\site-packages\\scipy\\weave\\scxx\\weave_imp.cpp'], 'extra_compile_args': [], 'library_dirs': [], 'include_dirs': ['C:\\Program Files\\pythonxy\\python\\lib\\site-packages\\scipy\\weave', 'C:\\Program Files\\pythonxy\\python\\lib\\site-packages\\scipy\\weave\\scxx']} running build_ext running build_src building extension "sc_5c84b188757e017720cf8a0a3b0555304" sources customize Mingw32CCompiler customize Mingw32CCompiler using build_ext customize Mingw32CCompiler customize Mingw32CCompiler using build_ext building 'sc_5c84b188757e017720cf8a0a3b0555304' extension compiling C++ sources C compiler: g++ -mno-cygwin -O2 -Wall compile options: '-I"C:\Program Files\pythonxy\python\lib\site-packages\scipy\weave" -I"C:\Program Files\pythonxy\python\lib\site-packages\scipy\weave\scxx" -I"C:\Program Files\pythonxy\python\lib\site-packages\numpy\core\include" -I"C:\Program Files\pythonxy\python\include" -I"C:\Program Files\pythonxy\python\PC" -c' g++ -mno-cygwin -O2 -Wall -I"C:\Program Files\pythonxy\python\lib\site-packages\scipy\weave" - I"C:\Program Files\pythonxy\python\lib\site-packages\scipy\weave\scxx" -I"C:\Program Files\pythonxy\python\lib\site-packages\numpy\core\include" -I"C:\Program Files\pythonxy\python\include" -I"C:\Program Files\pythonxy\python\PC" -c c:\docume~1\wd15\locals~1\temp\wd15\python25_compiled\sc_5c84b188757e017720cf8a0a3b0555304.cpp -o c:\docume~1\wd15\locals~1\temp\wd15\python25_intermediate\compiler_08edc7e348e1c33f63a33ab500aef08e\Release\docume~1\wd15\locals~1\temp\wd15\python25_compiled\sc_5c84b188757e017720cf8a0a3b0555304.o Found executable C:\MinGW\bin\g++.exe g++ -mno-cygwin -shared c:\docume~1\wd15\locals~1\temp\wd15\python25_intermediate\compiler_08edc7e348e1c33f63a33ab500aef08e\Release\docume~1\wd15\locals~1\temp\wd15\python25_compiled\sc_5c84b188757e017720cf8a0a3b0555304.o c:\docume~1\wd15\locals~1\temp\wd15\python25_intermediate\compiler_08edc7e348e1c33f63a33ab500aef08e\Release\program files\pythonxy\python\lib\site-packages\scipy\weave\scxx\weave_imp.o -L"C:\Program Files\pythonxy\python\libs" -L"C:\Program Files\pythonxy\python\PCBuild" -lpython25 -lmsvcr71 -o c:\docume~1\wd15\locals~1\temp\wd15\python25_compiled\sc_5c84b188757e017720cf8a0a3b0555304.pyd g++.exe: files\pythonxy\python\lib\site-packages\scipy\weave\scxx\weave_imp.o: No such file or directory On Mon, Jul 7, 2008 at 2:31 PM, Søren Nielsen <soren.skou.nielsen@gmail.com> wrote:
I have a space in my path too... So thats why it works on some computers and not on others...
-- Daniel Wheeler
This looks like a spaces in path problem: your problematic path mixes short windows names and long windows names and is not in quotes ("...") c:\docume~1\wd15\locals~1\temp\wd15\python25_intermediate\compiler_08edc7e348e1c33f63a33ab500aef08e\Release\program files\pythonxy\python\lib\site-packages\scipy\weave\scxx\weave_imp.o I tried the same example on my Windows XP, where neither python nor scipy paths ( which is not in Python directory) have spaces and it compiles without errors. As a relatively quick fix, I would move scipy on a path without spaces, just move directory and link to new parent directory in easy-install.path. A quick look at my compilation log, shows that only spaces in the scipy.weave path are relevant. The spaces in the python shouldn't be a problem, because your link and include directories, e.g. -L"C:\Program Files\pythonxy\python\libs" seem all to be correctly quoted for the Windows command shell. I usually avoid any paths with spaces, because getting the quoting always right is a pain with programs that don't put in the correct quotes, e.g. pythons subprocess.popen. Josef
On Mon, Dec 1, 2008 at 7:23 PM, <josef.pktd@gmail.com> wrote:
As a relatively quick fix, I would move scipy on a path without spaces, just move directory and link to new parent directory in easy-install.path.
Right. I'm reinstalling pythonxy in "C:\" rather than "C:\Program Files " just to keep everything coherent.
I usually avoid any paths with spaces, because getting the quoting always right is a pain with programs that don't put in the correct quotes, e.g. pythons subprocess.popen.
No doubt. However, putting stuff in "C:\Program Files " seems to be the pythonxy default. Enthought python doesn't do that, which seems preferable. Cheers -- Daniel Wheeler
participants (4)
-
Daniel Wheeler
-
josef.pktd@gmail.com
-
Samuel GARCIA
-
Søren Nielsen