[pymvpa] MacPorts installation error: not recognizing SWIG

David Soto d.soto.b at gmail.com
Mon Jun 20 19:29:55 UTC 2016


Hi, I had trouble with macports, but was able to install all dependencias
and PyMVPA via hombrew and pip

this is my recipe in case you would like to try it out, it works on my
Macbook with el Capitan

best
david
_________________________________________________________________
#  Install command line tools

xcode-select --install

_________________________________________________________________
# Installing Brew
/usr/bin/ruby -e "$(curl -fsSL
https://raw.githubusercontent.com/Homebrew/install/master/install)"
_________________________________________________________________
# Set up some taps and update brew
brew tap homebrew/science
brew tap homebrew/python
brew update && brew upgrade
_________________________________________________________________
# Install a brewed python
brew install python

_________________________________________________________________
#Install numpy, cython and h5py and scipy
pip install numpy
pip install scipy
pip install cython
brew install hdf5
pip install h5py
pip install nipy

#Install matplotlib with cairo support for png, ps, pdf and svg files
brew install matplotlib --with-cairo
_________________________________________________________________
#Relink numpy to brew as it was installed with pip
brew link --overwrite numpy
_________________________________________________________________
#Install Pandas
pip install pandas
_________________________________________________________________
#Install ipython with parallel and notebook support
brew install zmq
pip install ipython[all]
_________________________________________________________________
#install IDE ninja
pip install macfsevents
brew install ninja-ide
_________________________________________________________________
pip install -U scikit-learn
_________________________________________________________________
#PYMVPA
pip install nibabel
brew install swig

_________________________________________________________________
#Download PYMVPA from github and extract
git clone git://github.com/PyMVPA/PyMVPA.git
unzip master
cd PyMVPA-master

#Build libsvm
sudo make 3rd

#Build PyMVPA itself
sudo python setup.py build_ext

#And install
sudo python setup.py install

If you get a locale error
ValueError: unknown locale: UTF-8
Either run these commands before running python or add them to your
bash_profile or .profile
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8



On 20 June 2016 at 21:09, Kranz, Michael Benjamin <mbkranz at illinois.edu>
wrote:

> Hi,
>
> I was not able to download PyMVPA through MacPorts due to an error (Error:
> org.macports.build for port py27-pymvpa returned: command execution failed).
>
> I am using Mac 10.11.3 with swig version 3.0.11 installed.
>
> I was wondering if there were any suggestions on how to proceed with
> installation and debugging?
>
> Looking at the main.log log file, it appears that SWIG is not being
> recognized (even though I have swig installed). The error is below:
>
> :info:build build_src
> :info:build building extension "mvpa2.clfs.libsmlrc.smlrc" sources
> :info:build building extension "mvpa2.clfs.libsvmc._svmc" sources
> :info:build creating build
> :info:build creating build/src.macosx-10.11-x86_64-2.7
> :info:build creating build/src.macosx-10.11-x86_64-2.7/mvpa2
> :info:build creating build/src.macosx-10.11-x86_64-2.7/mvpa2/clfs
> :info:build creating build/src.macosx-10.11-x86_64-2.7/mvpa2/clfs/libsvmc
> :info:build swig++: mvpa2/clfs/libsvmc/svmc.i
> :info:build swig -python -I/opt/local/include -c++ -I/opt/local/include -o
> build/src.macosx-10.11-x86_64-2.7/mvpa2/clfs/libsvmc/svmc_wrap.cpp -outdir
> build/src.macosx-10.11-x86_64-2.7/mvpa2/clfs/libsvmc
> mvpa2/clfs/libsvmc/svmc.i
> :info:build unable to execute 'swig': No such file or directory
> :info:build error: command 'swig' failed with exit status 1
>
> Best,
> Mike
>
> --
> Michael Kranz
> Graduate Research Assistant | Beckman Institute University of Illinois
> 314-323-1329
>
>
>
>
> _______________________________________________
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-exppsy-pymvpa/attachments/20160620/2f3b15c3/attachment.html>


More information about the Pkg-ExpPsy-PyMVPA mailing list