Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to run code #4

Open
ShaofengZou opened this issue May 6, 2019 · 2 comments
Open

Not able to run code #4

ShaofengZou opened this issue May 6, 2019 · 2 comments

Comments

@ShaofengZou
Copy link

Hi~

Thanks for sharing your work.

but when i run examples.ipynb , i get

AttributeError: /usr/lib/libsvm.so.3: undefined symbol: svm_get_sv_indices

I run it in Ubuntu 16.04 and l have excute the command:

apt-get install libsvm-dev
and
pip install --process-dependency-links pybrisque

successfully

Any suggestions would be helpful.

Thanks in advance.

@akbargumbira
Copy link
Contributor

akbargumbira commented Jul 16, 2019

Hi @ShaofengZou, it seems that in Ubuntu 16.04, the libsvm that is distributed is version 3.12 (while the python-binding that we use during the installation of pybrisque is 3.14) and there's breaking changes between them.

You can solve this issue by uninstalling libsvm from pybrisque i.e pip uninstall libsvm and install python-libsvm from distribution i.e apt install python-libsvm (which will have the exact same libsvm 3.12). If you can't import svm, you can try to add /usr/share/pyshared to your PYTHONPATH.

Cheers

@abhinavshaw1993
Copy link

abhinavshaw1993 commented Nov 26, 2019

Hey, I did that. It seems that the default model type for libsvm might be different in 3.12. On reading allmodel I get, argument 1: <class 'TypeError'>: wrong type, how do I resolve this?

Line: model = libsvm.svm_load_model(model_file_name) in /usr/share/pyshared/svmutil.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants