Thanks for the help, it's much appreciated. I already had -tutorialdata and -doc installed. 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. 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'.
On Wed, Apr 12, 2017 at 3:07 PM, Yaroslav Halchenko <deb...@onerussian.com> wrote: > > On Wed, 12 Apr 2017, Adam Jones wrote: > > > Hello all, > > > I am having trouble using several of the tutorials, which contain the > > following command: > > cfg.get('location', 'tutorial data') > > > Having read the following webpage: http://www.pymvpa.org/misc.html, > > I believe the above command should return the path to my 'data' folder > > (e.g. /usr/lib/python2.7/dist-packages/mvpa2/data/). > > But, instead it returns None. > > > I've tried un-commenting and setting line 129 of pymvpa2.cfg to 'root = > > /usr/lib/python2.7/dist-packages/mvpa2/data/', and placing that file in > my > > $HOME directory (as per instructions), to no effect. > > > Can anyone tell me how to setup config files appropriately to run these > > tutorials? > > sorry > since it seems that you are using Debian-based system and thus installed > already python-mvpa2 package. Now > > sudo apt-get install python-mvpa2-tutorialdata python-mvpa2-doc > > NB you might need to enable http://neuro.debian.net repository if you > haven't yet > > and just type > > pymvpa2-tutorial --use-notebook > > and see what happens ;) > > Data under /usr/lib/python2.7/dist-packages/mvpa2/data/ is just for > testing, not sufficient for tutorials > > -- > Yaroslav O. Halchenko > Center for Open Neuroscience http://centerforopenneuroscience.org > 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 >
_______________________________________________ Pkg-ExpPsy-PyMVPA mailing list Pkg-ExpPsy-PyMVPA@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-exppsy-pymvpa