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/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.

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:

22
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 ...
13
howdy Error while installing Ubuntu 19.04
PIP changed their entry point so /usr/bin/pip3 broke Linux distribution (if applicable): Ubuntu 19.0...
4
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 ...
3
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...
65
wslu Cannot create directory "//.cache": Permission denied
Hello Here an improved version Background Information: Build: 17763 WSL: Ubuntu 18.04.03 Version: ws...
242
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...
194
react native camera Could not find method compileOnly()
Just went through this myself Which implementation are you using RNCamera Steps to reproduce init a ...
107
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...
106
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 https://www.jitpack.io }...
93
react native camera Could not find method google() for arguments [] on repository container
set gradle-wrapper.properties set build.gradle Hi all I am having this error after i install react n...
92
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...
69
react native camera com.android.support:support-v4 version conflict
change implementation project(':react-native-camera') to: Actual behaviour I am using this library t...
40
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...
32
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...
26
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 ...
25
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 ...
20
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...
17
react native qrcode scanner Invalid RNPermission 'ios.permission.CAMERA' should be one of ()
You need to add to your podfile see https://github.com/react-native-community/react-native-permissio...
16
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...
14
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...
14
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 ...
12
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...
12
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 ...
9
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...
9
react native camera Pinch Zoom
the solution was provided by @cristianoccazinsp with the following answer Initial testing without us...
9
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)...
6
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...
3
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...
3
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...
29
DietPi ping: socket: Operation not permitted
This seems to be working here ADMIN EDIT Solution Read more https://fedoraproject.org/wiki/Changes/E...
15
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...
14
jitsi meet Android SDK Crash when upgrading Gradle to version 3.5.0
Setting android.enableDexingArtifactTransform.desugaring=false on gradle.properties solves the probl...
12
crouton Can't Initialize ubuntu with crouton
@sadams0 @coderofsalvation Download the new crouton binary from my last post unzip it ...
9
devilutionX Diablo Hellfire support
We had a grate second hackathon 64bit support is now done and the road ahead is more clear Hellfire ...
7
crouton Can't run prepare.sh 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...
5
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...
3
DietPi DietPi-Software | NextCloudPi convergence
Thanks both I just saw this thread comparing the two projects and see no reason you could not furthe...
3
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...
3
DietPi Image | Odroid HC4
Not partitioning just a mountpoint They created /media/boot as an empty folder and mount the bootfs ...
3
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...
3
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...
3
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 ...
59
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...
31
facenet triplet training did not converged
Hi @davidsandberg I chose these parameters carefully and run a new experiment (20 days) The result i...
30
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...
27
facenet Error loading a frozen graph ( float incompatible with float_ref )
my code I froze the 20170131-234652 model using the freeze_graph.py but I cannot load it in C++ I fi...
22
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...
17
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...
10
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 ...