-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Can't install chumpy
#7291
Comments
Sadly this is an issue with ❯ pip install chumpy --use-pep517
Collecting chumpy
Downloading chumpy-0.70.tar.gz (50 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [26 lines of output]
Traceback (most recent call last):
File "<string>", line 9, in <module>
ModuleNotFoundError: No module named 'pip'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/crmarsh/.local/share/rtx/installs/python/3.12.3/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
main()
File "/Users/crmarsh/.local/share/rtx/installs/python/3.12.3/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
... (In the pixi example you included, that's just pixi running You can either use |
Thanks! I should google "uv can't install chumpy" instead of the error message! Hope this pointer can help others who google the error message! Here are verified solutions following build isolation: [project]
name = "smpl-preprocess"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.10,<3.11"
dependencies = [
"numpy<1.24",
"scipy<2",
"chumpy",
]
[tool.uv]
no-build-isolation-package = ["chumpy"]
Run uv venv
uv pip install pip setuptools
uv sync
Solution 2: [project]
name = "smpl-preprocess"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.10,<3.11"
dependencies = [
"numpy<1.24",
"scipy<2",
]
[project.optional-dependencies]
build = ["setuptools", "pip"]
run = ["chumpy"]
[tool.uv]
no-build-isolation-package = ["chumpy"]
It won't work if we follow build isolation uv sync --extra build
uv sync --extra run
|
Does it work if you use |
the screen shot showed it failed at the first command, i.e. |
It looks like |
but separate optional groups do work, if I run |
My best guess is that the package is cached at some point, and so the build isn't recurring. If you run
But if I run |
I suspected the cache too. |
I would try to reproduce it in a "fresher" environment… |
Yeah I think to explore further I'd need a consistent reproduction (I'd suggest running |
I have written a GitHub Action to create a consistent reproduction. Without |
Thank you, I'll take a look. |
Can you rerun the Actions with |
I think the difference is that You can probably get the |
Run It kind of works by accident. But I think it is also kind of feature: Specify |
A more consistent behavior is desirable. |
Moreover, maybe we can add an extra option to skip "Preparing metadata" with a user provided metadata.
in the |
Closing in favor of the other issue. |
uv version
Reproduce:
It's similar to #1551 but the solution don't work:
uv init --lib
to create a project that allows[build-system]
[build-system]
touv add chumpy
, and get an erroruv add pip
/uv pip install pip
thenuv add chumpy
/uv pip install chumpy
don't work.uv add pip
/uv pip install pip
thenuv run pip install chumpy
/uv run python -m pip install chumpy
don't work. (NOTE: they work when there is a cached wheel.)But pixi can handle this.
The text was updated successfully, but these errors were encountered: