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

Poetry build broken during numpy install #10

Open
jmachuca77 opened this issue Jan 16, 2025 · 1 comment
Open

Poetry build broken during numpy install #10

jmachuca77 opened this issue Jan 16, 2025 · 1 comment
Assignees

Comments

@jmachuca77
Copy link

ubuntu 22.04
python version 3.12.8

The current version fails during the 'poetry install' command with the following error:

  - Installing jupyter-lsp (2.2.0)
  - Installing jupyterlab-server (2.24.0)
  - Installing notebook-shim (0.2.3)
  - Installing numpy (1.25.2): Failed

PEP517 build of a dependency failed

Backend 'setuptools.build_meta:__legacy__' is not available.

Note: This error originates from the build backend, and is likely not a problem with poetry but one of the following issues with numpy (1.25.2)

  - not supporting PEP 517 builds
  - not specifying PEP 517 build requirements correctly
  - the build requirements are incompatible with your operating system or Python version
  - the build requirements are missing system dependencies (eg: compilers, libraries, headers).

You can verify this by running pip wheel --no-cache-dir --use-pep517 "numpy (==1.25.2)".
MizuhoAOKI added a commit that referenced this issue Jan 17, 2025
@MizuhoAOKI MizuhoAOKI self-assigned this Jan 17, 2025
@MizuhoAOKI
Copy link
Owner

MizuhoAOKI commented Jan 17, 2025

@jmachuca77
Thank you for sharing the issue.
I found a related case here saying that python 3.12 and numpy 1.25 cannot coexist.
https://stackoverflow.com/questions/77582651/why-doesnt-numpy-support-pep517-builds

Can you try the followings?

MizuhoAOKI added a commit that referenced this issue Jan 17, 2025
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

2 participants