dlib: python2.7 pip install dlib error
Collecting dlib Using cached https://files.pythonhosted.org/packages/79/26/8ef2835606b4b37f704862b2db55edb89675daca0b82718244fca718cddd/dlib-19.13.0.tar.gz Building wheels for collected packages: dlib Running setup.py bdist_wheel for dlib: started Running setup.py bdist_wheel for dlib: finished with status ‘error’ Complete output from command /usr/bin/python -u -c “import setuptools, tokenize;file=‘/tmp/pip-install-lIh_fo/dlib/setup.py’;f=getattr(tokenize, ‘open’, open)(file);code=f.read().replace(‘\r\n’, ‘\n’);f.close();exec(compile(code, file, ‘exec’))” bdist_wheel -d /tmp/pip-wheel-qnWYfi --python-tag cp27: running bdist_wheel running build running build_py package init file ‘dlib/init.py’ not found (or not a regular file) running build_ext Building extension for Python 2.7.12 (default, Dec 4 2017, 14:50:18) Invoking CMake setup: ‘cmake /tmp/pip-install-lIh_fo/dlib/tools/python -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/tmp/pip-install-lIh_fo/dlib/build/lib.linux-aarch64-2.7 -DPYTHON_EXECUTABLE=/usr/bin/python -DCMAKE_BUILD_TYPE=Release’ – The C compiler identification is GNU 5.4.0 – The CXX compiler identification is GNU 5.4.0 – 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 – Detecting C compile features – Detecting C compile features - 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 – Detecting CXX compile features – Detecting CXX compile features - done – Found PythonInterp: /usr/bin/python (found version “2.7.12”) – Found PythonLibs: /usr/lib/aarch64-linux-gnu/libpython2.7.so – Performing Test HAS_CPP14_FLAG – Performing Test HAS_CPP14_FLAG - Success – pybind11 v2.2.2 CMake Error at CMakeLists.txt:17 (if): if given arguments:
"EQUAL" "0" "AND" "compile_result"
Unknown arguments specified
CMake Error: Internal CMake error, TryCompile configure of cmake failed – Configuring incomplete, errors occurred! See also “/tmp/pip-install-lIh_fo/dlib/build/temp.linux-aarch64-2.7/CMakeFiles/CMakeOutput.log”. Traceback (most recent call last): File “<string>”, line 1, in <module> File “/tmp/pip-install-lIh_fo/dlib/setup.py”, line 256, in <module> ‘Topic :: Software Development’, File “/usr/lib/python2.7/distutils/core.py”, line 151, in setup dist.run_commands() File “/usr/lib/python2.7/distutils/dist.py”, line 953, in run_commands self.run_command(cmd) File “/usr/lib/python2.7/distutils/dist.py”, line 972, in run_command cmd_obj.run() File “/usr/lib/python2.7/dist-packages/wheel/bdist_wheel.py”, line 179, in run self.run_command(‘build’) File “/usr/lib/python2.7/distutils/cmd.py”, line 326, in run_command self.distribution.run_command(command) File “/usr/lib/python2.7/distutils/dist.py”, line 972, in run_command cmd_obj.run() File “/usr/lib/python2.7/distutils/command/build.py”, line 128, in run self.run_command(cmd_name) File “/usr/lib/python2.7/distutils/cmd.py”, line 326, in run_command self.distribution.run_command(command) File “/usr/lib/python2.7/distutils/dist.py”, line 972, in run_command cmd_obj.run() File “/tmp/pip-install-lIh_fo/dlib/setup.py”, line 133, in run self.build_extension(ext) File “/tmp/pip-install-lIh_fo/dlib/setup.py”, line 169, in build_extension subprocess.check_call(cmake_setup, cwd=build_folder) File “/usr/lib/python2.7/subprocess.py”, line 541, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command ‘[‘cmake’, ‘/tmp/pip-install-lIh_fo/dlib/tools/python’, ‘-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/tmp/pip-install-lIh_fo/dlib/build/lib.linux-aarch64-2.7’, ‘-DPYTHON_EXECUTABLE=/usr/bin/python’, ‘-DCMAKE_BUILD_TYPE=Release’]’ returned non-zero exit status 1
Running setup.py clean for dlib Failed to build dlib Installing collected packages: dlib Running setup.py install for dlib: started Running setup.py install for dlib: finished with status ‘error’ Complete output from command /usr/bin/python -u -c “import setuptools, tokenize;file=‘/tmp/pip-install-lIh_fo/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-record-sHrt4s/install-record.txt --single-version-externally-managed --compile: running install running build running build_py package init file ‘dlib/init.py’ not found (or not a regular file) running build_ext Building extension for Python 2.7.12 (default, Dec 4 2017, 14:50:18) Invoking CMake setup: ‘cmake /tmp/pip-install-lIh_fo/dlib/tools/python -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/tmp/pip-install-lIh_fo/dlib/build/lib.linux-aarch64-2.7 -DPYTHON_EXECUTABLE=/usr/bin/python -DCMAKE_BUILD_TYPE=Release’ – The C compiler identification is GNU 5.4.0 – The CXX compiler identification is GNU 5.4.0 – 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 – Detecting C compile features – Detecting C compile features - 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 – Detecting CXX compile features – Detecting CXX compile features - done – Found PythonInterp: /usr/bin/python (found version “2.7.12”) – Found PythonLibs: /usr/lib/aarch64-linux-gnu/libpython2.7.so – Performing Test HAS_CPP14_FLAG – Performing Test HAS_CPP14_FLAG - Success – pybind11 v2.2.2 CMake Error at CMakeLists.txt:17 (if): if given arguments:
"EQUAL" "0" "AND" "compile_result"
Unknown arguments specified
CMake Error: Internal CMake error, TryCompile configure of cmake failed
-- Configuring incomplete, errors occurred!
See also "/tmp/pip-install-lIh_fo/dlib/build/temp.linux-aarch64-2.7/CMakeFiles/CMakeOutput.log".
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-lIh_fo/dlib/setup.py", line 256, in <module>
'Topic :: Software Development',
File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
dist.run_commands()
File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "build/bdist.linux-aarch64/egg/setuptools/command/install.py", line 61, in run
File "/usr/lib/python2.7/distutils/command/install.py", line 601, in run
self.run_command('build')
File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/usr/lib/python2.7/distutils/command/build.py", line 128, in run
self.run_command(cmd_name)
File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/tmp/pip-install-lIh_fo/dlib/setup.py", line 133, in run
self.build_extension(ext)
File "/tmp/pip-install-lIh_fo/dlib/setup.py", line 169, in build_extension
subprocess.check_call(cmake_setup, cwd=build_folder)
File "/usr/lib/python2.7/subprocess.py", line 541, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '/tmp/pip-install-lIh_fo/dlib/tools/python', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/tmp/pip-install-lIh_fo/dlib/build/lib.linux-aarch64-2.7', '-DPYTHON_EXECUTABLE=/usr/bin/python', '-DCMAKE_BUILD_TYPE=Release']' returned non-zero exit status 1
----------------------------------------
- Version:19.13
- Where did you get dlib: pip install dlib
- Platform: ubuntu16.04 64-bit
- Compiler: linaro 5.4 gcc
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 18 (9 by maintainers)
Yes it has solved the problem. Thank you!
No problem. Thanks for reporting the issue.
Actually, just pull from github again and try it. I think it should work now.