pam.py
needs to be patched on Python 3, see #785. Consider adding the following lines to package()
:
sed -i '9,10c\
# Patched for Python 3\
import configparser as ConfigParser' src/pam.py
Git Clone URL: | https://aur.archlinux.org/howdy.git (read-only, click to copy) |
---|---|
Package Base: | howdy |
Description: | Windows Hello for Linux |
Upstream URL: | https://github.com/boltgolt/howdy |
Keywords: | facial-recognition hello howdy ir pam-plugin windows-hello |
Licenses: | MIT |
Submitter: | kelleymcches |
Maintainer: | boltgolt (kageurufu, Raymo111, xuanruiqi, komex, myghi63) |
Last Packager: | komex |
Votes: | 40 |
Popularity: | 0.006616 |
First Submitted: | 2018-06-25 05:25 (UTC) |
Last Updated: | 2021-07-30 08:42 (UTC) |
pam.py
needs to be patched on Python 3, see #785. Consider adding the following lines to package()
:
sed -i '9,10c\
# Patched for Python 3\
import configparser as ConfigParser' src/pam.py
Since the last libjxl update some links seem to be broken. I fixed it in /usr/lib/ folder with
ln -s libjxl_threads.so.0.11 libjxl_threads.so.0.10
ln -s libjxl_cms.so.0.11 libjxl_cms.so.0.10
ln -s libjxl.so.0.11 libjxl.so.0.10
For anyone getting "RuntimeError: Unsupported image type, must be 8bit gray or RGB image", downgrade python-numpy
to 1.26.4-2 and all will be okay... for now. See https://github.com/boltgolt/howdy/issues/937 for further discussion.
Error 4 while installing pam-python package and returns a error 8 to the howdy package (via yay)
gcc -fno-strict-aliasing -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/python2/src=/usr/src/debug/python2 -flto=auto -DNDEBUG -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/python2/src=/usr/src/debug/python2 -flto=auto -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wall -Wextra -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Werror -I/usr/local/lib/ -fPIC -g -DLIBPYTHON_SO="libpython2.7.so.1.0" -I/usr/include/python2.7 -c pam_python.c -o build/temp.linux-x86_64-2.7/pam_python.o
<línea-de-órdenes>: error: «_FORTIFY_SOURCE» redefinido [-Werror]
<línea-de-órdenes>: nota: esta es la ubicación de la definición previa
cc1: todos los avisos se tratan como errores
error: command 'gcc' failed with exit status 1
make[1]: *** [Makefile:11: pam_python.so] Error 1
make[1]: se sale del directorio '/home/salvi/.cache/yay/pam-python/src/pam-python-1.0.8/src'
make: *** [Makefile:6: lib] Error 2
==> ERROR: Se produjo un fallo en build().
Cancelando...
Works with:
extra/python-numpy 1.26.4-2
Doesn't work with:
extra-testing/python-numpy 2.0.0-1
I have sudo howdy test working, but pam won't seem to start up howdy. my pam config auth sufficient pam_python3.so /lib/security/howdy/pam.py
@miral - Cuda needs to be built using GCC12, but everything else has been built using GCC13, which is why LTO keeps bringing up the issue for the python-dlib. There are repositories that have that package prebuilt, of which I tried blackarch and arch4edu repositories. The simplest solution would be to search for "BlackArch Strap Script".
When trying to build it errors out with:
==> ERROR: A failure occurred in build().
Aborting...
-> error making: python-dlib-exit status 4
==> Making package: python-face_recognition 1.3.0-1 (sob, 17 lut 2024, 12:24:01)
==> Checking runtime dependencies...
==> Missing dependencies:
-> python-dlib
==> Checking buildtime dependencies...
==> ERROR: Could not resolve all dependencies.
-> error making: python-face_recognition-exit status 8
==> Making package: howdy 2.6.1-2 (sob, 17 lut 2024, 12:24:02)
==> Checking runtime dependencies...
==> Missing dependencies:
-> python-dlib
-> python-face_recognition
==> Checking buildtime dependencies...
==> ERROR: Could not resolve all dependencies.
-> error making: howdy-exit status 8
-> Failed to install the following packages. Manual intervention is required:
howdy - exit status 8
python-dlib - exit status 4
python-face_recognition - exit status 8
So I tried installing the dependencies separately - via yay, paru and manually - but to no avail:
==> ERROR: A failure occurred in build().
Aborting...
-> error making: python-dlib-exit status 4
-> Failed to install the following packages. Manual intervention is required:
python-dlib - exit status 4
Running G14 GA402RJ, full AMD build, maybe something cuda related, but I'm not certain. Pardon for the inexperience, still very new to the game.
I cannot make pam invoke howdy as it did since the python 3.11 rebuild. Is anyone facing the same problem?
The bug of opencv is fixed now.
Pinned Comments
Raymo111 commented on 2024-07-12 05:45 (UTC) (edited on 2024-07-12 05:46 (UTC) by Raymo111)
For anyone getting "RuntimeError: Unsupported image type, must be 8bit gray or RGB image",
downgrade python-numpy
to 1.26.4-2 and all will be okay... for now. See https://github.com/boltgolt/howdy/issues/937 for further discussion.