using weave with Windows

Jean-Baptiste Richet jb.richet at areas.asso.fr
Fri Sep 12 07:01:20 EDT 2003


Hello,

weave could be highly usefull to me, but I can't have it work correctly 
on my PC, and I can't understand the error message. Could you help me ?
I installed the latest zip package by "python setup.py install", on a 
python 2.3 installation (OS = Windows ME), and here is a result when 
trying it :
=========================
IDLE 1.0
 >>> import weave
 >>> a = 123
 >>> weave.inline('printf("%d\\n",a);',['a'])
Exception exceptions.AttributeError: "DbfilenameShelf instance has no 
attribute 'writeback'" in
Traceback (most recent call last):
File "<pyshell#2>", line 1, in -toplevel-
   weave.inline('printf("%d\\n",a);',['a'])
File 
"C:\DEVELOPPEMENT\PYTHON23\Lib\site-packages\weave\inline_tools.py", 
line 327, in inline
   auto_downcast = auto_downcast,
File 
"C:\DEVELOPPEMENT\PYTHON23\Lib\site-packages\weave\inline_tools.py", 
line 426, in compile_function
   verbose=verbose, **kw)
File "C:\DEVELOPPEMENT\PYTHON23\Lib\site-packages\weave\ext_tools.py", 
line 349, in compile
   verbose = verbose, **kw)
File "C:\DEVELOPPEMENT\PYTHON23\Lib\site-packages\weave\build_tools.py", 
line 194, in build_extension
   setup(name = module_name, ext_modules = [ext],verbose=verb)
File "c:\developpement\python23\lib\distutils\core.py", line 166, in setup
   raise SystemExit, "error: " + str(msg)
CompileError: error: command 'g++' failed with exit status 1
 >>>
===========================
The gcc I use comes from MinGW and is version 3.2. I tried out gcc 2.95, 
and it was nearly the same (error at the same place, but 'cc' was 
blaimed). I tried cygwin, and it was not different. I tried python 2.2, 
and the result was similar.

Any idea ?
thanks a lot for your help.





More information about the Python-list mailing list