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

uv toolchain list throws error and fails to display list because Python 2 is on the PATH #4380

Closed
notatallshaw-gts opened this issue Jun 18, 2024 · 3 comments · Fixed by #4382
Assignees
Labels
bug Something isn't working preview Experimental behavior

Comments

@notatallshaw-gts
Copy link

notatallshaw-gts commented Jun 18, 2024

$ uv -V
uv 0.2.12

$ python -V
Python 3.11.2

$ /usr/bin/python -V
Python 2.7.15

$ uv toolchain list
warning: `uv toolchain list` is experimental and may change without warning.
error: Can't use Python at `/usr/bin/python`
  Caused by: Python executable does not support `-I` flag. Please use Python 3.8 or newer.
@zanieb zanieb self-assigned this Jun 18, 2024
@zanieb zanieb added the preview Experimental behavior label Jun 18, 2024
@zanieb
Copy link
Member

zanieb commented Jun 18, 2024

Thanks. We should be skipping those.

@zanieb zanieb added the bug Something isn't working label Jun 18, 2024
@zanieb
Copy link
Member

zanieb commented Jun 18, 2024

This should be resolved by #4382 if you're willing to give it a try.

@notatallshaw-gts
Copy link
Author

Confirmed, no longer throws an error:

cargo run -- toolchain list
   ...
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 37.30s
     Running `target/debug/uv toolchain list`
warning: `uv toolchain list` is experimental and may change without warning.
cpython-3.12.3-linux-x86_64-musl        <download available>
cpython-3.12.3-linux-x86_64-gnu /home/STRIKETECH/dshaw/.local/share/uv/toolchains/cpython-3.12.3-linux-x86_64-gnu/install/bin/python3
cpython-3.11.9-linux-x86_64-musl        <download available>
cpython-3.11.9-linux-x86_64-gnu /home/STRIKETECH/dshaw/.local/share/uv/toolchains/cpython-3.11.9-linux-x86_64-gnu/install/bin/python3
cpython-3.11.2-linux-x86_64-gnu /usr/local/bin/python3
cpython-3.11.2-linux-x86_64-gnu /home/STRIKETECH/dshaw/miniforge3/envs/backoffice/bin/python3
cpython-3.11.2-linux-x86_64-gnu /home/STRIKETECH/dshaw/miniforge3/envs/backoffice/bin/python
cpython-3.10.14-linux-x86_64-musl       <download available>
cpython-3.10.14-linux-x86_64-gnu        /home/STRIKETECH/dshaw/.local/share/uv/toolchains/cpython-3.10.14-linux-x86_64-gnu/install/bin/python3
cpython-3.9.19-linux-x86_64-musl        <download available>
cpython-3.9.19-linux-x86_64-gnu /home/STRIKETECH/dshaw/.local/share/uv/toolchains/cpython-3.9.19-linux-x86_64-gnu/install/bin/python3
cpython-3.8.19-linux-x86_64-musl        <download available>
cpython-3.8.19-linux-x86_64-gnu /home/STRIKETECH/dshaw/.local/share/uv/toolchains/cpython-3.8.19-linux-x86_64-gnu/install/bin/python3
cpython-3.7.9-linux-x86_64-musl <download available>
cpython-3.7.2-linux-x86_64-gnu  /usr/bin/python3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working preview Experimental behavior
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants