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

Tools break (understandably) after upgrading system Python #8514

Closed
akx opened this issue Oct 24, 2024 · 1 comment
Closed

Tools break (understandably) after upgrading system Python #8514

akx opened this issue Oct 24, 2024 · 1 comment
Labels
duplicate This issue or pull request already exists

Comments

@akx
Copy link
Contributor

akx commented Oct 24, 2024

I ran a long-overdue brew upgrade on my system yesterday, and since [email protected] 3.12.4 -> 3.12.7_1, I knew I'd have to nuke my venvs (which is related to #1495 – since my venvs are in ~/venvs, I don't need to hunt them around my project folders...) since the base interpreter is gone.

uv tools also break (though pipx-installed tools haven't broken! I suppose pipx doesn't fully resolve a symlink Python executable and just uses /opt/homebrew/bin/python3.12 instead of /opt/homebrew/Cellar/[email protected]/3.12.7_1/Frameworks/Python.framework/Versions/3.12/bin/python3.12?), and uv tool list doesn't make it perfectly easy to recover:

$ uv tool list
Python interpreter not found at `/Users/akx/Library/Application Support/uv/tools/jupyter-core/bin/python3`
Python interpreter not found at `/Users/akx/Library/Application Support/uv/tools/pre-commit/bin/python3`
Python interpreter not found at `/Users/akx/Library/Application Support/uv/tools/segno/bin/python3`

Happily, I have Fish shell history to help me, so I knew to uv tool install segno --with qrcode-artistic and uv tool install pre-commit --with pre-commit-uv (and get rid of Jupyter, that was just for testing).

$ uv tool list
pre-commit v4.0.1
- pre-commit
segno v1.6.1
- segno

Ideas:

  • uv tool reinstall-all? Looks like tools' uv-receipt.tomls contain the requirements, so uv could just Do The Thing.
@zanieb
Copy link
Member

zanieb commented Oct 24, 2024

I believe this is a duplicate of #1640 (which we are attempting to address in #8419 via #8481)

There's also some related issues

@zanieb zanieb added the duplicate This issue or pull request already exists label Oct 24, 2024
@charliermarsh charliermarsh closed this as not planned Won't fix, can't repro, duplicate, stale Nov 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants