Skip to content

Instantly share code, notes, and snippets.

@serialhex
Created June 25, 2011 19:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save serialhex/1046813 to your computer and use it in GitHub Desktop.
Save serialhex/1046813 to your computer and use it in GitHub Desktop.
wonky python_modular error...
[~/src/shogun/shogun/examples/undocumented/python_modular]$ python2 classifier_libsvm_minimal_modular.py *[feature/ruby-mod][ruby-1.9.2-p180]
Traceback (most recent call last):
File "classifier_libsvm_minimal_modular.py", line 3, in <module>
from shogun.Features import *
File "/usr/lib/python2.7/site-packages/shogun/Features.py", line 30, in <module>
_Features = swig_import_helper()
File "/usr/lib/python2.7/site-packages/shogun/Features.py", line 26, in swig_import_helper
_mod = imp.load_module('_Features', fp, pathname, description)
ImportError: /usr/lib/python2.7/site-packages/shogun/_Features.so: undefined symbol: _ZN6shogun9CFeatures16add_preprocessorEPNS_13CPreprocessorE
## and after commenting out the "from shogun.Features import *" line (the first one calling a shogun lib)
[~/src/shogun/shogun/examples/undocumented/python_modular]$ python2 classifier_libsvm_minimal_modular.py *[feature/ruby-mod][ruby-1.9.2-p180]
Traceback (most recent call last):
File "classifier_libsvm_minimal_modular.py", line 4, in <module>
from shogun.Classifier import *
File "/usr/lib/python2.7/site-packages/shogun/Classifier.py", line 30, in <module>
_Classifier = swig_import_helper()
File "/usr/lib/python2.7/site-packages/shogun/Classifier.py", line 26, in swig_import_helper
_mod = imp.load_module('_Classifier', fp, pathname, description)
ImportError: /usr/lib/python2.7/site-packages/shogun/_Classifier.so: undefined symbol: _ZN6shogun4CKNN23classify_for_multiple_kEv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment