-
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
UV venv doesn't work on MacOS when Rye is installed #1791
Comments
Thanks for the report! Rye won't be dead soon, we'll be helping maintain it. Regarding the error, it seems weird that we're detecting |
This is why this error happens. uv/crates/uv-interpreter/src/python_query.rs Lines 174 to 175 in 5d53040
Anyway, rye doesn't provide commands like |
I haven't used rye myself but I wonder if this is the suggested workflow. I think the proposed way of using |
rye doesn't have |
@zanieb i ran into that issue myself. The problem here is that the I see three options:
|
Virtualenv can extend Python discovery and there are extensions for pyenv and rye.
Since it needs to be written in Python, difficut to support them from uv. Another idea is creating directory like what uv already have |
Possibly related to #1795 |
I find uv/crates/uv-interpreter/src/python_query.rs Lines 50 to 54 in 5d53040
Why only find_default_python canonicalize python? Can we just stop canonicalize? |
Summary:
Out of the box, the tool doesn't work.
I have Rye installed in my system. When downloading UV to test this out, as it seems like Rye will soon be dead and I'll have to migrate to this tool. I get the following error:
uv platform: MacOS 14.4 (Intel x86)
uv version: uv 0.1.6
command:
uv venv test
× Querying Python at
/Users/justin/.rye/shims/rye
failed with status exit│ status: 2:
│ --- stdout:
--- stderr:
│ error: unexpected argument found
│ ---
It appears that with both tools installed, UV is nerfed.
The text was updated successfully, but these errors were encountered: