question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Original error: 'opencv4nodejs' module is required to use OpenCV features

See original GitHub issue

The 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:closed
  • Created a year ago
  • Comments:11 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
StephanB75commented, Sep 14, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found