[pymvpa] Trouble running pyMVPA on Mac OS 10.6.6

Yaroslav Halchenko debian at onerussian.com
Wed Oct 26 13:04:08 UTC 2011


macport's py26-pymvpa installs stable version 0.4.7 which provides
'mvpa' not newer mvpa2 module needed for testing.

Kyle (our MacPorts guru/point of contact) -- would it be possible also to
provide a port of py26-pymvpa2 building pymvpa out of master branch (or
upstream/2.* tags, but mention that .rc should precede upcoming release).
mvpa2 is pretty much further evolution of that snapshot 0.6.* which you once
already pointed to in your port... additional optional
dependencies/recommendations should be: h5py, scikit-learn

Thad -- now you have two options:

1. try installing/using it directly from sources: it should be as simple as

  git clone git://github.com/PyMVPA/PyMVPA.git
  cd PyMVPA
  make
  export PYTHONPATH=$PWD

and you should be all set

2. run NeuroDebian VM which would provide you access to not only PyMVPA but
dozens of other machine learning and neuroimaging software:

   http://neuro.debian.net/vm.html

Cheers

On Wed, 26 Oct 2011, Thad Polk wrote:


> I'd like to try out pyMVPA on my Mac but am having trouble getting
> started. Following the directions at
> http://www.pymvpa.org/installation.html#install-macos
> I first installed the XCode developer tools, added opt/local/bin and
> /opt/local/sbin to my PATH and then issued the command

> $ sudo port install py26-pymvpa +scipy +nibabel +hcluster +libsvm
>   +matplotlib +pywavelet

> which seemed to run through everything although I didn't watch every
> line of output so it's possible something didn't work (BTW: the
> documentation mentions py25-pymvpa but that version was not found).

> The subsequent commands from the installation instructions yield the
> following output:

> $ port variants py26-pymvpa
> py26-pymvpa has the variants:
>    gcc43: build with gcc 4.3
>      * conflicts with gcc44
> [+]gcc44: build with gcc 4.4
>      * conflicts with gcc43
>    gcc45: build with gcc 4.5
>      * conflicts with gcc43 gcc44
>    no_shogun: Do not build shogun
>    universal: Build for multiple architectures

> $ sudo port install python_select
> --->  Cleaning python_select

> $ sudo python_select python26
> sudo: python_select: command not found


> Despite this last error, I can start up python and run it (but I
> already had Python installed, so this does not prove that the pyMPVA
> installation worked):

> $ python
> Python 2.6.1 (r261:67515, Jun 24 2010, 21:47:49)
> [GCC 4.2.1 (Apple Inc. build 5646)] on darwin
> Type "help", "copyright", "credits" or "license" for more information.



> However, when I then try to import mvpa2 (or mvpa2.tutorial_suite,
> or mvpa), python can't find the modules:

> >>>import mvpa2
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
> ImportError: No module named mvpa2

> >>>from mvpa2.tutorial_suite import *
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
> ImportError: No module named mvpa2.tutorial_suite

> >>>import mpva
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
> ImportError: No module named mpva



> I went digging around on my machine and found the following tarball:
> py26-pymvpa-0.4_0+gcc44.darwin_10.x86_64.tbz2 in
> /opt/local/var/macports/software/py26-pymvpa. I also found a number
> of mvpa-related python files in /opt/local/share/doc/mvpa/examples.

> Thoughts?

> Thanks,

> Thad


> _______________________________________________
> Pkg-ExpPsy-PyMVPA mailing list
> Pkg-ExpPsy-PyMVPA at lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-exppsy-pymvpa


-- 
=------------------------------------------------------------------=
Keep in touch                                     www.onerussian.com
Yaroslav Halchenko                 www.ohloh.net/accounts/yarikoptic



More information about the Pkg-ExpPsy-PyMVPA mailing list