howdy: can't do "sudo howdy test"

Please describe the issue in as much detail as possible, including any errors and traces

every time i try to test howdy, i will got:

Traceback (most recent call last):
  File "/usr/local/bin/howdy", line 109, in <module>
    import cli.test
  File "/usr/lib/security/howdy/cli/test.py", line 66, in <module>
    cv2.setMouseCallback("Howdy Test", mouse)
cv2.error: OpenCV(4.3.0) /io/opencv/modules/highgui/src/window_QT.cpp:717: error: (-27:Null pointer) NULL window handler in function 'cvSetMouseCallback'

i can still use howdy to login normally


I’ve searched for similar issues already, and my issue has not been reported yet.

Linux distribution (if applicable): Ubuntu Budgie 20.04

Howdy version: 2.6.0

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 2
  • Comments: 16 (1 by maintainers)

Most upvoted comments

@nick-stocks thanks ! This approach solves my problem。

@choyrim @jkempson opencv hack worked to get rid of one set of warnings, and the chmod 755 fixed my other error on sudo, above (chmod fix also found here) However howdy now not working with a new error (below). I’ve tried running sudo ./install.sh, and also as sudo su but still get the same error back which is stopping facial recognition via sudo, though Howdy still works for the initial logging into the desktop

nick@pop-os:~$ sudo howdy test
Data files have not been downloaded, please run the following commands:

	cd /lib/security/howdy/dlib-data
	sudo ./install.sh

Traceback (most recent call last):
  File "/lib/security/howdy/compare.py", line 224, in <module>
    face_locations = face_detector(gsframe, 1)
TypeError: 'NoneType' object is not callable
Unknown error: 1
[sudo] password for nick: 

EDIT: Ignore the above error. chmod 755 -R /lib/security/howdy didn’t apply correctly. I found the above error on this ticket so I re-ran it and it now all runs correctly with no warnings