Code Monkey home page Code Monkey logo

Comments (5)

KrishnChauhan avatar KrishnChauhan commented on June 8, 2024

[root@localhost AMSAPI]# pip install dlib
4.8.5 20150623 Collecting dlib
Using cached dlib-19.24.2.tar.gz (11.8 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: dlib
Building wheel for dlib (pyproject.toml) ... error
error: subprocess-exited-with-error

× Building wheel for dlib (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [91 lines of output]
running bdist_wheel
running build
running build_ext
Building extension for Python 3.8.12 (default, Aug 4 2023, 19:09:54)
Invoking CMake setup: 'cmake /tmp/pip-install-82p84j4m/dlib_a11b96784ea344989671b2bbd02dd06a/tools/python -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/tmp/pip-install-82p84j4m/dlib_a11b96784ea344989671b2bbd02dd06a/build/lib.linux-x86_64-cpython-38 -DPYTHON_EXECUTABLE=/usr/local/bin/python3.8 -DCMAKE_BUILD_TYPE=Release'
-- The C compiler identification is unknown
-- The CXX compiler identification is GNU 4.8.5
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Check for working C compiler: /usr/bin/g++
-- Check for working C compiler: /usr/bin/g++ - broken
CMake Error at /tmp/pip-build-env-x93xanpf/overlay/lib/python3.8/site-packages/cmake/data/share/cmake-3.27/Modules/CMakeTestCCompiler.cmake:67 (message):
The C compiler

      "/usr/bin/g++"

    is not able to compile a simple test program.

    It fails with the following output:

      Change Dir: '/tmp/pip-install-82p84j4m/dlib_a11b96784ea344989671b2bbd02dd06a/build/temp.linux-x86_64-cpython-38/CMakeFiles/CMakeScratch/TryCompile-1kc0cz'

      Run Build Command(s): /tmp/pip-build-env-x93xanpf/overlay/lib/python3.8/site-packages/cmake/data/bin/cmake -E env VERBOSE=1 /usr/bin/gmake -f Makefile cmTC_0da95/fast
      /usr/bin/gmake  -f CMakeFiles/cmTC_0da95.dir/build.make CMakeFiles/cmTC_0da95.dir/build
      gmake[1]: Entering directory `/tmp/pip-install-82p84j4m/dlib_a11b96784ea344989671b2bbd02dd06a/build/temp.linux-x86_64-cpython-38/CMakeFiles/CMakeScratch/TryCompile-1kc0cz'
      Building C object CMakeFiles/cmTC_0da95.dir/testCCompiler.c.o
      /usr/bin/g++    -o CMakeFiles/cmTC_0da95.dir/testCCompiler.c.o -c /tmp/pip-install-82p84j4m/dlib_a11b96784ea344989671b2bbd02dd06a/build/temp.linux-x86_64-cpython-38/CMakeFiles/CMakeScratch/TryCompile-1kc0cz/testCCompiler.c
      /tmp/pip-install-82p84j4m/dlib_a11b96784ea344989671b2bbd02dd06a/build/temp.linux-x86_64-cpython-38/CMakeFiles/CMakeScratch/TryCompile-1kc0cz/testCCompiler.c:2:3: error: #error "The CMAKE_C_COMPILER is set to a C++ compiler"
       # error "The CMAKE_C_COMPILER is set to a C++ compiler"
         ^
      gmake[1]: *** [CMakeFiles/cmTC_0da95.dir/testCCompiler.c.o] Error 1
      gmake[1]: Leaving directory `/tmp/pip-install-82p84j4m/dlib_a11b96784ea344989671b2bbd02dd06a/build/temp.linux-x86_64-cpython-38/CMakeFiles/CMakeScratch/TryCompile-1kc0cz'
      gmake: *** [cmTC_0da95/fast] Error 2





    CMake will not be able to correctly generate this project.
  Call Stack (most recent call first):
    CMakeLists.txt:14 (project)


  -- Configuring incomplete, errors occurred!
  Traceback (most recent call last):
    File "/usr/local/lib/python3.8/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
      main()
    File "/usr/local/lib/python3.8/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
    File "/usr/local/lib/python3.8/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 251, in build_wheel
      return _build_backend().build_wheel(wheel_directory, config_settings,
    File "/tmp/pip-build-env-x93xanpf/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 416, in build_wheel
      return self._build_with_temp_dir(['bdist_wheel'], '.whl',
    File "/tmp/pip-build-env-x93xanpf/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 401, in _build_with_temp_dir
      self.run_setup()
    File "/tmp/pip-build-env-x93xanpf/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 338, in run_setup
      exec(code, locals())
    File "<string>", line 218, in <module>
    File "/tmp/pip-build-env-x93xanpf/overlay/lib/python3.8/site-packages/setuptools/__init__.py", line 107, in setup
      return distutils.core.setup(**attrs)
    File "/tmp/pip-build-env-x93xanpf/overlay/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 185, in setup
      return run_commands(dist)
    File "/tmp/pip-build-env-x93xanpf/overlay/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
      dist.run_commands()
    File "/tmp/pip-build-env-x93xanpf/overlay/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
      self.run_command(cmd)
    File "/tmp/pip-build-env-x93xanpf/overlay/lib/python3.8/site-packages/setuptools/dist.py", line 1234, in run_command
      super().run_command(command)
    File "/tmp/pip-build-env-x93xanpf/overlay/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
      cmd_obj.run()
    File "/tmp/pip-build-env-x93xanpf/overlay/lib/python3.8/site-packages/wheel/bdist_wheel.py", line 346, in run
      self.run_command("build")
    File "/tmp/pip-build-env-x93xanpf/overlay/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
      self.distribution.run_command(command)
    File "/tmp/pip-build-env-x93xanpf/overlay/lib/python3.8/site-packages/setuptools/dist.py", line 1234, in run_command
      super().run_command(command)
    File "/tmp/pip-build-env-x93xanpf/overlay/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
      cmd_obj.run()
    File "/tmp/pip-build-env-x93xanpf/overlay/lib/python3.8/site-packages/setuptools/_distutils/command/build.py", line 131, in run
      self.run_command(cmd_name)
    File "/tmp/pip-build-env-x93xanpf/overlay/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
      self.distribution.run_command(command)
    File "/tmp/pip-build-env-x93xanpf/overlay/lib/python3.8/site-packages/setuptools/dist.py", line 1234, in run_command
      super().run_command(command)
    File "/tmp/pip-build-env-x93xanpf/overlay/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
      cmd_obj.run()
    File "<string>", line 130, in run
    File "<string>", line 167, in build_extension
    File "/usr/local/lib/python3.8/subprocess.py", line 364, in check_call
      raise CalledProcessError(retcode, cmd)
  subprocess.CalledProcessError: Command '['cmake', '/tmp/pip-install-82p84j4m/dlib_a11b96784ea344989671b2bbd02dd06a/tools/python', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/tmp/pip-install-82p84j4m/dlib_a11b96784ea344989671b2bbd02dd06a/build/lib.linux-x86_64-cpython-38', '-DPYTHON_EXECUTABLE=/usr/local/bin/python3.8', '-DCMAKE_BUILD_TYPE=Release']' returned non-zero exit status 1.
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for dlib
Failed to build dlib
ERROR: Could not build wheels for dlib, which is required to install pyproject.toml-based projects

from dlib.

arrufat avatar arrufat commented on June 8, 2024

GCC 4.8 is no longer supported.

from dlib.

dlib-issue-bot avatar dlib-issue-bot commented on June 8, 2024

Warning: this issue has been inactive for 35 days and will be automatically closed on 2023-09-19 if there is no further activity.

If you are waiting for a response but haven't received one it's possible your question is somehow inappropriate. E.g. it is off topic, you didn't follow the issue submission instructions, or your question is easily answerable by reading the FAQ, dlib's official compilation instructions, dlib's API documentation, or a Google search.

from dlib.

dlib-issue-bot avatar dlib-issue-bot commented on June 8, 2024

Warning: this issue has been inactive for 43 days and will be automatically closed on 2023-09-19 if there is no further activity.

If you are waiting for a response but haven't received one it's possible your question is somehow inappropriate. E.g. it is off topic, you didn't follow the issue submission instructions, or your question is easily answerable by reading the FAQ, dlib's official compilation instructions, dlib's API documentation, or a Google search.

from dlib.

dlib-issue-bot avatar dlib-issue-bot commented on June 8, 2024

Notice: this issue has been closed because it has been inactive for 45 days. You may reopen this issue if it has been closed in error.

from dlib.

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.