Original error: 'opencv4nodejs' module is required to use OpenCV features
See original GitHub issueThe problem
Unable to use opencv features even though it is installed.
Environment
- Appium version (or git revision) that exhibits the issue: 1.22.3
- Desktop OS/version used to run Appium: MacOS 12.5.1
- Node.js version (unless using Appium.app|exe): 18.9.0
- Npm or Yarn package manager: NPM
- Mobile platform/version under test: Android 12
- Real device or emulator/simulator: Pixel 4a 5G
- Appium CLI or Appium.app|exe: Appium CLI
Details
I get the error Original error: 'opencv4nodejs' module is required to use OpenCV features
even though it is installed.
Running npm list -g
shows the following:
/usr/local/lib
├── @appium/doctor@1.16.26
├── appium@1.22.3
├── npm@8.19.1
├── opencv-build@0.1.9
└── opencv4nodejs@5.6.0
I have tried uninstalling and re-installing appium, opencv, and npm multiple times but to no avail.
Link to Appium logs
(https://gist.github.com/hello297/64a0c7cfb98c46ac102c0559db8750d9)
Issue Analytics
- State:
- Created a year ago
- Comments:11 (2 by maintainers)
Top Results From Across the Web
Appium : Getting error: opencv4nodejs module is required to ...
Original error : 'opencv4nodejs' module is required to use OpenCV features. Please install it first ('npm i -g opencv4nodejs') and restart ...
Read more >error: opencv4nodejs module is required to use OpenCV ...
Original error: opencv4nodejs module is required to use OpenCV features. Please install it first (npm i -g opencv4nodejs) and restart Appium.
Read more >'opencv4nodejs' module is required to use OpenCV features ...
Original error : 'opencv4nodejs' module is required to use OpenCV features. Please install it first ('npm i -g opencv4nodejs') and restart Appium.
Read more >Opencv4nodejs already installed - Katalon Studio
Original error : 'opencv4nodejs' module is required to use OpenCV features. Please install it first ('npm i -g opencv4nodejs') and restart ...
Read more >When I tried to install opencv4nodejs I am getting an error
Looking at your error after running "appium-doctor". I will say please remove white spaces from all path which you are using. [Mandatory].
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@hello297 here are 2 guides which look good https://appiumpro.com/editions/123-migrating-to-appium-20-part-1-capability-prefixes https://journeyofquality.com/2021/10/08/migrate-appium-server-1-x-to-2-x/
installing opencv was really a pain for me in appium 1.x But better you should start migarting to 2.0 because all latest drivers and clients depending on it, most probably it will not work anymore sooner or later because appium 1.x will get no updates anymore.