<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="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 class=""><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.<wbr>html</a>,<br>
> I believe the above command should return the path to my 'data' folder<br>
> (e.g. /usr/lib/python2.7/dist-<wbr>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-<wbr>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-<wbr>packages/mvpa2/data/ is just for<br>
testing, not sufficient for tutorials<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Yaroslav O. Halchenko<br>
Center for Open Neuroscience <a href="http://centerforopenneuroscience.org" rel="noreferrer" target="_blank">http://<wbr>centerforopenneuroscience.org</a><br>
Dartmouth College, 419 Moore Hall, Hinman Box 6207, Hanover, NH 03755<br>
Phone: +1 (603) 646-9834 Fax: +1 (603) 646-1419<br>
WWW: <a href="http://www.linkedin.com/in/yarik" rel="noreferrer" target="_blank">http://www.linkedin.com/in/<wbr>yarik</a><br>
</font></span></blockquote></div><br></div>