-
Notifications
You must be signed in to change notification settings - Fork 995
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
Explaining odd behavior with dependency locking and installation. #9701
Comments
I think you're running into a variety of bugs that are fixed by #9370. Check out the linked issues there. |
Is there a quick way to install uv directly from that branch to test it? Also, are you an agentic LLM? Or are your fingers just crazy fast? |
There are a limited set of binary artifacts attached to the CI run for the commit https://github.com/astral-sh/uv/actions/runs/12204703226?pr=9370 (scroll to the bottom) — you can download one of those if you don't want to build from source. We're all robots |
You've done it again
$ ~/Downloads/uv sync --group my_group && ~/Downloads/uv pip show torch torchvision
Using CPython 3.10.15
Creating virtual environment at: .venv
⠙ Resolving dependencies... warning: Missing version constraint (e.g., a lower bound) for `setuptools`
warning: Missing version constraint (e.g., a lower bound) for `torch`
warning: Missing version constraint (e.g., a lower bound) for `torchvision`
Resolved 73 packages in 1.56s
Installed 12 packages in 256ms
+ filelock==3.16.1
+ fsspec==2024.10.0
+ jinja2==3.1.4
+ markupsafe==2.1.5
+ mpmath==1.3.0
+ networkx==3.1
+ numpy==1.24.4
+ pillow==10.4.0
+ sympy==1.13.3
+ torch==2.4.1
+ torchvision==0.19.1
+ typing-extensions==4.12.2
Name: torch
Version: 2.4.1
Location: /Users/neil.wadhvana/workspaces/main/torc-robotics/pytorc/projects/dep_test/.venv/lib/python3.10/site-packages
Requires: filelock, fsspec, jinja2, networkx, sympy, typing-extensions
Required-by: torchvision
---
Name: torchvision
Version: 0.19.1
Location: /Users/neil.wadhvana/workspaces/main/torc-robotics/pytorc/projects/dep_test/.venv/lib/python3.10/site-packages
Requires: numpy, pillow, torch
Required-by: Teach me your ways. The world is moving too slowly for me. |
When using the following pyproject.toml, I get some weird behavior:
pyptoject.toml
To verify everything is as expected, I run
uv sync --group my_group && uv pip show torch torchvision
I'm befuddled with the outcome.
Installed versions on MacOS
uv
install 2 versions oftorch
andtorchvision
on MacOS? Or is this just a readout from the lock file?.venv
site-packages, I only see one installation of each package (the newer versions).uv pip show
is both parsing the lock file for versions and also reading from the environment, and somehow getting confused.show
without installing / after cleaning up the venv yields only the observed, installed versions.torch
andtorchvision
in themmcv*
groups, but I don't yet understand why it's necessary - should it be?I understand I'm not using the exact prescribed installation setup described in the docs, but I'm trying to understand the tool's behavior instead of just hard-coding a solution.
The text was updated successfully, but these errors were encountered: