[pymvpa] LinearCSVMC module not found

Nick Oosterhof n.n.oosterhof at googlemail.com
Thu Sep 24 09:06:23 UTC 2015


> On 24 Sep 2015, at 09:10, Liang, Guangsheng <guangsheng.liang at ttu.edu> wrote:
> 
> I am using mac Yosemite v10.10.5. I setup the PyMVPA from the source according to the installation tutorial exactly. Everything goes well until I tried to use LinearCSVMC classifier. It returns, "name ‘LinearCSVMC’ is not defined”. [...]
> 
> In the step ‘python setup.py build_ext’, it has,
> #### ['/usr/bin/clang', '-fno-strict-aliasing', '-fno-common', '-dynamic', '-pipe', '-Os', '-fwrapv', '-DNDEBUG', '-g', '-fwrapv', '-O3', '-Wall', '-Wstrict-prototypes'] #######
> 
> Missing compiler_cxx fix for UnixCCompiler

This may be just a warning message [1]. Did this create any .so files? What happens if you run (in the PyMVPA root directory):

    find mvpa2 -iname '*.so'

On my system (also running Yosemite) I get:

    $ find mvpa2 -iname '*.so'
    mvpa2/clfs/libsmlrc/smlrc.so
    mvpa2/clfs/libsvmc/_svmc.so

If that does not return any matches in your case, what is the output of:

    find . -iname '*.so'

> Also, when I was trying to use PyMVPA in iPython, it is very strange to see that ipython returns ’no module named mvpa2’, but in python, mvpa2 can be successfully loaded. 

This may be a path issue. Did you add the PyMVPA path to the PYTHONPATH? 
On my system, I use:

    export PYTHONPATH=/Users/nick/git/PyMVPA:${PYTHONPATH}

where "/Users/nick/git/PyMVPA" is the PyMVPA root directory on my system. 

(by adding this line to ~/.bash_profile, this is run every time a new Terminal window is opened.)


More information about the Pkg-ExpPsy-PyMVPA mailing list