scs icon indicating copy to clipboard operation
scs copied to clipboard

Unable to pip install, preparing metadata error

Open joeyphung opened this issue 1 year ago • 4 comments

Specifications

  • OS: Windows 11 Pro 23H2 64 Bit
  • SCS Version: 3.2.7
  • Compiler: Unsure
  • Python version: 3.13

Description

I am trying to pip install scs but am getting a "preparing meta data". I'm not too sure how to fix it. Any help would be appreciated!

How to reproduce

pip install scs

Additional information

Extra context.

Output

PS C:\Users\joeyw> pip install scs Collecting scs Using cached scs-3.2.7.tar.gz (1.6 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 ╰─> [31 lines of output] + meson setup C:\Users\joeyw\AppData\Local\Temp\pip-install-v_3um8qb\scs_27f1927c003c4caeae770b567875a1ed C:\Users\joeyw\AppData\Local\Temp\pip-install-v_3um8qb\scs_27f1927c003c4caeae770b567875a1ed.mesonpy-w8nxt3_9 -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=C:\Users\joeyw\AppData\Local\Temp\pip-install-v_3um8qb\scs_27f1927c003c4caeae770b567875a1ed.mesonpy-w8nxt3_9\meson-python-native-file.ini The Meson build system Version: 1.6.0 Source dir: C:\Users\joeyw\AppData\Local\Temp\pip-install-v_3um8qb\scs_27f1927c003c4caeae770b567875a1ed Build dir: C:\Users\joeyw\AppData\Local\Temp\pip-install-v_3um8qb\scs_27f1927c003c4caeae770b567875a1ed.mesonpy-w8nxt3_9 Build type: native build WARNING: Project does not target a minimum version but uses feature introduced in '1.1': meson.options file. Use meson_options.txt instead Project name: scs Project version: undefined Activating VS 17.12.1 C compiler for the host machine: cl (msvc 19.42.34433 "Microsoft (R) C/C++ Optimizing Compiler Version 19.42.34433 for x64") C linker for the host machine: link link 14.42.34433.0 Host machine cpu family: x86_64 Host machine cpu: x86_64 Program python found: YES (C:\Users\joeyw\AppData\Local\Programs\Python\Python313\python.exe) Library openblas found: NO Did not find pkg-config by name 'pkg-config' Found pkg-config: NO Found CMake: C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.EXE (3.29.5) Run-time dependency openblas found: NO (tried pkgconfig and cmake) Run-time dependency openblas found: NO (tried pkgconfig and cmake) Library blas found: NO Run-time dependency blas found: NO (tried pkgconfig and cmake) Library lapack found: NO Run-time dependency lapack found: NO (tried pkgconfig and cmake) Library cblas found: NO Run-time dependency cblas found: NO (tried pkgconfig and cmake)

  ..\meson.build:48:4: ERROR: Problem encountered: OpenBLAS or Netlib BLAS/CBLAS is required on all platforms except Windows, and was not found.

  A full log can be found at C:\Users\joeyw\AppData\Local\Temp\pip-install-v_3um8qb\scs_27f1927c003c4caeae770b567875a1ed\.mesonpy-w8nxt3_9\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.

joeyphung avatar Nov 26 '24 06:11 joeyphung

Do you have a blas + lapack install? Unfortunately the error message "OpenBLAS or Netlib BLAS/CBLAS is required on all platforms except Windows, and was not found" is incorrect as a blas install is required on all platforms.

bodono avatar Nov 28 '24 13:11 bodono

Oh also we don't have the wheels published for 3.13 yet I think, it's on my todo list!

bodono avatar Nov 28 '24 13:11 bodono

I tried the scs-3.2.7-cp312-cp312-win_amd64.whl package and it works fine for Python 3.12 environment. Therefore, I guess this issue can be fixed once a whl is published for Python 3.13.

qiansen1386 avatar Dec 30 '24 18:12 qiansen1386

It seems that the Python 3.13 wheels are now available since the release of version 3.2.7.post2 (https://pypi.org/project/scs/3.2.7.post2/#files). For me, it's now possible to install scs in a Python 3.13 environment. @JoeyPhung @qiansen1386 if it works for you too, I think this issue can be closed.

ValerianRey avatar Jan 06 '25 21:01 ValerianRey