<div dir="ltr">I'm still really struggling to get any paths frommvpa2.cfg outside of those specific ipython notebooks, even when I try running it from Qt console. Ipython seems neat, but I'd really rather avoid porting all of my analysis to these ipython notebooks. I'm very eager to start using mvpa2, if I can get it configured correctly.<div><br></div><div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 12, 2017 at 3:28 PM, Adam Jones <span dir="ltr"><<a href="mailto:ajones173@gmail.com" target="_blank">ajones173@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thanks for the help, it's much appreciated.<div><br></div><div>I already had -tutorialdata and -doc installed.</div><div>But as you suggest, cfg.get('location', 'tutorial data') does work within ipython. I can't say I understand why this is, but either way I'm still not able to access cfg from outside of ipython.</div><div>Is it necessary to setup the config file correctly for anything other than the tutorials? If so, any idea how I can set my config file to point to '/home/lab/pymvpa2_tutorial/data/' when accessed from just regular ol' python? If not, I can just stick with ipython to 'learn the ropes'.</div></div><div class="m_-8930457639855832891HOEnZb"><div class="m_-8930457639855832891h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 12, 2017 at 3:07 PM, Yaroslav Halchenko <span dir="ltr"><<a href="mailto:debian@onerussian.com" target="_blank">debian@onerussian.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span><br>
On Wed, 12 Apr 2017, Adam Jones wrote:<br>
<br>
> Hello all,<br>
<br>
> I am having trouble using several of the tutorials, which contain the<br>
> following command:<br>
> cfg.get('location', 'tutorial data')<br>
<br>
> Having read the following webpage: <a href="http://www.pymvpa.org/misc.html" rel="noreferrer" target="_blank">http://www.pymvpa.org/misc.html</a>,<br>
> I believe the above command should return the path to my 'data' folder<br>
> (e.g. /usr/lib/python2.7/dist-packages/mvpa2/data/).<br>
> But, instead it returns None.<br>
<br>
> I've tried un-commenting and setting line 129 of pymvpa2.cfg to 'root =<br>
> /usr/lib/python2.7/dist-packages/mvpa2/data/', and placing that file in my<br>
> $HOME directory (as per instructions), to no effect.<br>
<br>
> Can anyone tell me how to setup config files appropriately to run these<br>
> tutorials?<br>
<br>
</span>sorry<br>
since it seems that you are using Debian-based system and thus installed<br>
already python-mvpa2 package.  Now<br>
<br>
    sudo apt-get install python-mvpa2-tutorialdata python-mvpa2-doc<br>
<br>
NB you might need to enable <a href="http://neuro.debian.net" rel="noreferrer" target="_blank">http://neuro.debian.net</a> repository if you<br>
haven't yet<br>
<br>
and just type<br>
<br>
    pymvpa2-tutorial --use-notebook<br>
<br>
and see what happens ;)<br>
<br>
Data under /usr/lib/python2.7/dist-packages/mvpa2/data/  is just for<br>
testing, not sufficient for tutorials<br>
<span class="m_-8930457639855832891m_3751400244858325266HOEnZb"><font color="#888888"><br>
--<br>
Yaroslav O. Halchenko<br>
Center for Open Neuroscience     <a href="http://centerforopenneuroscience.org" rel="noreferrer" target="_blank">http://centerforopenneuroscience.org</a><br>
Dartmouth College, 419 Moore Hall, Hinman Box 6207, Hanover, NH 03755<br>
Phone: <a href="tel:(603)%20646-9834" value="+16036469834" target="_blank">+1 (603) 646-9834</a>                       Fax: <a href="tel:(603)%20646-1419" value="+16036461419" target="_blank">+1 (603) 646-1419</a><br>
WWW:   <a href="http://www.linkedin.com/in/yarik" rel="noreferrer" target="_blank">http://www.linkedin.com/in/yarik</a><br>
</font></span></blockquote></div><br></div>
</div></div></blockquote></div><br></div></div></div>