<div dir="ltr"><span class="Apple-style-span" style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); ">Hi,</span><div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); ">
<br></div><div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); ">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. </div>
<div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); "><br></div><div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); ">
Since I wanted to work on a real machine and not on a virtual one, I installed Linux mint (based on Ubuntu).</div><div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); ">
I did "sudo apt-get install  python-mvpa".</div><div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); ">When i tried unpickeling I got:</div>
<div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); ">----------</div><div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); ">
<div class="im" style="color: rgb(80, 0, 80); "><div><br></div><div>/usr/lib/pymodules/python2.6/matplotlib/numerix/__init__.py:18: DeprecationWarning: </div><div>**********************************************************</div>
<div>matplotlib.numerix and all its subpackages are deprecated.</div><div>They will be removed soon.  Please use numpy instead.</div><div>**********************************************************</div><div><br></div><div>
  warnings.warn(msg, DeprecationWarning)</div></div><div>Traceback (most recent call last):</div><div>  File "<console>", line 1, in <module></div><div>  File "/home/ofir/dev/bci/play (1).py", line 21, in <module></div>
<div>    ds = pickle.load( data_file )</div><div>  File "/usr/lib/python2.6/pickle.py", line 1370, in load</div><div>    return Unpickler(file).load()</div><div>  File "/usr/lib/python2.6/pickle.py", line 858, in load</div>
<div>    dispatch[key](self)</div><div>  File "/usr/lib/python2.6/pickle.py", line 1090, in load_global</div><div>    klass = self.find_class(module, name)</div><div>  File "/usr/lib/python2.6/pickle.py", line 1124, in find_class</div>
<div>    __import__(module)</div><div>ImportError: No module named collections</div></div><div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); ">
------</div><div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); "><br></div><div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); ">
So I thought maybe i need mvpa2.</div><div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); ">I tried sudo apt-get installe python-mvpa2, but then it said there is no such package. I read on "<a href="http://neuro.debian.net/#how-to-use-this-repository" target="_blank" style="color: rgb(17, 85, 204); ">http://neuro.debian.net/#how-to-use-this-repository</a>" that I should do:</div>
<div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); "><br></div><pre style="white-space: pre-wrap; background-color: rgb(255, 255, 255); padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; color: rgb(51, 51, 51); border-top-width: 1px; border-bottom-width: 1px; border-top-style: solid; border-bottom-style: solid; border-top-color: rgb(170, 204, 153); border-bottom-color: rgb(170, 204, 153); border-left-style: none; border-left-width: initial; border-left-color: initial; border-right-style: none; border-right-width: initial; border-right-color: initial; ">
wget -O- <a href="http://neuro.debian.net/lists/oneiric.us-ca" target="_blank" style="color: rgb(17, 85, 204); ">http://neuro.debian.net/lists/oneiric.us-ca</a> | sudo tee /etc/apt/sources.list.d/neurodebian.sources.list </pre>
<div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); "><span style="color: rgb(51, 51, 51); font-family: monospace; white-space: pre-wrap; background-color: rgb(255, 255, 255); ">sudo apt-key adv --recv-keys --keyserver <a href="http://pgp.mit.edu/" target="_blank" style="color: rgb(17, 85, 204); ">pgp.mit.edu</a> 2649A5A9</span></div>
<div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); "><span style="color: rgb(51, 51, 51); font-family: monospace; white-space: pre-wrap; background-color: rgb(255, 255, 255); ">sudo apt-get update</span></div>
<div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); "><br></div><div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); ">
So i did. Now apt-get with python-mvpa2 works (and automatically removes mvpa), but still python-mvpa-snapshot does not. </div><div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); ">
I then tried unpickling the file again and got:</div><div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); ">----------</div><div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); ">
<div>data_file = open( data_file_path, "rb" )</div><div>ds = pickle.load( data_file )</div><div>Traceback (most recent call last):</div><div>  File "<console>", line 1, in <module></div><div>
  File "/usr/lib/python2.6/pickle.py", line 1370, in load</div><div>    return Unpickler(file).load()</div><div>  File "/usr/lib/python2.6/pickle.py", line 858, in load</div><div>    dispatch[key](self)</div>
<div>  File "/usr/lib/python2.6/pickle.py", line 1090, in load_global</div><div>    klass = self.find_class(module, name)</div><div>  File "/usr/lib/python2.6/pickle.py", line 1124, in find_class</div>
<div>    __import__(module)</div><div>ImportError: No module named mvpa.datasets.base</div></div><div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); ">
-----</div><div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); "><br></div><div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); ">
So what do I need? mvpa or mvpa2? How do I get this to work on something other then NeuroDebian VM?</div><div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); ">
<br></div><div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); "><br></div><div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); ">
Thanks a lot!!</div><div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); ">Ofir</div>
</div>