SVM module not found error
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.
https://github.com/pyinstaller/pyinstaller/issues/6725
referring to this issue. I'm also facing the same problem. Please tell me what to change.
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.
Anyway, I'm moving this to contributed hooks repository; if we were to implement hook for libsvm, it would be there.