[pymvpa] Problem About running mvpa2 tutorial

Yaroslav Halchenko debian at onerussian.com
Sat Oct 13 03:24:33 UTC 2012


that is a fun casing... what ubuntu is it and ... output of

import mvpa2
mvpa2.wtf()

?

On Fri, 12 Oct 2012, Ceyhun Çakar wrote:

> Hello,

> I have installed python-mvpa2 using synaptic in Ubuntu 12.04.1 LTS
> 64-bit. I want to study its tutorial but in Python when I import
> tutorial (as  shown in http://www.pymvpa.org/tutorial_start.html), I
> got following error:

> ceyhun at ceyhun-ubuntu64:~$ python
> Python 2.7.3 (default, Aug  1 2012, 05:14:39)
> [GCC 4.6.3] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import mvpa2
> >>> from mvpa2.tutorial_suite import *
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   File "/usr/lib/pymodules/python2.7/mvpa2/tutorial_suite.py", line
> 15, in <module>
>     from mvpa2.suite import *
>   File "/usr/lib/pymodules/python2.7/mvpa2/suite.py", line 87, in <module>
>     from mvpa2.clfs.smlr import *
>   File "/usr/lib/pymodules/python2.7/mvpa2/clfs/smlr.py", line 31, in <module>
>     from mvpa2.clfs.libsmlrc import stepwise_regression as _cStepwiseRegression
>   File "/usr/lib/pymodules/python2.7/mvpa2/clfs/libsmlrc/__init__.py",
> line 20, in <module>
>     from mvpa2.clfs.libsmlrc.ctypes_helper import extend_args, c_darray
>   File "/usr/lib/pymodules/python2.7/mvpa2/clfs/libsmlrc/ctypes_helper.py",
> line 15, in <module>
>     c_darray = np.ctypeslib.ndpointer(dtype=np.float64,
> flags='aligned,contiguous')
>   File "/usr/lib/python2.7/dist-packages/numpy/ctypeslib.py", line
> 264, in ndpointer
>     num = _num_fromflags(flags)
>   File "/usr/lib/python2.7/dist-packages/numpy/ctypeslib.py", line
> 139, in _num_fromflags
>     num += _flagdict[val]
> KeyError: 'ALiGNED'

> Is there anybody who can help me?

> Thanks,
> Sincerely,
-- 
Yaroslav O. Halchenko
Postdoctoral Fellow,   Department of Psychological and Brain Sciences
Dartmouth College, 419 Moore Hall, Hinman Box 6207, Hanover, NH 03755
Phone: +1 (603) 646-9834                       Fax: +1 (603) 646-1419
WWW:   http://www.linkedin.com/in/yarik        



More information about the Pkg-ExpPsy-PyMVPA mailing list