uv icon indicating copy to clipboard operation
uv copied to clipboard

No interpreter found for new projects with `requires-python = ">=3.13"`

Open imwints opened this issue 5 months ago • 1 comments

uv-actions like run or add fail to find Python-3.13. However uv python list lists Python-3.13.

uv init example
uv --directory=example add rich
# error: No interpreter found for Python >=3.13 in managed installations or system path
uv --directory=example run hello.py
# error: No interpreter found for Python >=3.13 in managed installations or system path
uv python list
# cpython-3.13.0-linux-x86_64-gnu     /usr/lib/python-exec/python3.13/python3 -> ../../../bin/python3.13
# cpython-3.13.0-linux-x86_64-gnu     /usr/lib/python-exec/python3.13/python -> python3
# cpython-3.13.0-linux-x86_64-gnu     /usr/bin/python3.13
# cpython-3.12.5-linux-x86_64-gnu     /usr/bin/python3.12
# cpython-3.12.5-linux-x86_64-gnu     <download available>
# ...
cat example/pyproject.toml
# [project]
# name = "example"
# version = "0.1.0"
# description = "Add your description here"
# readme = "README.md"
# requires-python = ">=3.13"
# dependencies = []

Is there a check that fails for release candidates, maybe?

python3 -V
# Python 3.13.0rc1
uv --version
# uv 0.4.0

imwints avatar Aug 29 '24 09:08 imwints