Xtra-Computing / thundersvm

ThunderSVM: A Fast SVM Library on GPUs and CPUs
Apache License 2.0
1.56k stars 216 forks source link

it is not loading dll of cuda [WinError 126] The specified module could not be found #144

Closed dileep3004 closed 5 years ago

dileep3004 commented 5 years ago

Traceback (most recent call last): File "thundersvm1.py", line 20, in from thundersvm import SVC File "C:\Users\pc\AppData\Local\Programs\Python\Python36\lib\site-packages\thundersvm__init__.py", line 12, in from .thundersvmScikit import * File "C:\Users\pc\AppData\Local\Programs\Python\Python36\lib\site-packages\thundersvm\thundersvmScikit.py", line 41, in thundersvm = CDLL(lib_path) File "C:\Users\pc\AppData\Local\Programs\Python\Python36\lib\ctypes__init.py", line 348, in init__ self._handle = _dlopen(self._name, mode) OSError: [WinError 126] The specified module could not be found

jiahuanluo commented 5 years ago

Hi @dileep3004

Did you try the latest library? We have tested our library and it works fine in Windows. It seems that your system lacks some dependencies. We cannot figure out the problem according to your information.

Yiyiyimu commented 5 years ago

Same problem occurs on both cpu and cuda10 version.

jiahuanluo commented 5 years ago

@Yiyiyimu Thank you for your information.

I have tested our latest version on Windows with CUDA 10, and it works fine. Could you please provide more detail to help us fix this efficiently?

Thanks.

5james commented 5 years ago

Hi, I have similar issue with CUDA 10 on linux.

I used cmake -DCMAKE_C_COMPILER=gcc-6 -DCMAKE_CXX_COMPILER=g++-6 .. if it somehow important. When I try to import thunderSVM this error shows up:

from thundersvm import SVC Traceback (most recent call last): File "", line 1, in File "/home/jguzek/.local/lib/python3.6/site-packages/thundersvm/init.py", line 12, in from .thundersvm import * File "/home/jguzek/.local/lib/python3.6/site-packages/thundersvm/thundersvm.py", line 41, in thundersvm = CDLL(lib_path) File "/usr/lib/python3.6/ctypes/init.py", line 348, in init self._handle = _dlopen(self._name, mode) OSError: libcusparse.so.9.0: cannot open shared object file: No such file or directory exit()

I think this might indicate that it wants CUDA 9.0. I firstly installed thunderSVM on pip but then realised that it used CUDA 9.0 so i uninstalled it. Maybe somehow it didn't remove everything.

UPDATE Yup. My bad and tip for anyone looking here. It was thundersvm from pip. I uninstalled it (again?) and removed every file/dir containing thundersvm from system. I built it again and then built the python wheel file and everything appears to be working.

zeyiwen commented 5 years ago

We would like to close this issue to reduce the risk of confusion. We will definitely look into the potential problems in the space of execution environment settings.