Page 1 of 1

Howdy face login

PostPosted: Aug 11th, '20, 12:06
by Vanitarium
Hiya,
I am using Mageia 8 Cauldron.
I have installed Howdy from Fedora package but it is missing dlib a python module.The error I get is
Code: Select all
Traceback (most recent call last):
  File "/bin/howdy", line 109, in <module>
    import cli.test
  File "/usr/lib64/security/howdy/cli/test.py", line 9, in <module>
    import dlib
ModuleNotFoundError: No module named 'dlib'


I tried to install dlib from source but it fails during build. I have requested the developer to package for Mageia already.
Has anybody got this to work?

Re: Howdy face login

PostPosted: Aug 11th, '20, 17:35
by doktor5000
Vanitarium wrote:I tried to install dlib from source but it fails during build.

It fails with what error message ?

You could try to install it with pip in the meantime

Code: Select all
pip install dlib

Re: Howdy face login

PostPosted: Aug 14th, '20, 09:27
by Vanitarium
Hidoktor5000, I tried that by doing

Code: Select all
urpmi python3-pip
pip install dlib

Code: Select all
ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-x_kc6pif/dlib/setup.py'"'"'; __file__='"'"'/tmp/pip-install-x_kc6pif/dlib/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-u_4iembm/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.8/dlib


and after a long output without error at the end got this error:
Code: Select all
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-x_kc6pif/dlib/setup.py'"'"'; __file__='"'"'/tmp/pip-install-x_kc6pif/dlib/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-u_4iembm/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.8/dlib Check the logs for full command output.


that error at the end of a very long output which seemed to have no errors

Re: Howdy face login

PostPosted: Aug 14th, '20, 09:31
by Vanitarium
which is a known issue as per https://github.com/pypa/pip/issues/8368
EDIT:
I made it work!
I needed the following installs.
Code: Select all
dnf install  python3-devel
dnf install python2-devel

cd ~/Downloads/dlib-19.21.0
python setup.py install


This set of commands got the final output

Code: Select all
Extracting dlib-19.21.0-py3.8-linux-x86_64.egg to /usr/local/lib64/python3.8/site-packages
Adding dlib 19.21.0 to easy-install.pth file

Installed /usr/local/lib64/python3.8/site-packages/dlib-19.21.0-py3.8-linux-x86_64.egg
Processing dependencies for dlib==19.21.0
Finished processing dependencies for dlib==19.21.0


the final test is
Code: Select all
howdy test


and ..... it worked!!!

Re: Howdy face login

PostPosted: Aug 14th, '20, 10:12
by Vanitarium
all commands as root of course...

Re: Howdy face login

PostPosted: Aug 14th, '20, 15:46
by doktor5000
Please mark the thread accordingly by editing the topic of the first post and prefix it by [SOLVED], thanks

Re: Howdy face login

PostPosted: Aug 14th, '20, 15:52
by Vanitarium
Howdy test works so far but login, sudo,su pam files don't work. So it is NOT SOLVED....

Re: Howdy face login

PostPosted: Oct 28th, '24, 12:28
by waferhead
This is more a short status report on using 3d face recognition on Mageia.
Both the 3D face recognition and fingerprint stuff are fully working on Debian based distros for years now.

Howdy v3.0 works great on Debian 12/recent Ubuntus etc, but the lower level PAM etc on Mageia don't seem to be compatible yet.

Re: Howdy face login

PostPosted: Oct 28th, '24, 14:28
by doktor5000
Well, you could easily compare them and add the pam module for howdy on Mageia if necessary.
See e.g. https://wiki.archlinux.org/title/Howdy# ... hen_needed
PAM is the same among all linux distros, so there's not really a question about compatibility.
Feel free to post journal log excerpts for the timeframe where it doesn't work.