Open mgaitan opened 5 months ago
Thanks for the report. It should be relatively straight-forward to add a try/except with a better message in get_interpreter_info
if someone is interested.
is this fixed in https://github.com/astral-sh/uv/pull/7239 ?
is this fixed in #7239 ?
Nope, ran into this today with uv 0.5.1.
I use a local venv in python3.10 but compile requirements for python 3.8 (requirements used for dockerized apps) . I have both versions (along the default python 3.12) installed.
Even when I have no my 3.10 venv active uv reports the following
warning: The requested Python version 3.8 is not available. 3.10.14 will be used
. But if I runpython3.8
it works.Debugging with
--verbose
I found the causeso after installing
sudo apt install python3.8-distutils
it works.The error message could be clearer and indicate the exact issue, such as the missing distutils module, to help users resolve the problem more efficiently.