Howdy: No module named 'cv2'

Created on 5 May 2018  Â·  14Comments  Â·  Source: boltgolt/howdy

Traceback (most recent call last):
File "/usr/local/bin/howdy", line 98, in
import cli.test
File "/lib/security/howdy/cli/test.py", line 5, in
import cv2
ImportError: No module named 'cv2'

dependency

Most helpful comment

I have solved this issue in Ubuntu 18.04 installing the python3-opencv package:

sudo apt install python3-opencv

adding it as dependency for the .deb package can solve the issue in Ubuntu 18.04

All 14 comments

Edit:

To install the python bindings for opencv, run the following command:

pip3 install opencv-python

Read the rest of the comments for other solutions if that doesn't work.

Original comment:

Could you try the solution in the last part of this comment?

The conda command is not found. Did I install something wrong?

On Sat, May 5, 2018 at 12:13 PM boltgolt notifications@github.com wrote:

Could you try the solution in the last part of this
https://github.com/Boltgolt/howdy/issues/7#issuecomment-368305023
comment?

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/Boltgolt/howdy/issues/32#issuecomment-386820827, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AlM_XDigUxZ4WkSTv1Jqn4SoVFgSG3zJks5tvd3LgaJpZM4Tzsns
.

Could you try sudo apt install libopencv-dev python-opencv?

When I run that line in the terminal it returns with already having the
newest version. So I don’t think that’s it.

On Sat, May 5, 2018 at 2:40 PM boltgolt notifications@github.com wrote:

Could you try sudo apt install libopencv-dev python-opencv?

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/Boltgolt/howdy/issues/32#issuecomment-386829885, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AlM_XA3T046fNyzIg0rnKgkYgLskdJLBks5tvgA6gaJpZM4Tzsns
.

Looks like you're only missing the python 3 bindings, could you try following 2, 2.1 and 2.2 of this tutorial?

That worked for me.

was missing python3 bindings as well, fixed with pip3 install opencv-python

pip3 install opencv-python worked for me

It also works as expected on the travis 16.04 instance, it seems very machine dependent

I have solved this issue in Ubuntu 18.04 installing the python3-opencv package:

sudo apt install python3-opencv

adding it as dependency for the .deb package can solve the issue in Ubuntu 18.04

python-opencv fails to install on many 16.04 installations though, which breaks this package all together if it would be a dependency. I might add a catch for a missing OpenCV library with a link to a wiki page with further instructions.

This last release should now automatically detect this problem and fix it. Feel free to reopen this issue if you still have the same problem on version 2.4.0 or above.

Thank you, it works now.
However I needed to install these package, it was not automatic

sudo pip3 install opencv-python
sudo apt install libopencv-dev python-opencv
sudo pip3 install dlib
Was this page helpful?
0 / 5 - 0 ratings