Comments (16)
Real error is
/tmp/dlib_clone/dlib/external/pybind11/include/pybind11/detail/common.h:111:10: fatal error: Python.h: such file not found
It is due to we have Anaconda already installed. You can check it with
$python --version
Python 3.6.4 :: Anaconda, Inc.
To fix it, change "python" references to "python3" in installer.py line 39. We are using python 3.x but apt installs python 2.x packages.py
Now, we could install everything but "sudo -i" shows the following error:
Traceback (most recent call last):
File "/lib/security/howdy/compare.py", line 11, in
import cv2
ModuleNotFoundError: No module named 'cv2'
Unknown error: 1
Now installing cv2 module using "pip3 install opencv-python" doesn't work.
So, to fix it, install cv2 dependency with
$conda install -c menpo opencv
Later on, we have error in face_detection module, so I fix it adding it.
$ pip install face_recognition
Now, howdy works
Anyway, in low light conditions, howdy wouldn't work so it will take us about 10 seconds to be able to prompt password in sudo and login screen so a good idea would be to be able to prompt password in the same time howdy is trying to detect our face without waiting howdy script to exit
from howdy.
Thanks so much for figuring this out, i'll fix the python2 apt packages.
I can't reproduce the last 2 errors, and i can't really expect everyone to have conda installed. Might need to add information on how to fix that installation error in the readme.
I've added the last note as a new issue at #9. However, i'm not sure how this can be implemented. It needs to be done in PAM but i don't know enough about it to fix it and online manuals are few and far between.
from howdy.
apt install python3-opencv just works for me.
on ubuntu 18.04
from howdy.
Missed a dependency, sorry. The merge i just did should fix this.
from howdy.
those errors have disappeared but I have a new one:
Traceback (most recent call last):
File "setup.py", line 40, in
from setuptools import setup, Extension
ModuleNotFoundError: No module named 'setuptools'
from howdy.
Looks like you don't have pip either, pushed another one to fix that. I'll be here if you get another error.
from howdy.
new message at the time of installation (but this is not a error):
The directory '/home/szelag/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/szelag/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Requirement already up-to-date: pip in /usr/lib/python2.7/dist-packages
Nothing has changed at the end:
Traceback (most recent call last):
File "setup.py", line 40, in
from setuptools import setup, Extension
ModuleNotFoundError: No module named 'setuptools'
from howdy.
Missed one dependency the last time i added packages, that one should work now.
from howdy.
nope, still the same error:
Traceback (most recent call last):
File "setup.py", line 40, in
from setuptools import setup, Extension
ModuleNotFoundError: No module named 'setuptools'
Error while running last command
from howdy.
Fixed setuptools only being available on python2, hopefully you should get past that now?
from howdy.
new error :-)
Invoking CMake setup: 'cmake /tmp/dlib_clone/tools/python -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/tmp/dlib_clone/build/lib.linux-x86_64-3.6 -DPYTHON_EXECUTABLE=/usr/bin/python3 -DUSE_AVX_INSTRUCTIONS=yes -DDLIB_USE_CUDA=no -DCMAKE_BUILD_TYPE=Release'
error: [Errno 2] No such file or directory: 'cmake': 'cmake'
Error while running last command
I have to go to sleep, I'll be back tomorrow to test. thank you for your time!
from howdy.
sorry, I installed cmake and the installation went on, but there is still an error:
File "/usr/lib/python3.6/subprocess.py", line 291, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--config', 'Release', '--', '-j4']' returned non-zero exit status 2.
Error while running last command
from howdy.
That looks nasty. What version of Ubuntu are you running and has nothing else been printed to the console?
from howdy.
As i've had no other reports of the specific issue with cv2, i'm going to close this for now. Feel free to comment if you've also encountered this error.
from howdy.
It also works as expected on the travis 16.04 instance, it seems very machine dependent
from howdy.
maybe I should comment on issue #32 but commentted here...
from howdy.
Related Issues (20)
- IR emitter doesn't turn on/ stops if room is too dark. HOT 1
- Power on -> select user -> just one flash -> Esc -> select user again -> IR flashes several times and Howdy works
- Can it possible to auto login with sddm?
- Howdy tries to use GPU with CNN set to false
- Decrypt fscrypt locked directories with howdy HOT 1
- UBUNTU 24.04 LTS HOT 18
- Installation on a "fresh" Ubuntu 23.10 Fails HOT 1
- I'm getting a bunch of "no module named" and "failed to import" errors when trying to test Howdy. HOT 1
- when logging in on the lock screen or tty terminal interface : nknown error occurred HOT 1
- Can't install Howdy on Ubuntu 23.10.1
- 100% CPU consumption with using Howdy with vsftpd
- ``sudo`` or ``su`` Sometimes cannot work HOT 1
- Can we use howdy to LOCK a screen rather than unlock it? HOT 1
- KDE Neon 6.0 login screen does not automatically unlock after face detection
- Using howdy only for gdm HOT 5
- Changing and Testing howdy certainty HOT 1
- Enhance the "Error when trying to add a face model" happening
- SSH_CONNECTION security issue is back HOT 5
- abort_if_ssh not working in Fedora 40 HOT 1
- slow to open camera on ubuntu noble
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from howdy.