You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mxnet.apache.org by GitBox <gi...@apache.org> on 2022/05/14 10:21:39 UTC

[GitHub] [incubator-mxnet] lleen12 commented on issue #17887: Import mxnet for mxnet-cu92 fails

lleen12 commented on issue #17887:
URL: https://github.com/apache/incubator-mxnet/issues/17887#issuecomment-1126686452

   > Hi Xenos24R, No, not really found a perfect solution. I use a virtual env, so I implemented a little .bat script and I basically copy the DLL to Python packages dir:
   > 
   > ```
   > :begin
   > @echo off
   > @echo copy cuda libs
   > call copy /y "C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v9.2\\bin\\cublas64_92.dll" "C:\\.env38\\Lib\\site-packages\\mxnet"
   > call copy /y "C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v9.2\\bin\\curand64_92.dll" "C:\\.env38\\Lib\\site-packages\\mxnet"
   > call copy /y "C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v9.2\\bin\\cufft64_92.dll" "C:\\.env38\\Lib\\site-packages\\mxnet"
   > call copy /y "C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v9.2\\bin\\cusolver64_92.dll" "C:\\.env38\\Lib\\site-packages\\mxnet"
   > call copy /y "C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v9.2\\bin\\nvrtc64_92.dll" "C:\\.env38\\Lib\\site-packages\\mxnet"
   > @echo activate python env
   > call C:\.env38\Scripts\activate.bat
   > ```
   > 
   > Not ideal, but functional! AL
   --------------------
   Hi alinagithub,
   I have the same question,but I can't slove it by your answers,can you help you?thank you very much!
   Here is my note:
   
   Traceback (most recent call last):
     File "D:\PyCharm_Project\ML_data.py", line 23, in <module>
       from mxnet import np
     File "D:\Program Files (x86)\python3.9.4\lib\site-packages\mxnet\__init__.py", line 25, in <module>
       from .context import Context, current_context, cpu, gpu, cpu_pinned
     File "D:\Program Files (x86)\python3.9.4\lib\site-packages\mxnet\context.py", line 23, in <module>
       from .base import classproperty, with_metaclass, _MXClassPropertyMetaClass
     File "D:\Program Files (x86)\python3.9.4\lib\site-packages\mxnet\base.py", line 351, in <module>
       _LIB = _load_lib()
     File "D:\Program Files (x86)\python3.9.4\lib\site-packages\mxnet\base.py", line 342, in _load_lib
       lib = ctypes.CDLL(lib_path[0], ctypes.RTLD_LOCAL)
     File "D:\Program Files (x86)\python3.9.4\lib\ctypes\__init__.py", line 374, in __init__
       self._handle = _dlopen(self._name, mode)
   FileNotFoundError: Could not find module 'D:\Program Files (x86)\python3.9.4\lib\site-packages\mxnet\libmxnet.dll' (or one of its dependencies). Try using the full path with constructor syntax.
   
   Process finished with exit code 1
   @alinagithub 
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@mxnet.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@mxnet.apache.org
For additional commands, e-mail: issues-help@mxnet.apache.org