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

[BUG] Install errors #189

Closed
yangyang2023a opened this issue Apr 4, 2024 · 3 comments
Closed

[BUG] Install errors #189

yangyang2023a opened this issue Apr 4, 2024 · 3 comments
Assignees
Labels
bug Something isn't working no-issue-activity

Comments

@yangyang2023a
Copy link

yangyang2023a commented Apr 4, 2024

When I use 'pip3 install -U zetascale' to install the package. It encouters the following errors:

Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error

× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [40 lines of output]
+ meson setup /tmp/pip-install-fp9uzz1p/scipy_630f56d83584434c87e7ef53c32a96a0 /tmp/pip-install-fp9uzz1p/scipy_630f56d83584434c87e7ef53c32a96a0/.mesonpy-kg_ri2zl -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=/tmp/pip-install-fp9uzz1p/scipy_630f56d83584434c87e7ef53c32a96a0/.mesonpy-kg_ri2zl/meson-python-native-file.ini
The Meson build system
Version: 1.4.0
Source dir: /tmp/pip-install-fp9uzz1p/scipy_630f56d83584434c87e7ef53c32a96a0
Build dir: /tmp/pip-install-fp9uzz1p/scipy_630f56d83584434c87e7ef53c32a96a0/.mesonpy-kg_ri2zl
Build type: native build
Project name: SciPy
Project version: 1.9.3
C compiler for the host machine: cc (gcc 11.3.0 "cc (Ubuntu 11.3.0-1ubuntu122.04) 11.3.0")
C linker for the host machine: cc ld.bfd 2.38
C++ compiler for the host machine: c++ (gcc 11.3.0 "c++ (Ubuntu 11.3.0-1ubuntu1
22.04) 11.3.0")
C++ linker for the host machine: c++ ld.bfd 2.38
Host machine cpu family: x86_64
Host machine cpu: x86_64
Compiler for C supports arguments -Wno-unused-but-set-variable: YES
Compiler for C supports arguments -Wno-unused-but-set-variable: YES (cached)
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
Compiler for C supports arguments -Wno-incompatible-pointer-types: YES
Library m found: YES

  ../meson.build:57:0: ERROR: Unknown compiler(s): [['gfortran'], ['flang'], ['nvfortran'], ['pgfortran'], ['ifort'], ['ifx'], ['g95']]
  The following exception(s) were encountered:
  Running `gfortran --version` gave "[Errno 2] No such file or directory: 'gfortran'"
  Running `gfortran -V` gave "[Errno 2] No such file or directory: 'gfortran'"
  Running `flang --version` gave "[Errno 2] No such file or directory: 'flang'"
  Running `flang -V` gave "[Errno 2] No such file or directory: 'flang'"
  Running `nvfortran --version` gave "[Errno 2] No such file or directory: 'nvfortran'"
  Running `nvfortran -V` gave "[Errno 2] No such file or directory: 'nvfortran'"
  Running `pgfortran --version` gave "[Errno 2] No such file or directory: 'pgfortran'"
  Running `pgfortran -V` gave "[Errno 2] No such file or directory: 'pgfortran'"
  Running `ifort --version` gave "[Errno 2] No such file or directory: 'ifort'"
  Running `ifort -V` gave "[Errno 2] No such file or directory: 'ifort'"
  Running `ifx --version` gave "[Errno 2] No such file or directory: 'ifx'"
  Running `ifx -V` gave "[Errno 2] No such file or directory: 'ifx'"
  Running `g95 --version` gave "[Errno 2] No such file or directory: 'g95'"
  Running `g95 -V` gave "[Errno 2] No such file or directory: 'g95'"
  
  A full log can be found at /tmp/pip-install-fp9uzz1p/scipy_630f56d83584434c87e7ef53c32a96a0/.mesonpy-kg_ri2zl/meson-logs/meson-log.txt
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.

Upvote & Fund

  • We're using Polar.sh so you can upvote and help fund this issue.
  • We receive the funding once the issue is completed & confirmed by you.
  • Thank you in advance for helping prioritize & fund our backlog.
Fund with Polar
@yangyang2023a yangyang2023a added the bug Something isn't working label Apr 4, 2024
Copy link

github-actions bot commented Apr 4, 2024

Hello there, thank you for opening an Issue ! 🙏🏻 The team was notified and they will get back to you asap.

@kyegomez
Copy link
Owner

kyegomez commented Apr 6, 2024

The error message suggests that there is an issue with preparing the metadata for the installation of SciPy. Specifically, it mentions an error with the Meson build system and unknown compilers.

The relevant error message states:

..meson.build:57:0: ERROR: Unknown compiler(s): [['gfortran'], ['flang'], ['nvfortran'], ['pgfortran'], ['ifort'], ['ifx'], ['g95']]
Additionally, it mentions that it couldn't find the specified compilers:

Running gfortran --version gave "[Errno 2] No such file or directory: 'gfortran'"
Running flang --version gave "[Errno 2] No such file or directory: 'flang'"
Running nvfortran --version gave "[Errno 2] No such file or directory: 'nvfortran'"
Running pgfortran --version gave "[Errno 2] No such file or directory: 'pgfortran'"
Running ifort --version gave "[Errno 2] No such file or directory: 'ifort'"
Running ifx --version gave "[Errno 2] No such file or directory: 'ifx'"
Running g95 --version gave "[Errno 2] No such file or directory: 'g95'"
This error usually occurs when the required compilers are not installed on the system. In this case, the system is missing the necessary compilers like gfortran, flang, nvfortran, pgfortran, ifort, ifx, and g95.

To resolve this error, you will need to install the missing compilers on your system. Once the compilers are installed and available in the system's PATH, you can try installing SciPy again.

Note: The specific steps to install the compilers depend on the operating system you are using.

Copy link

github-actions bot commented Jun 6, 2024

Stale issue message

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jun 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working no-issue-activity
Projects
None yet
Development

No branches or pull requests

2 participants