[pymvpa] trouble using tutorials

Adam Jones ajones173 at gmail.com
Thu Apr 13 17:53:35 UTC 2017


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.


On Wed, Apr 12, 2017 at 3:28 PM, Adam Jones <ajones173 at gmail.com> wrote:

> 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 <debian at 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 <(603)%20646-9834>                       Fax: +1
>> (603) 646-1419 <(603)%20646-1419>
>> WWW:   http://www.linkedin.com/in/yarik
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-exppsy-pymvpa/attachments/20170413/34b234e2/attachment.html>


More information about the Pkg-ExpPsy-PyMVPA mailing list