using weave with Windows

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jean-Baptiste Richet

    using weave with Windows

    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[color=blue][color=green][color=darkred]
    >>> import weave
    >>> a = 123
    >>> weave.inline('p rintf("%d\\n",a );',['a'])[/color][/color][/color]
    Exception exceptions.Attr ibuteError: "DbfilenameShel f instance has no
    attribute 'writeback'" in
    Traceback (most recent call last):
    File "<pyshell#2 >", line 1, in -toplevel-
    weave.inline('p rintf("%d\\n",a );',['a'])
    File
    "C:\DEVELOPPEME NT\PYTHON23\Lib \site-packages\weave\ inline_tools.py ",
    line 327, in inline
    auto_downcast = auto_downcast,
    File
    "C:\DEVELOPPEME NT\PYTHON23\Lib \site-packages\weave\ inline_tools.py ",
    line 426, in compile_functio n
    verbose=verbose , **kw)
    File "C:\DEVELOPPEME NT\PYTHON23\Lib \site-packages\weave\ ext_tools.py",
    line 349, in compile
    verbose = verbose, **kw)
    File "C:\DEVELOPPEME NT\PYTHON23\Lib \site-packages\weave\ build_tools.py" ,
    line 194, in build_extension
    setup(name = module_name, ext_modules = [ext],verbose=verb)
    File "c:\developpeme nt\python23\lib \distutils\core .py", line 166, in setup
    raise SystemExit, "error: " + str(msg)
    CompileError: error: command 'g++' failed with exit status 1[color=blue][color=green][color=darkred]
    >>>[/color][/color][/color]
    =============== ============
    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.

Working...