Error when adding a face (since Ubuntu 20.04)

See original GitHub issue

Since 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:closed
  • Created 3 years ago
  • Comments:24 (2 by maintainers)

github_iconTop GitHub Comments

27reactions
mdnahascommented, Jul 8, 2020

For newbies:

I checked which device was the IR camera using ffmpeg. Mine was /dev/video2. ffmpeg -f v4l2 -list_formats all -i /dev/video2 The command spits a lot of output, but the last line says “Greyscale”: [video4linux2,v4l2 @ 0x562d4bfa59c0] Raw : gray : 8-bit Greyscale : 340x340

Next, I ran sudo howdy config and 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.

3reactions
juandisaycommented, Feb 8, 2021

you can try sudo howdy config then changes, device_path = /dev/video0 it works for me in ubuntu 18.04 LTS

Read more comments on GitHub >

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

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