Wutever opened a new issue #15035: import self-complied mxnet in windows failed with dependency missing URL: https://github.com/apache/incubator-mxnet/issues/15035 Note: Providing complete information in the most concise form is the best way to get help. This issue template serves as the checklist for essential information to most of the technical issues and bug reports. For non-technical issues and feature requests, feel free to present the information in what you believe is the best form. For Q & A and discussion, please start a discussion thread at https://discuss.mxnet.io ## Description (Brief description of the problem in no more than 2 sentences.) import mxnet failed with: OSError: [WinError 126] The specified module could not be found ## Environment info (Required) Windows, python 2.7/3.6 self complied module with Distributed_KV_store =1 ``` What to do: 1. Download the diagnosis script from https://raw.githubusercontent.com/apache/incubator-mxnet/master/tools/diagnose.py 2. Run the script using `python diagnose.py` and paste its output here. C:\Users\Umake\Desktop\Pslite-research>py -3.6 test.py ----------Python Info---------- Version : 3.6.6 Compiler : MSC v.1900 64 bit (AMD64) Build : ('v3.6.6:4cf1f54eb7', 'Jun 27 2018 03:37:03') Arch : ('64bit', 'WindowsPE') ------------Pip Info----------- Version : 10.0.1 Directory : C:\Users\Umake\AppData\Local\Programs\Python\Python36\lib\site-packages\pip ----------MXNet Info----------- Hashtag not found. Not installed from pre-built package. ----------System Info---------- Platform : Windows-10-10.0.17134-SP0 system : Windows node : DESKTOP-UCLJ9K9 release : 10 version : 10.0.17134 ----------Hardware Info---------- machine : AMD64 processor : Intel64 Family 6 Model 60 Stepping 3, GenuineIntel Name Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz ----------Network Test---------- Setting timeout: 10 Timing for MXNet: https://github.com/apache/incubator-mxnet, DNS: 0.0280 sec, LOAD: 0.8541 sec. Timing for Gluon Tutorial(en): http://gluon.mxnet.io, DNS: 0.0070 sec, LOAD: 0.3719 sec. Timing for Gluon Tutorial(cn): https://zh.gluon.ai, DNS: 0.0110 sec, LOAD: 0.3152 sec. Error open FashionMNIST: https://apache-mxnet.s3-accelerate.dualstack.amazonaws.com/gluon/dataset/fashion-mnist/train-labels-idx1-ubyte.gz, <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:841)>, DNS finished in 0.01736164093017578 sec. Timing for PYPI: https://pypi.python.org/pypi/pip, DNS: 0.0100 sec, LOAD: 0.3621 sec. Timing for Conda: https://repo.continuum.io/pkgs/free/, DNS: 0.0000 sec, LOAD: 0.0869 sec. C:\Users\Umake\Desktop\Pslite-research> ``` Package used (Python/R/Scala/Julia): Python (I'm using ...) For Scala user, please provide: 1. Java version: (`java -version`) 2. Maven version: (`mvn -version`) 3. Scala runtime if applicable: (`scala -version`) For R user, please provide R `sessionInfo()`: ## Build info (Required if built from source) Compiler (gcc/clang/mingw/visual studio): visual studio MXNet commit hash: (Paste the output of `git rev-parse HEAD` here.) f680255fbff25818ed3eee0d4541d80b3c7b9d9d Build config: (Paste the content of config.mk, or the build command.) cmake: `cmake -G "Visual Studio 15 2017 Win64" -T cuda=9.2,host=x64 -DUSE_CUDA=1 -DUSE_CUDNN=1 -DUSE_NVRTC=1 -DUSE_OPENCV=1 -DUSE_OPENMP=1 -DUSE_BLAS=open -DUSE_LAPACK=1 -DUSE_DIST_KVSTORE=1 -DCUDA_ARCH_LIST=Common -DCUDA_TOOLSET=9.2 -DCUDNN_INCLUDE=C:\cuda\include -DCUDNN_LIBRARY=C:\cuda\lib\x64\cudnn.lib "C:\incubator-mxnet"` protobuf, ZMQ: I manually set the ZMQ_LIBRARY with "path/libzmq-v120-mt-4_0_4.lib" in cmake and Protobuf_EXECUTE with "path/bin/protoc" then `msbuild mxnet.sln /p:Configuration=Release;Platform=x64 /maxcpucount` during running the mxnet.vcxproj it has an error about "protobuf.lib" can not found, I delete it manually in the vcxproj file. and complie is successful then `cd python` `py -3.6 setup.py install` ## Error Message: (Paste the complete error message, including stack trace.) C:\Users\Umake\AppData\Local\Programs\Python\Python36\lib\site-packages\mxnet-1.5.0-py3.6.egg\mxnet\libmxnet.dll Traceback (most recent call last): File "", line 1, in File "C:\Users\Umake\AppData\Local\Programs\Python\Python36\lib\site-packages\mxnet-1.5.0-py3.6.egg\mxnet__init__.py", line 24, in `from .context import Context, current_context, cpu, gpu, cpu_pinned` File "C:\Users\Umake\AppData\Local\Programs\Python\Python36\lib\site-packages\mxnet-1.5.0-py3.6.egg\mxnet\context.py", line 24, in `from .base import classproperty, with_metaclass, _MXClassPropertyMetaClass` File "C:\Users\Umake\AppData\Local\Programs\Python\Python36\lib\site-packages\mxnet-1.5.0-py3.6.egg\mxnet\base.py", line 214, in `_LIB = _load_lib()` File "C:\Users\Umake\AppData\Local\Programs\Python\Python36\lib\site-packages\mxnet-1.5.0-py3.6.egg\mxnet\base.py", line 205, in _load_lib `lib = ctypes.CDLL(lib_path[0], ctypes.RTLD_LOCAL)` File "C:\Users\Umake\AppData\Local\Programs\Python\Python36\lib\ctypes__init__.py", line 351, in init `self._handle = _dlopen(self._name, mode)` OSError: [WinError 126] The specified module could not be found ## Minimum reproducible example (If you are using your own code, please provide a short script that reproduces the error. Otherwise, please provide link to the existing example.) turn DISTRITUBTED_KVSTORE =1 , nothing else changed, need to also self complie the protobuf, and install ZMQ in WINDOWS 10 x64 ## Steps to reproduce (Paste the commands you ran that produced the error.) 1.` import mxnet` 2. ## What have you tried to solve it? 1.the problem occer at dll mxnet.dll, since the error stack starts when python use Dload function with argument "mxnet.dll" 2. I try to use `dumpbin mxnet.dll` to check what the dependency is , ` libopenblas.dll opencv_world341.dll cudnn64_7.dll cublas64_92.dll cufft64_92.dll cusolver64_92.dll curand64_92.dll nvrtc64_92.dll nvcuda.dll ADVAPI32.dll KERNEL32.dll VCOMP140.DLL libzmq-v120-mt-4_0_4.dll IPHLPAPI.DLL WS2_32.dll ` but I need to know what my dependency is missing and how I am gonna need to fix it in another world, I need to know what does `from .context import Context, current_context, cpu, gpu, cpu_pinned` line do at "mxnet__init__.py", line 24 and how do I know which dependency is missing? and how to fix it.
---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
