ageitgey / ageitgey/face_recognition

cmake error

Open
#244 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
56.8k
Forks
13.7k
PR merge metrics
No merged PRs in 30d

Description

  • face_recognition version:
  • Python version: 2.7.14
  • Operating System: ubuntu 14.04
Description

Describe what you were trying to get done.
Tell us what happened, what went wrong, and what you expected to happen.

What I Did

pip install face_recognition
or
pip2 --no-cache-dir install face_recognition

Paste the command(s) you ran and the output.
If there was a crash, please include the traceback here.

Collecting face_recognition
/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/vendor/requests/packages/urllib3/util/ssl.py:318: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#snimissingwarning.
SNIMissingWarning
/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/vendor/requests/packages/urllib3/util/ssl.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
Downloading face_recognition-1.0.0-py2.py3-none-any.whl
Collecting dlib>=19.5 (from face_recognition)
Downloading dlib-19.7.0.tar.gz (4.0MB)
100% |████████████████████████████████| 4.0MB 2.1MB/s
Collecting face-recognition-models>=0.2.0 (from face_recognition)
Downloading face_recognition_models-0.3.0.tar.gz (100.1MB)
100% |████████████████████████████████| 100.2MB 4.5MB/s
Requirement already satisfied: numpy in /usr/local/lib/python2.7/dist-packages (from face_recognition)
Requirement already satisfied: Pillow in /usr/lib/python2.7/dist-packages (from face_recognition)
Collecting scipy>=0.17.0 (from face_recognition)
Downloading scipy-1.0.0-cp27-cp27mu-manylinux1_x86_64.whl (46.7MB)
100% |████████████████████████████████| 46.7MB 4.7MB/s
Requirement already satisfied: Click>=6.0 in /usr/local/lib/python2.7/dist-packages (from face_recognition)
Installing collected packages: dlib, face-recognition-models, scipy, face-recognition
Running setup.py install for dlib ... error
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-build-7_YSqD/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-1YlQpH-record/install-record.txt --single-version-externally-managed --compile:
running install
running build
Detected Python architecture: 64bit
Detected platform: linux2
Configuring cmake ...
-- The C compiler identification is GNU 4.8.4
-- The CXX compiler identification is GNU 4.8.4
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Could NOT find Boost
-- Found PythonLibs: /home/ravi/anaconda2/lib/libpython2.7.so (found suitable version "2.7.6", minimum required is "2.6")
error: cmake configuration failed!

----------------------------------------

Command "/usr/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-build-7_YSqD/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-1YlQpH-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-7_YSqD/dlib/
/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/vendor/requests/packages/urllib3/util/ssl.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
ravi@ravi-ThinkPad-L460:~$

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The failure occurs while dlib's setup.py configures CMake during pip install face_recognition. Start with the reported CMake output, especially the missing Boost detection and Python library paths, then reproduce the installation on Ubuntu 14.04 with Python 2.7. Done means the package installs successfully or the required environment limitation is documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake, python, ubuntu
Domain
build-system, machine-learning
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.