howdy icon indicating copy to clipboard operation
howdy copied to clipboard

Big Python Update today - "No dlib"

Open Hamster1962 opened this issue 1 year ago • 10 comments

My Howdy was working perfectly until a large update last night. Lots of Python programs and Camera type updates. Now when I try and use Howdy i get the error :-

Traceback (most recent call last): File "/lib/security/howdy/compare.py", line 18, in import dlib ModuleNotFoundError: No module named 'dlib' Exact same error as 18 Months ago which was fixed by a further update. Restoring a Snapshot solves the issue until the next update is run

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

Linux distribution = Garuda Linux based on Arch with KDE Desktop Kernel 6.6.63-1-cachyos-lts

Howdy version (sudo howdy version): Howdy 3.0.0 BETA

Thanks for any help in advance.

Hamster1962 avatar Dec 22 '24 17:12 Hamster1962

If you are an Arch user with yay: yay -S --rebuildtree howdy-beta-git

gguman avatar Dec 22 '24 19:12 gguman

At least with me that didn't work. sudo howdy test still results in:

Traceback (most recent call last):
  File "/usr/lib/howdy/cli.py", line 117, in <module>
    import cli.test
  File "/usr/lib/howdy/cli/test.py", line 10, in <module>
    import dlib
ModuleNotFoundError: No module named 'dlib'

L-28 avatar Dec 22 '24 21:12 L-28

No sadly. I run all the updates. Howdy returns the above error. My install of yay won't accept the argument --rebuildtree. I did remove and re-install dlib (a reinstall won't & didn't work). A new install of dlib works but returns an error -

Exception ignored in: <_io.BufferedWriter name=4> 
BrokenPipeError: [Errno 32] Broken pipe

So Howdy works but with an error, there is a problem somewhere.

Hamster1962 avatar Dec 22 '24 21:12 Hamster1962

I confirm that there is an exception arise, but the howdy works.

gguman avatar Dec 22 '24 22:12 gguman

In my case howdy doesn't work, it simply exits after the error/let's the next available unlock method take over

I seem to have a different error. Opening a new issue

L-28 avatar Dec 22 '24 23:12 L-28

Both the ideas above fix the dlib Python errors but an error still exists, The ignore error appears but Howdy works OK.

Exception ignored in: <_io.BufferedWriter name=4> 
BrokenPipeError: [Errno 32] Broken pipe

Hamster1962 avatar Dec 23 '24 20:12 Hamster1962

The error text contains information that the exception was ignored, so it should not break the script. But it is very annoying to see it every time, but I can not find the error location in the source files

where is the developer? it seems like he abandoned the project. May be there are any fresh fork?

gguman avatar Dec 24 '24 09:12 gguman

Rebuilding python-dlib fixed the issue for me

connor-belli avatar Dec 24 '24 19:12 connor-belli

Arch / Manjaro / Mabox recently bumped up their system python version, which broke many things, including old builds of howdy. Solution is to pamac remove howdy && pamac install howdy which will purge everything and rebuild it, which then results in AttributeError: 'VideoCapture' object has no attribute 'internal' due to /lib/security/howdy/config.ini being reset. Must then edit and set your video source, see https://wiki.archlinux.org/title/Howdy for more info. I also had to manually define frame_width and height for a webcam. So if you haven't tried (complete) rebuild/reinstall/reconfig yet, give that a shot.

mj1911 avatar Dec 29 '24 01:12 mj1911

I see you are working through the issues, Thanks, hopefully you can get to this one.

Hamster1962 avatar Feb 02 '25 16:02 Hamster1962