Giter VIP home page Giter VIP logo

Comments (16)

magarto avatar magarto commented on May 13, 2024 1

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.

boltgolt avatar boltgolt commented on May 13, 2024 1

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.

reverland avatar reverland commented on May 13, 2024 1

apt install python3-opencv just works for me.
on ubuntu 18.04

from howdy.

boltgolt avatar boltgolt commented on May 13, 2024

Missed a dependency, sorry. The merge i just did should fix this.

from howdy.

szelag82 avatar szelag82 commented on May 13, 2024

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.

boltgolt avatar boltgolt commented on May 13, 2024

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.

szelag82 avatar szelag82 commented on May 13, 2024

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.

boltgolt avatar boltgolt commented on May 13, 2024

Missed one dependency the last time i added packages, that one should work now.

from howdy.

szelag82 avatar szelag82 commented on May 13, 2024

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.

boltgolt avatar boltgolt commented on May 13, 2024

Fixed setuptools only being available on python2, hopefully you should get past that now?

from howdy.

szelag82 avatar szelag82 commented on May 13, 2024

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.

szelag82 avatar szelag82 commented on May 13, 2024

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.

boltgolt avatar boltgolt commented on May 13, 2024

That looks nasty. What version of Ubuntu are you running and has nothing else been printed to the console?

from howdy.

boltgolt avatar boltgolt commented on May 13, 2024

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.

boltgolt avatar boltgolt commented on May 13, 2024

It also works as expected on the travis 16.04 instance, it seems very machine dependent

from howdy.

reverland avatar reverland commented on May 13, 2024

maybe I should comment on issue #32 but commentted here...

from howdy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.