[pymvpa] problem with shogun import
brice rebsamen
brice.rebsamen at gmail.com
Mon Mar 28 08:59:44 UTC 2011
I'm using debian wheezy (testing)
pymvpa (0.4) packages installed with all required dependencies, as
well as shogun packages.
from mvpa.suite import *
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
/media/data/Documents/CognitiveLoad/code/pycode/eeg/<ipython console>
in <module>()
/usr/lib/pymodules/python2.6/mvpa/suite.py in <module>()
56 from mvpa.clfs.stats import *
57 if externals.exists('libsvm') or externals.exists('shogun'):
---> 58 from mvpa.clfs.svm import *
59 from mvpa.clfs.transerror import *
60 from mvpa.clfs.warehouse import *
/usr/lib/pymodules/python2.6/mvpa/clfs/svm.py in <module>()
52
53 if externals.exists('shogun'):
---> 54 from mvpa.clfs import sg
55 SVM = sg.SVM
56 #if not 'LinearCSVMC' in locals():
/usr/lib/pymodules/python2.6/mvpa/clfs/sg/__init__.py in <module>()
15 debug('INIT', 'mvpa.clfs.sg')
16
---> 17 from mvpa.clfs.sg.svm import SVM
18
19 if __debug__:
/usr/lib/pymodules/python2.6/mvpa/clfs/sg/svm.py in <module>()
29 from mvpa.base import externals, warning
30 if externals.exists('shogun', raiseException=True):
---> 31 import shogun.Features
32 import shogun.Classifier
33 import shogun.Regression
/usr/lib/pymodules/python2.6/shogun/Features.py in <module>()
1194
1195 try: import Library as shogunLibrary
-> 1196 except exceptions.ImportError: import shogun.Library as shogunLibrary
1197
1198 def __SGgetstate__(self):
/usr/lib/pymodules/python2.6/shogun/Library.py in <module>()
27 fp.close()
28 return _mod
---> 29 _Library = swig_import_helper()
30 del swig_import_helper
31 else:
/usr/lib/pymodules/python2.6/shogun/Library.py in swig_import_helper()
23 if fp is not None:
24 try:
---> 25 _mod = imp.load_module('_Library', fp,
pathname, description)
26 finally:
27 fp.close()
ImportError: /usr/lib/pymodules/python2.6/shogun/_Library.so:
undefined symbol: _ZN6shogun21CSerializableHdf5FileC1EPKcc
More information about the Pkg-ExpPsy-PyMVPA
mailing list