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

SVM module not found error #600

Open
arpitpara opened this issue Jun 18, 2023 · 2 comments
Open

SVM module not found error #600

arpitpara opened this issue Jun 18, 2023 · 2 comments
Labels

Comments

@arpitpara
Copy link

File "", line 1007, in _find_and_load
File "", line 986, in _find_and_load_unlocked
File "", line 680, in _load_unlocked
File "PyInstaller\loader\pyimod02_importers.py", line 385, in exec_module
File "libsvm\svmutil.py", line 4, in
File "", line 1007, in _find_and_load
File "", line 986, in _find_and_load_unlocked
File "", line 680, in _load_unlocked
File "PyInstaller\loader\pyimod02_importers.py", line 385, in exec_module
File "libsvm\svm.py", line 45, in
Exception: LIBSVM library not found.

pyinstaller/pyinstaller#6725

referring to this issue. I'm also facing the same problem. Please tell me what to change.

@rokm
Copy link
Member

rokm commented Jun 18, 2023

The code in "libsvm\svm.py", line 45 is trying to load shared library (judging by the line number, that's probably libsvm-official with corresponding code as opposed to libsvm with corresponding code, but the only difference is the library name and placement).

PyInstaller does not collect such shared libraries automatically, so you need to ensure that it is collected (and that it is collected where the package's code expects to find it). It might be easiest to just use --add-binary but you could also try to automate the search with a custom hook.

@rokm
Copy link
Member

rokm commented Jun 18, 2023

Anyway, I'm moving this to contributed hooks repository; if we were to implement hook for libsvm, it would be there.

@rokm rokm transferred this issue from pyinstaller/pyinstaller Jun 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants