Solvedhowdy Error when adding a face (since Ubuntu 20.04)

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/", line 99, in <module>
    video_capture = VideoCapture(config)
  File "/usr/lib/security/howdy/recorders/", line 45, in __init__
  File "/usr/lib/security/howdy/recorders/", 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/", line 55, in __del__
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.

24 Answers

โœ”๏ธAccepted Answer

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.

Other Answers:

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

Related Issues:

howdy Error when adding a face (since Ubuntu 20.04)
For newbies: I checked which device was the IR camera using ffmpeg Mine was /dev/video2 ...
howdy Error while installing Ubuntu 19.04
PIP changed their entry point so /usr/bin/pip3 broke Linux distribution (if applicable): Ubuntu 19.0...
howdy Error when trying to use IR sensors on Manjaro (Arch-based) with HP Spectre
@boltgolt I think this error is cause by some IR Cameras return Grayscale instead of RGB image ...
howdy IR camera flashing loop after auth
So i found the bug After authentication IR camera continues flashing on/off on loop until disabled L...
wslu Cannot create directory "//.cache": Permission denied
Hello Here an improved version Background Information: Build: 17763 WSL: Ubuntu 18.04.03 Version: ws...
react native camera Cannot choose between the following variants of project :react-native-camera:
@medicmilos @wimva @MeisterTea have you added the following to android/app/build.gradle?: Step 4 her...
react native camera Could not find method compileOnly()
Just went through this myself Which implementation are you using RNCamera Steps to reproduce init a ...
react native camera Could not resolve project :react-native-camera. on Android
For those who have this problem the solution that I found is setting classpath 3.3.0 and Gradle 4.10...
react native camera Failed to list versions for org.webkit:android-jsc.
Got the same issue with react-native-image-crop-picker fixed by maven { url }...
react native camera Could not find method google() for arguments [] on repository container
set set build.gradle Hi all I am having this error after i install react n...
react native camera "Could not resolve all dependencies for configuration ':app:_debugApkCopy'"
this worked for me while opening Android Studio to resolve the dependencies Which implementation are...
react native camera version conflict
change implementation project(':react-native-camera') to: Actual behaviour I am using this library t...
react native camera "camera not authorized" in version 1.8.0 (Android)
@adimshev Try to set the captureAudio property on the RNCamera component to false if you do not want...
react native camera Undefined is not an object(evaluating 'CameraManager.Aspect')
After installing and linking package important to rebuild native part of app. i try to make simple r...
react native camera Preview photo and video after capturing
I am able to reproduce this issue with RNCamera however I'm not sure if this is RNCamera related ...
react native camera Could not find com.github.react-native-community:cameraview:df60b07573
react-native-camera@0.6.0 solved this problem but would crash the app if I tried to actually import ...
react native qrcode scanner Qr Scanner in TabNavigation
Hello how can i open the camera again after i click on the other navigationTab It became black after...
react native qrcode scanner Invalid RNPermission 'ios.permission.CAMERA' should be one of ()
You need to add to your podfile see
react native camera react-native-camera iOS is not detecting any faces
Hello GitHub this is my first time answering ever here :) Here's how I managed to make it work on iO...
react native camera Autolinking is not working on 0.61.1
I guess that the purpose of the autolinking is to avoid manual steps before using a lib in react-nat...
react native camera ios 10 - app crashes when view with <Camera> is rendered
In case anyone coming here isn't super familiar with xcode or Info.plist the two comments above are ...
react native camera Undefined is not an object (evaluating 'CameraManager.Aspect')
@patlux It worked for me to remove the previously-installed react-native-camera pod: and then manual...
react native camera Camera crashes on second capture (Android)
@ygorlf The idea is that you don't use the default goBack function but write your own ,which resets ...
cameraview Black CameraView after onResume only in Android 7
Hi I notice the black screen is triggered only when the library try to start Camera2 It fails becaus...
react native camera Pinch Zoom
the solution was provided by @cristianoccazinsp with the following answer Initial testing without us...
react native camera [Android] RNCamera crashes/freezes occasionally
I see a somehow similar problem on my side The loading spinner freezes (as well as the complete app)...
react native camera XCode build error Undefined symbol: _OBJC_CLASS_$_BarcodeDetectorManagerMlkit
Hello folks First of all installing react-native-camera with cocoapods is problematic It installs ob...
react native vision camera ๐Ÿ› Android unknown crash
Hey! I ran into the same issue when testing out the module in my own application Only one of my devi...
react native camera Changing Camera Type from back to front result in black screen in specific situation
a reliable temporary fix for this is to force remounting the component This can be achieved by setti...
DietPi ping: socket: Operation not permitted
This seems to be working here ADMIN EDIT Solution Read more
uwsgi nginx flask docker Raspberry pi: standard_init_linux.go:190: exec user process caused "exec format error"
Thanks for the help! That solves it! Just for posterity these are the commands I ran from start to f...
jitsi meet Android SDK Crash when upgrading Gradle to version 3.5.0
Setting android.enableDexingArtifactTransform.desugaring=false on solves the probl...
crouton Can't Initialize ubuntu with crouton
@sadams0 @coderofsalvation Download the new crouton binary from my last post unzip it ...
devilutionX Diablo Hellfire support
We had a grate second hackathon 64bit support is now done and the road ahead is more clear Hellfire ...
crouton Can't run during setup, and can't access file when run separately
Thanks everyone! Was quite worried when I saw this error today as my chromebook is my main developme...
DietPi DietPi-Software | Kodi on RPi Buster fails to start
some information: Kodi is back on official rpi repo ADMIN EDIT Bug does not apply anymore since Kodi...
DietPi DietPi-Software | NextCloudPi convergence
Thanks both I just saw this thread comparing the two projects and see no reason you could not furthe...
DietPi Upgrade v6.25.3 -> v.6.30.0 fails: /DietPi/dietpi/func/dietpi-ramdisk: No such file or directory
Found it please do not do any of the mentioned steps the error can and should be ignored As can be s...
DietPi Image | Odroid HC4
Not partitioning just a mountpoint They created /media/boot as an empty folder and mount the bootfs ...
build Re-enable XR819 radio for orange pi zero
I am performing some WiFi testing on Orange Pi Zero with default installations of various distributi...
crouton Black Screen w/ Xorg but not Xiwi
FIXED! If your problem is the IOPL error Please describe your issue: Black screen after fresh instal...
openmediavault Delay docker startup until all shared folders is mounted
@ejalal You are the first one that I remember reporting this problem So I guess it hasn't come up I ...
face_recognition How can I make face recognition faster if I have more than 1M known images?
The formula for euclidean distance is just: So assuming you had one column for each of the 128 featu...
facenet triplet training did not converged
Hi @davidsandberg I chose these parameters carefully and run a new experiment (20 days) The result i...
facenet error when running Validate_on_lfw
@farimani thank you~ I am new to the machine learning @davidsandberg I am trying to run the (Validat...
facenet Error loading a frozen graph ( float incompatible with float_ref )
my code I froze the 20170131-234652 model using the but I cannot load it in C++ I fi...
face_recognition How to install face_recognition?
This was what i did Here I install face_recognition once to make sure all the dependencies is includ...
facenet pre-trained model unable to load because of tensorflow saver format :(
Hi I'm not sure which file you are trying to load I recently tried loading a pretrained model with t...
face_recognition IndexError: list index out of range
If no face is found in the image the encodings array will be empty So check the length of the array ...