[pymvpa] Weave code broken on lenny

Michael Hanke michael.hanke at gmail.com
Wed Oct 1 12:25:53 UTC 2008


Hi folks,

I think I mentioned it before, but I want point it out on this
list, so it doesn't get lost:

The weave code in mvpa/clfs/distance.py cause the unittests on an
up-to-date Debian lenny to puke:

======================================================================
ERROR: testPNorm_w (test_kernel.KernelTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/hanke/hacking/pymvpa.dev/tests/test_kernel.py", line 81, in testPNorm_w
    d = pnorm_w(**kwargs)    # default one
  File "/home/hanke/hacking/pymvpa.dev/mvpa/clfs/distance.py", line 346, in pnorm_w
    compiler = 'gcc')
  File "/usr/lib/python2.5/site-packages/scipy/weave/inline_tools.py", line 339, in inline
    **kw)
  File "/usr/lib/python2.5/site-packages/scipy/weave/inline_tools.py", line 447, in compile_function
    verbose=verbose, **kw)
  File "/usr/lib/python2.5/site-packages/scipy/weave/ext_tools.py", line 365, in compile
    verbose = verbose, **kw)
  File "/usr/lib/python2.5/site-packages/scipy/weave/build_tools.py", line 269, in build_extension
    setup(name = module_name, ext_modules = [ext],verbose=verb)
  File "/usr/lib/python2.5/site-packages/numpy/distutils/core.py", line 184, in setup
    return old_setup(**new_attr)
  File "/usr/lib/python2.5/distutils/core.py", line 168, in setup
    raise SystemExit, "error: " + str(msg)
CompileError: error: Command "g++ -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -fPIC -I/usr/lib/python2.5/site-packages/scipy/weave -I/usr/lib/python2.5/site-packages/scipy/weave/scxx -I/usr/lib/python2.5/site-packages/scipy/weave/blitz -I/usr/lib/python2.5/site-packages/numpy/core/include -I/usr/include/python2.5 -c /home/hanke/.python25_compiled/sc_d72e19998f429431bc88033f9d65db8a1.cpp -o /tmp/hanke/python25_intermediate/compiler_de546699e86bc683c91d62b4e89a45df/home/hanke/.python25_compiled/sc_d72e19998f429431bc88033f9d65db8a1.o" failed with exit status 1

======================================================================
ERROR: testBasic (test_datameasure.SensitivityAnalysersTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "mtrand.pyx", line 1661, in mtrand.shuffle
TypeError: object of type 'numpy.int32' has no len()

----------------------------------------------------------------------


I am seeing this on multiple machines, so I would consider it a real bug
;-) However, I have no experience with weave and I am somewhat
clueless...

What about using cython to build a proper extension (at build-time)
instead of compiling stuff at runtime? Thoughts?


Cheers,

Michael

-- 
GPG key:  1024D/3144BE0F Michael Hanke
http://apsy.gse.uni-magdeburg.de/hanke
ICQ: 48230050



More information about the Pkg-ExpPsy-PyMVPA mailing list