[pymvpa] Weave code broken on lenny

Yaroslav Halchenko debian at onerussian.com
Wed Oct 1 13:43:48 UTC 2008


heh -- well we have workaround already I think -- I've done pure python
implementation. We just need proper check for weave in externals I guess

On Wed, 01 Oct 2008, Michael Hanke wrote:

> 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
-- 
Yaroslav Halchenko
Research Assistant, Psychology Department, Rutgers-Newark
Student  Ph.D. @ CS Dept. NJIT
Office: (973) 353-5440x263 | FWD: 82823 | Fax: (973) 353-1171
        101 Warren Str, Smith Hall, Rm 4-105, Newark NJ 07102
WWW:     http://www.linkedin.com/in/yarik        



More information about the Pkg-ExpPsy-PyMVPA mailing list