howdy
howdy copied to clipboard
Python dependencies for each user. Unknowns Error 1 for dependencies quickfix
When authenticating in different places, different users are used (gdm, sudo, gnome authentication dialog). Each of these users needs all valid python requirements. This causes dependency issues, because in different contexts, different modules are available. Here is a quickfix, to get all dependencies in line.
You'll want an elevated prompt:
sudo su -
Go to howdy directory, create python venv and activate it
cd /lib64/security/howdy
python3 -m venv .venv
source .venv/bin/activate
Install dependencies:
pip install dlib opencv-python
and finally edit pam.py
- status = subprocess.call(["/usr/bin/python3 " + os.path.dirname(os.path.abspath(__file__)) + "/compare.py " + pamh.get_user() + " &> /dev/null"], shell=True)
+ status = subprocess.call(["/lib64/security/howdy/.venv/bin/python " + os.path.dirname(os.path.abspath(__file__)) + "/compare.py " + pamh.get_user() + " &> /dev/null"], shell=True)
I created this issue, because I had a lot of errors, and they all just boiled down to broken dependencies
I've searched for similar issues already, and my issue has not been reported yet.
Linux distribution: Fedora 40
Howdy version: 2.6.1