-
Notifications
You must be signed in to change notification settings - Fork 815
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
Unable to load package 'opencv4nodejs': Cannot find module #815
Comments
I too have the same issue with windows, any advice would greatly helpful. [W3C (70d15ea8)] Calling AppiumDriver.compareImages() with args: ["getSimilarity","utils/Actual_screenshot.png","utils/templates/rse/row_amzn_signin.png",{},null,null,"70d15ea8-0c9d-4d55-8739-b00d9f72f56a"] appium doctor detects opencv4nodejs |
I can confirm nodecv4nodejs is installed but using with appium throws - Failed to load local package 'opencv4nodejs': Cannot find module 'opencv4nodejs' |
the same issue here on mac m1 Executing command 'compareImages' |
i am having the above issue also, I am on a mac with intel chip. I believe this is most likely a versioning issue, there seems to a difference in the file structure that's called for and the one supplied by this version. i would guess slowly testing older and older versions would be a good place to start, ill post my results as soon as a find them. Cheers and good luck |
After reading similar issues threads, it seems like this is an opencv4nodejs installation issue. Has anyone found a solution? |
Having the same issue with Raspberry OS. |
The same problem -> http://joxi.ru/8AnDXEWHNxWD1m |
In your screenshot, I can see the @u4 version. the u4 version requires you to call the build script that may change since my warning message may not be seen. |
having same issue and fixed it !!
|
have you found the solution ? |
[Support] Unable to load package 'opencv4nodejs': Cannot find module '/usr/local/lib/node_modules/opencv4nodejs/build/Release/opencv4nodejs'
[Support] Require stack:
[Support] - /usr/local/lib/node_modules/opencv4nodejs/lib/cv.js
[Support] - /usr/local/lib/node_modules/opencv4nodejs/lib/opencv4nodejs.js
[Support] - /usr/local/lib/node_modules/appium/node_modules/appium-support/build/lib/node.js
[Support] - /usr/local/lib/node_modules/appium/node_modules/appium-support/build/lib/image-util.js
[Support] - /usr/local/lib/node_modules/appium/node_modules/appium-support/build/index.js
[Support] - /usr/local/lib/node_modules/appium/build/lib/logsink.js
[Support] - /usr/local/lib/node_modules/appium/build/lib/main.js
I explicitly set the OPENCV4NODEJS_DISABLE_AUTOBUILD=1
I've installed opencv4nodejs through brew install v3.4.14
and then run npm -g install opencv4nodejs
installation was successful
when I run appium-doctor
![image](https://user-images.githubusercontent.com/56083057/124110351-f1616a00-da89-11eb-878a-368887e4c46b.png)
It shows that appium sees opencv library
it's strange that it shows that 5.6.0 version installed
When I'm trying to run test following error appears: Unable to load package 'opencv4nodejs': Cannot find module '/usr/local/lib/node_modules/opencv4nodejs/build/Release/opencv4nodejs'
but actual location: /usr/local/lib/node_modules/opencv4nodejs/build/Release/obj.target/opencv4nodejs
tried to remove obj.target folder it didn’t help
With OpenCV-contrib? (extra modules): no
Appium v 1.21.0
MacOSX Big Sur 11.4
The text was updated successfully, but these errors were encountered: