Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

process.dlopen(...) - Error: The specified module could not be found. #50

Closed
scratch85 opened this issue Nov 1, 2017 · 4 comments
Closed

Comments

@scratch85
Copy link

The Error:

module.js:597
  return process.dlopen(module, path._makeLong(filename));
                 ^

Error: The specified module could not be found.
\\?\C:\Users\me\Downloads\opencv_test\node_modules\opencv4nodejs\build\Release\opencv4nodejs.node
    at Error (native)
    at Object.Module._extensions..node (module.js:597:18)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (C:\Users\me\Downloads\opencv_test\node_modules\opencv4nodejs\lib\opencv4nodejs.js:7:8)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)

The Code I'm trying to execute:

const cv = require('opencv4nodejs');
const template = cv.imread('image.png');

Versions etc ...

node -v
v6.11.4

npm list -g -depth 0
C:\Users\me\AppData\Roaming\npm
`-- windows-build-tools@1.3.2

npm list -depth 0
C:\Users\me\Downloads\opencv_test
`-- opencv4nodejs@2.15.0

echo %OPENCV_DIR%
C:\opencv

echo %OPENCV_LIB_DIR%
C:\opencv\build\x64\vc14\lib

echo %OPENCV_INCLUDE_DIR%
C:\opencv\build\include

Tried with: opencv-3.3.1-vc14.exe

I tried to npm rebuild already, also I tried to install completly new with the same outcome.
Install looked good to me.

Thanks for any help!

@justadudewhohacks
Copy link
Owner

Hey,

this error means that it could not load the binaries, e.g. the opencv .dlls. Are you sure that you have the opencv binary path added to your system path?

Another reason for that error could be that the dlls do not match with the linked libraries. For example if you try to link static debug libraries with release dlls or maybe you still have opencv binaries from another version than 3.3.1 in your system path.

@scratch85
Copy link
Author

Damn ... a typo :|
Thanks for pointing quickly in the right direction! 👍

@YJRdeKloe
Copy link

When you run "pip install shapely" it will show you where the package is installed [in my case Requirement already satisfied: shapely in c:\users<USERNAME>\anaconda3\envs<ENVNAME>\lib\site-packages (1.7.1))]. Then go into that folder (c:\users<USERNAME>\anaconda3\envs<ENVNAME>\lib\site-packages\shapely), there is a folder called DLLS. Copy the files from there to your environment's library (in my case c:\users<USERNAME>\anaconda3\envs<ENVNAME>\Library\bin)

@hguitar
Copy link

hguitar commented Dec 9, 2021

When you run "pip install shapely" it will show you where the package is installed [in my case Requirement already satisfied: shapely in c:\users\anaconda3\envs\lib\site-packages (1.7.1))]. Then go into that folder (c:\users\anaconda3\envs\lib\site-packages\shapely), there is a folder called DLLS. Copy the files from there to your environment's library (in my case c:\users\anaconda3\envs\Library\bin)

How this related to pip?

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

No branches or pull requests

4 participants