Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

import mxnet error #2601

Closed
SJTUzhanglj opened this issue Jul 3, 2016 · 5 comments
Closed

import mxnet error #2601

SJTUzhanglj opened this issue Jul 3, 2016 · 5 comments

Comments

@SJTUzhanglj
Copy link

I wanna test a faster rcnn demo and re-compiled a MXNet for detection version. I have compiled out the libs and dlls, but I set the python interface and meet the following error:

import mxnet
Traceback (most recent call last):
File "", line 1, in
File "D:\Anaconda2\lib\site-packages\mxnet-0.7.0-py2.7.egg\mxnet__init__.py", line 7, in
from .base import MXNetError
File "D:\Anaconda2\lib\site-packages\mxnet-0.7.0-py2.7.egg\mxnet\base.py", line 43, in
LIB = load_lib()
File "D:\Anaconda2\lib\site-packages\mxnet-0.7.0-py2.7.egg\mxnet\base.py", line 35, in load_lib
lib = ctypes.cdll.LoadLibrary(lib_path[0])
File "D:\Anaconda2\lib\ctypes__init
.py", line 443, in LoadLibrary
return self.dlltype(name)
File "D:\Anaconda2\lib\ctypes__init
.py", line 365, in init
self._handle = _dlopen(self._name, mode)
WindowsError: [Error 126]

I think it's a environment-path error but i don't know how to fix it. The official instructor is only for linux.

@piiswrong
Copy link
Contributor

@hjk41

@sxjscience
Copy link
Member

Sometimes it's caused by OpenCV. Remember to add the OpenCV library to the environment variable.

@cjfan
Copy link
Contributor

cjfan commented Jul 3, 2016

WindowsError: [Error 126]
This is usually because the dependent dll not find.So, you can:
1.use the 'Depends' tools open the libmxnet.dll, see which dll is missing.
2.make sure the u have the dll in your machine, and add the environment-path.

@SJTUzhanglj
Copy link
Author

Thank you for solving my trouble @cjfan

@sunbinbin1991
Copy link

I have same problem, actually, my project is work yesterday,and I can't find the reason.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants