using weave with Windows

  • Thread starter Jean-Baptiste Richet
  • Start date
J

Jean-Baptiste Richet

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,077
Latest member
SangMoor21

Latest Threads

Top