Error when adding a face (since Ubuntu 20.04)
See original GitHub issueSince I upgraded to Ubuntu 20.04, Howdy does no longer work. I reinstalled Howdy (this worked), but when I try to add a face I get this error (after entering the name):
Traceback (most recent call last):
File "/usr/local/bin/howdy", line 95, in <module>
import cli.add
File "/usr/lib/security/howdy/cli/add.py", line 99, in <module>
video_capture = VideoCapture(config)
File "/usr/lib/security/howdy/recorders/video_capture.py", line 45, in __init__
self._create_reader()
File "/usr/lib/security/howdy/recorders/video_capture.py", line 115, in _create_reader
self.internal = cv2.VideoCapture(
AttributeError: module 'cv2' has no attribute 'VideoCapture'
Exception ignored in: <function VideoCapture.__del__ at 0x7f05e9543700>
Traceback (most recent call last):
File "/usr/lib/security/howdy/recorders/video_capture.py", line 55, in __del__
self.internal.release()
AttributeError: 'NoneType' object has no attribute 'release'
I double checked that I selected the right camera (the IR one, not the normal webcam) during the Howdy installation.
Issue Analytics
- State:
- Created 3 years ago
- Comments:24 (2 by maintainers)
Top Results From Across the Web
"Invalid package information" error when upgrading to Ubuntu ...
The actual solution is to run RELEASE_UPGRADER_ALLOW_THIRD_PARTY=1 do-release-upgrade instead of the normal upgrade command.
Read more >How to Set Up Face Unlock on Ubuntu and Other Linux Distros
If the face is not recognized, it will show an error message and ask you to use your password. Use Sudo With Face...
Read more >python - "ERROR: CMake must be installed to build dlib" when ...
Show activity on this post. This is the key part of the error message. You need to install cmake, which can be done...
Read more >Ubuntu Server Documentation
This chapter provides an overview of installing Ubuntu Server Edition. ... After a few moments, the installer will start in its language selection...
Read more >Fix sudo: add-apt-repository: command not found error
This error is simple, and you face it when the specific package which allows you to add the external repositories is not installed...
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 Free
Top 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
For newbies:
I checked which device was the IR camera using ffmpeg. Mine was /dev/video2.
ffmpeg -f v4l2 -list_formats all -i /dev/video2The command spits a lot of output, but the last line says “Greyscale”:[video4linux2,v4l2 @ 0x562d4bfa59c0] Raw : gray : 8-bit Greyscale : 340x340Next, I ran
sudo howdy configand changed the value of “device_path” to “/dev/video2”.After that, “
sudo howdy add” ran correctly. I tested with “sudo howdy test”. (Actually, on my system, I need “sudo QT_X11_NO_MITSHM=1 howdy test”.)If you care, I’ve got a Dell XPS 13 9370.
you can try
sudo howdy configthen changes,device_path = /dev/video0it works for me in ubuntu 18.04 LTS