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

The specified module could not be found error in OpWrapperGenerator.py #12519

Open
aligoglos opened this issue Sep 11, 2018 · 4 comments
Open

Comments

@aligoglos
Copy link

i want build mxnet with cpp-package but this error occur:

"Running: OpWrapperGenerator.py"
1>  Traceback (most recent call last):
1>    File "OpWrapperGenerator.py", line 432, in <module>
1>      raise(e)
1>    File "OpWrapperGenerator.py", line 426, in <module>
1>      f.write(patternStr % ParseAllOps())
1>    File "OpWrapperGenerator.py", line 319, in ParseAllOps
1>      cdll.libmxnet = cdll.LoadLibrary(sys.argv[1])
1>    File "C:\Users\127051\AppData\Local\Programs\Python\Python35\lib\ctypes\__init__.py", line 429, in LoadLibrary
1>      return self._dlltype(name)
1>    File "C:\Users\127051\AppData\Local\Programs\Python\Python35\lib\ctypes\__init__.py", line 351, in __init__
1>      self._handle = _dlopen(self._name, mode)
1>  OSError: [WinError 126] The specified module could not be found
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(171,5): error MSB6006: "cmd.exe" exited with code 1.
========== Build: 0 succeeded, 1 failed, 4 up-to-date, 0 skipped ==========

accord to this #10049 i put all dependency DLL's to release folder but issue doesn't solved.

----------Python Info----------
('Version :', '2.7.13')
('Compiler :', 'MSC v.1500 32 bit (Intel)')
('Build :', ('v2.7.13:a06454b1afa1', 'Dec 17 2016 20:42:59'))
('Arch :', ('32bit', 'WindowsPE'))
------------Pip Info-----------
('Version :', '10.0.1')
('Directory :', 'C:\Python27\lib\site-packages\pip')
----------MXNet Info-----------
No MXNet installed.
----------System Info----------
('Platform :', 'Windows-10-10.0.17134')
('system :', 'Windows')
('node :', 'AliKiani-PC')
('release :', '10')
('version :', '10.0.17134')
----------Hardware Info----------
('machine :', 'AMD64')
('processor :', 'Intel64 Family 6 Model 94 Stepping 3, GenuineIntel')
Name

@kalyc
Copy link
Contributor

kalyc commented Sep 11, 2018

Thanks for submitting this issue @aligoglos
@mxnet-label-bot[Windows, Build]

@AvenSun
Copy link
Contributor

AvenSun commented Sep 16, 2018

@aligoglos
It seems that the libmxnet.dll cannot find its dependency,
you should put all dependency libraries (libopenblas libgfortran libgcc_s_seh libquadmath opencv_xxx etc.)
into system PATH, or the same directory with libmxnet.dll
then running the command below
python OpWrapperGenerator.py ./path/libmxnet.dll
you'll get the op.h generated successfully

@aligoglos
Copy link
Author

yes this issue because of libmxnet.dll dependencies, i add all dll dependency into libmxnet.dll folder but this time this error occur :
FileNotFoundError: [Errno 2] No such file or directory: '../include/mxnet-cpp/op.h'

@AvenSun
Copy link
Contributor

AvenSun commented Sep 19, 2018

@aligoglos
did you run the command
python OpWrapperGenerator.py ./path/libmxnet.dll
if you did and no error occured,
the op.h should be in directory cpp-package\include\mxnet-cpp\op.h

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

No branches or pull requests

4 participants