[pymvpa] Getting started with PyMVPA

Ofir ofir1942 at gmail.com
Wed Dec 7 21:24:08 UTC 2011


Hi,

I was given a pickled dataset in a file. When I tried unpickeling it under
the NeuroDebian virtual machine, after doing "from mvpa2.suite import *' -
everything went fine.

Since I wanted to work on a real machine and not on a virtual one, I
installed Linux mint (based on Ubuntu).
I did "sudo apt-get install  python-mvpa".
When i tried unpickeling I got:
----------

/usr/lib/pymodules/python2.6/matplotlib/numerix/__init__.py:18:
DeprecationWarning:
**********************************************************
matplotlib.numerix and all its subpackages are deprecated.
They will be removed soon.  Please use numpy instead.
**********************************************************

  warnings.warn(msg, DeprecationWarning)
Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File "/home/ofir/dev/bci/play (1).py", line 21, in <module>
    ds = pickle.load( data_file )
  File "/usr/lib/python2.6/pickle.py", line 1370, in load
    return Unpickler(file).load()
  File "/usr/lib/python2.6/pickle.py", line 858, in load
    dispatch[key](self)
  File "/usr/lib/python2.6/pickle.py", line 1090, in load_global
    klass = self.find_class(module, name)
  File "/usr/lib/python2.6/pickle.py", line 1124, in find_class
    __import__(module)
ImportError: No module named collections
------

So I thought maybe i need mvpa2.
I tried sudo apt-get installe python-mvpa2, but then it said there is no
such package. I read on "http://neuro.debian.net/#how-to-use-this-repository"
that I should do:

wget -O- http://neuro.debian.net/lists/oneiric.us-ca | sudo tee
/etc/apt/sources.list.d/neurodebian.sources.list

sudo apt-key adv --recv-keys --keyserver pgp.mit.edu 2649A5A9
sudo apt-get update

So i did. Now apt-get with python-mvpa2 works (and automatically removes
mvpa), but still python-mvpa-snapshot does not.
I then tried unpickling the file again and got:
----------
data_file = open( data_file_path, "rb" )
ds = pickle.load( data_file )
Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File "/usr/lib/python2.6/pickle.py", line 1370, in load
    return Unpickler(file).load()
  File "/usr/lib/python2.6/pickle.py", line 858, in load
    dispatch[key](self)
  File "/usr/lib/python2.6/pickle.py", line 1090, in load_global
    klass = self.find_class(module, name)
  File "/usr/lib/python2.6/pickle.py", line 1124, in find_class
    __import__(module)
ImportError: No module named mvpa.datasets.base
-----

So what do I need? mvpa or mvpa2? How do I get this to work on something
other then NeuroDebian VM?


Thanks a lot!!
Ofir
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-exppsy-pymvpa/attachments/20111207/f0567241/attachment.html>


More information about the Pkg-ExpPsy-PyMVPA mailing list