Skip to content

Cannot install on Ubuntu 24.10 #28903

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

Closed
ClementNerma opened this issue May 5, 2025 · 2 comments
Closed

Cannot install on Ubuntu 24.10 #28903

ClementNerma opened this issue May 5, 2025 · 2 comments
Labels
32 - Installation Problems installing or compiling NumPy

Comments

@ClementNerma
Copy link

ClementNerma commented May 5, 2025

Trying to build any project with the numpy dependency fails on my system.

Here is the output of python3 -m pip install numpy (ran just to isolate the error):

Collecting numpy
  Using cached numpy-2.2.5.tar.gz (20.3 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... error
  error: subprocess-exited-with-error
  
  × pip subprocess to install backend dependencies did not run successfully.
  │ exit code: 1
  ╰─> [81 lines of output]
      Collecting ninja>=1.8.2
        Using cached ninja-1.11.1.4.tar.gz (201 kB)
        Installing build dependencies: started
        Installing build dependencies: finished with status 'done'
        Getting requirements to build wheel: started
        Getting requirements to build wheel: finished with status 'done'
        Installing backend dependencies: started
        Installing backend dependencies: finished with status 'done'
        Preparing metadata (pyproject.toml): started
        Preparing metadata (pyproject.toml): finished with status 'done'
      Collecting patchelf>=0.11.0
        Using cached patchelf-0.17.2.2.tar.gz (149 kB)
        Installing build dependencies: started
        Installing build dependencies: finished with status 'done'
        Getting requirements to build wheel: started
        Getting requirements to build wheel: finished with status 'done'
        Installing backend dependencies: started
        Installing backend dependencies: finished with status 'done'
        Preparing metadata (pyproject.toml): started
        Preparing metadata (pyproject.toml): finished with status 'done'
      Building wheels for collected packages: ninja, patchelf
        Building wheel for ninja (pyproject.toml): started
        Building wheel for ninja (pyproject.toml): finished with status 'error'
        error: subprocess-exited-with-error
      
        × Building wheel for ninja (pyproject.toml) did not run successfully.
        │ exit code: 1
        ╰─> [20 lines of output]
            /tmp/pip-build-env-e69asi0i/normal/lib/python3.12/site-packages/setuptools_scm/git.py:310: UserWarning: git archive did not support describe output
              warnings.warn("git archive did not support describe output")
            /tmp/pip-build-env-e69asi0i/normal/lib/python3.12/site-packages/setuptools_scm/git.py:328: UserWarning: unprocessed git archival found (no export subst applied)
              warnings.warn("unprocessed git archival found (no export subst applied)")
            *** scikit-build-core 0.11.2 using CMake 3.30.3 (wheel)
            *** Configuring CMake...
            loading initial cache file build/py3-none-linux_x86_64/CMakeInit.txt
            CMake Error at /usr/share/cmake-3.30/Modules/CMakeDetermineCCompiler.cmake:49 (message):
              Could not find compiler set in environment variable CC:
      
              musl-clang.
            Call Stack (most recent call first):
              CMakeLists.txt:3 (project)
      
      
            CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
            CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
            -- Configuring incomplete, errors occurred!
      
            *** CMake configuration failed
            [end of output]
      
        note: This error originates from a subprocess, and is likely not a problem with pip.
        ERROR: Failed building wheel for ninja
        Building wheel for patchelf (pyproject.toml): started
        Building wheel for patchelf (pyproject.toml): finished with status 'error'
        error: subprocess-exited-with-error
      
        × Building wheel for patchelf (pyproject.toml) did not run successfully.
        │ exit code: 1
        ╰─> [16 lines of output]
            *** scikit-build-core 0.11.2 using CMake 3.30.3 (wheel)
            *** Configuring CMake...
            loading initial cache file build/py3-none-linux_x86_64/CMakeInit.txt
            CMake Error at /usr/share/cmake-3.30/Modules/CMakeDetermineCCompiler.cmake:49 (message):
              Could not find compiler set in environment variable CC:
      
              musl-clang.
            Call Stack (most recent call first):
              CMakeLists.txt:3 (project)
      
      
            CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
            CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
            -- Configuring incomplete, errors occurred!
      
            *** CMake configuration failed
            [end of output]
      
        note: This error originates from a subprocess, and is likely not a problem with pip.
        ERROR: Failed building wheel for patchelf
      Failed to build ninja patchelf
      ERROR: Failed to build installable wheels for some pyproject.toml based projects (ninja, patchelf)
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.

I have musl-tools, musl-dev, llvm, gcc, clang, make and cmake installed.
Any idea what's causing this? Thanks!

@rgommers
Copy link
Member

rgommers commented May 6, 2025

That ninja version has a musllinux wheel (https://pypi.org/project/ninja/1.11.1.4/#files), but apparently pip thinks that your system isn't compatible. If you install ninja with your system package manager, you'll avoid this problem.

@rgommers rgommers added the 32 - Installation Problems installing or compiling NumPy label May 6, 2025
@rgommers
Copy link
Member

The question is answered and no more follow-up, so I assume this is solved. Hence I will go ahead and close the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
32 - Installation Problems installing or compiling NumPy
Projects
None yet
Development

No branches or pull requests

2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy