Skip to content
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

Scipy missing OpenBLAS dependency #141

Open
tobin-ford opened this issue Jan 27, 2025 · 0 comments
Open

Scipy missing OpenBLAS dependency #141

tobin-ford opened this issue Jan 27, 2025 · 0 comments

Comments

@tobin-ford
Copy link
Collaborator

Describe the bug
openBLAS dependency missing on fresh editable PVDeg install in fresh conda environment.

To Reproduce
fresh conda environment: Python 3.13.1 on Kestrel
create a fresh PVDeg editdable install, pip install -e . from the PVDegradationTools main directory.

Collecting scipy<1.14.0 (from pvdeg==0.3.5.dev243+gfe22aef.d20250127)
  Downloading scipy-1.13.1.tar.gz (57.2 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 57.2/57.2 MB 186.0 MB/s eta 0:00:00
  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
  ╰─> [44 lines of output]
      + meson setup /tmp/pip-install-rhaqlmhw/scipy_706edc7af9b345029cf821e9b9216817 /tmp/pip-install-rhaqlmhw/scipy_706edc7af9b345029cf821e9b9216817/.mesonpy-7saz45qg -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=/tmp/pip-install-rhaqlmhw/scipy_706edc7af9b345029cf821e9b9216817/.mesonpy-7saz45qg/meson-python-native-file.ini
      The Meson build system
      Version: 1.7.0
      Source dir: /tmp/pip-install-rhaqlmhw/scipy_706edc7af9b345029cf821e9b9216817
      Build dir: /tmp/pip-install-rhaqlmhw/scipy_706edc7af9b345029cf821e9b9216817/.mesonpy-7saz45qg
      Build type: native build
      Project name: scipy
      Project version: 1.13.1
      C compiler for the host machine: cc (gcc 12.2.1 "gcc (GCC) 12.2.1 20221121 (Red Hat 12.2.1-7)")
      C linker for the host machine: cc ld.bfd 2.38-17
      C++ compiler for the host machine: c++ (gcc 12.2.1 "c++ (GCC) 12.2.1 20221121 (Red Hat 12.2.1-7)")
      C++ linker for the host machine: c++ ld.bfd 2.38-17
      Cython compiler for the host machine: cython (cython 3.0.11)
      Host machine cpu family: x86_64
      Host machine cpu: x86_64
      Program python found: YES (/home/tford/.conda-envs/reproduce/bin/python3.13)
      Found pkg-config: YES (/bin/pkg-config) 1.4.2
      Run-time dependency python found: YES 3.13
      Program cython found: YES (/tmp/pip-build-env-g01k4zhn/overlay/bin/cython)
      Compiler for C supports arguments -Wno-unused-but-set-variable: YES
      Compiler for C supports arguments -Wno-unused-function: YES
      Compiler for C supports arguments -Wno-conversion: YES
      Compiler for C supports arguments -Wno-misleading-indentation: YES
      Library m found: YES
      Fortran compiler for the host machine: gfortran (gcc 12.2.1 "GNU Fortran (GCC) 12.2.1 20221121 (Red Hat 12.2.1-7)")
      Fortran linker for the host machine: gfortran ld.bfd 2.38-17
      Compiler for Fortran supports arguments -Wno-conversion: YES
      Checking if "-Wl,--version-script" links: YES
      Program pythran found: YES 0.15.0 0.15.0 (/tmp/pip-build-env-g01k4zhn/overlay/bin/pythran)
      Found CMake: /bin/cmake (3.20.2)
      WARNING: CMake Toolchain: Failed to determine CMake compilers state
      Run-time dependency xsimd found: NO (tried pkgconfig and cmake)
      Run-time dependency threads found: YES
      Library npymath found: YES
      Library npyrandom found: YES
      pybind11-config found: YES (/tmp/pip-build-env-g01k4zhn/overlay/bin/pybind11-config) 2.12.1
      Run-time dependency pybind11 found: YES 2.12.1
      Run-time dependency scipy-openblas found: NO (tried pkgconfig)
      Run-time dependency openblas found: NO (tried pkgconfig and cmake)
      Run-time dependency openblas found: NO (tried pkgconfig and cmake)
      
      ../scipy/meson.build:163:9: ERROR: Dependency "OpenBLAS" not found, tried pkgconfig and cmake
      
      A full log can be found at /tmp/pip-install-rhaqlmhw/scipy_706edc7af9b345029cf821e9b9216817/.mesonpy-7saz45qg/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.

To Fix
$ conda install conda-forge::openblas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant