boltgolt / howdy

🛡️ Windows Hello™ style facial authentication for Linux
MIT License
5.9k stars 306 forks source link

Howdy can't import module ConfigParser however it's alreayd installed #912

Open ibahnasy opened 7 months ago

ibahnasy commented 7 months ago

When trying to authenticate with Howdy through PAM I get this error in the auth.log:

2024-05-01T15:20:38.402372+03:00 <host> /lib/security/howdy/pam.py[34365]: Traceback (most recent call last):
2024-05-01T15:20:38.403951+03:00 <host> /lib/security/howdy/pam.py[34365]:   File "/lib/security/howdy/pam.py", line 10, in <module>
2024-05-01T15:20:38.404018+03:00 <host> /lib/security/howdy/pam.py[34365]:     import ConfigParser
2024-05-01T15:20:38.404053+03:00 <host> /lib/security/howdy/pam.py[34365]: ModuleNotFoundError: No module named 'ConfigParser'
2024-05-01T15:20:38.404094+03:00 <host> sudo[34365]: gkr-pam: unable to locate daemon control file
2024-05-01T15:20:38.404144+03:00 <host> sudo[34365]: gkr-pam: stashed password to try later in open session
2024-05-01T15:20:40.311777+03:00 <host> sudo:      <user> : PAM authentication error: Error in service module ; TTY=pts/2 ; PWD=/root ; USER=root ; COMMAND=/bin/bash

However that module is already installed:

# pip3 install configparser --break-system-packages
WARNING: Skipping /usr/lib/python3.12/dist-packages/argcomplete-3.1.4.dist-info due to invalid metadata entry 'name'
Requirement already satisfied: configparser in /usr/local/lib/python3.12/dist-packages (7.0.0)

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

Linux distribution (if applicable): Ubuntu 24.04

Howdy version (sudo howdy version): 2.6.1

andygev35 commented 6 months ago

Fix #799