Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmake error #244

Open
ravi100k opened this issue Nov 29, 2017 · 2 comments
Open

cmake error #244

ravi100k opened this issue Nov 29, 2017 · 2 comments

Comments

@ravi100k
Copy link

ravi100k commented Nov 29, 2017

  • 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:~$

@ageitgey
Copy link
Owner

ageitgey commented Nov 29, 2017

-- Could NOT find Boost

You need to install Boost because it's required by dlib (which this library needs). But since you said you are using Ubuntu 14.04 though, there are special instructions for that here: #120

@ravi100k
Copy link
Author

ravi100k commented Dec 1, 2017

Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
libboost-all-dev : Depends: libboost-date-time-dev but it is not going to be installed
Depends: libboost-filesystem-dev but it is not going to be installed
Depends: libboost-log-dev but it is not going to be installed
Depends: libboost-mpi-dev but it is not going to be installed
Depends: libboost-mpi-python-dev but it is not going to be installed
Depends: libboost-system-dev but it is not going to be installed
Depends: libboost-thread-dev but it is not going to be installed
Depends: libboost-wave-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
ravi@ravi-ThinkPad-L460:~$

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants