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

Inability to Switch Between Python 3.13 and 3.13t Using uv on macOS and Docker #8207

Closed
mrchoke opened this issue Oct 15, 2024 · 3 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@mrchoke
Copy link

mrchoke commented Oct 15, 2024

I encountered an issue when switching between different versions of Python (3.13 and 3.13t) on macOS, specifically when Python 3.13 is installed via Homebrew. This issue is also reproducible within a Docker image of Python 3.13.

Steps to reproduce:

  1. If Python 3.13 is already installed on the system (e.g., installed via Homebrew on macOS), I run the script with Python 3.13t using the command:
uv run -p3.13t script.py
  1. uv correctly downloads the Python 3.13 free-thread binary, and the script runs successfully.
  2. However, if I try to run the script with Python 3.13 afterwards (without the “t” suffix), it continues to use Python 3.13t and does not switch back to Python 3.13 as expected.
  3. In a scenario where Python 3.13 is not pre-installed on the system:
  • If I run the script with Python 3.13t first, I can no longer switch back to Python 3.13 later.
  • Conversely, if I start by running the script with Python 3.13, uv downloads the correct binary, and I am able to switch between Python 3.13 and 3.13t freely.
  1. This issue can also be reproduced within a Docker container running Python 3.13.

Expected Behavior:

After running the script with Python 3.13t, I should be able to switch back to Python 3.13 without it being stuck on Python 3.13t.

Actual Behavior:

Once Python 3.13t is used, it does not allow switching back to Python 3.13, even if explicitly requested.

Any suggestions or fixes for this issue would be appreciated!

uv version: 0.4.21

@charliermarsh
Copy link
Member

\cc @zanieb

@zanieb
Copy link
Member

zanieb commented Oct 15, 2024

I believe this was fixed in #8191 and will be released today

@charliermarsh
Copy link
Member

Thanks!

@charliermarsh charliermarsh added the bug Something isn't working label Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants