Skip to content

Failed installation with newer python version (3.13.0) #236

Description

@m-aguena

Bug report

I created a new conda environment with python=3.13.0 to test the pip installation of qp and got the following error

pip install qp-prob
Collecting qp-prob
  Using cached qp_prob-0.9.1-py3-none-any.whl.metadata (6.7 kB)
Collecting numpy<2.0.0 (from qp-prob)
  Using cached numpy-1.26.4.tar.gz (15.8 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
  Preparing metadata (pyproject.toml) ... error
  error: subprocess-exited-with-error
  
  × Preparing metadata (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [20 lines of output]
      + /home/aguena/miniconda3/envs/test/bin/python /tmp/pip-install-my35x7gk/numpy_df6561455c514a05bfbf8833498e6f23/vendored-meson/meson/meson.py setup /tmp/pip-install-my35x7gk/numpy_df6561455c514a05bfbf8833498e6f23 /tmp/pip-install-my35x7gk/numpy_df6561455c514a05bfbf8833498e6f23/.mesonpy-qzfe1xdw -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=/tmp/pip-install-my35x7gk/numpy_df6561455c514a05bfbf8833498e6f23/.mesonpy-qzfe1xdw/meson-python-native-file.ini
      The Meson build system
      Version: 1.2.99
      Source dir: /tmp/pip-install-my35x7gk/numpy_df6561455c514a05bfbf8833498e6f23
      Build dir: /tmp/pip-install-my35x7gk/numpy_df6561455c514a05bfbf8833498e6f23/.mesonpy-qzfe1xdw
      Build type: native build
      Project name: NumPy
      Project version: 1.26.4
      
      ../meson.build:1:0: ERROR: Unknown compiler(s): [['cc'], ['gcc'], ['clang'], ['nvc'], ['pgcc'], ['icc'], ['icx']]
      The following exception(s) were encountered:
      Running `cc --version` gave "[Errno 2] No such file or directory: 'cc'"
      Running `gcc --version` gave "[Errno 2] No such file or directory: 'gcc'"
      Running `clang --version` gave "[Errno 2] No such file or directory: 'clang'"
      Running `nvc --version` gave "[Errno 2] No such file or directory: 'nvc'"
      Running `pgcc --version` gave "[Errno 2] No such file or directory: 'pgcc'"
      Running `icc --version` gave "[Errno 2] No such file or directory: 'icc'"
      Running `icx --version` gave "[Errno 2] No such file or directory: 'icx'"
      
      A full log can be found at /tmp/pip-install-my35x7gk/numpy_df6561455c514a05bfbf8833498e6f23/.mesonpy-qzfe1xdw/meson-logs/meson-log.txt
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

BTW, the installation does work with a python=3.10.15 environment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions