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

BUG? No interpreter found in search path #10711

Open
turbotimon opened this issue Jan 17, 2025 · 1 comment
Open

BUG? No interpreter found in search path #10711

turbotimon opened this issue Jan 17, 2025 · 1 comment
Labels
needs-mre Needs more information for reproduction

Comments

@turbotimon
Copy link

turbotimon commented Jan 17, 2025

Problem

It is unclear to me, why uv venv does not find Python 3.12 in the system path. Discover of Python version claims its will look in PATH. And uv python find does find it.

$ uv venv
  × No interpreter found in search path

But it should work..

Here is what other commands find:

$ python --version
Python 3.12.7

$ which python
/etc/profiles/per-user/erti/bin/python
# context: it's a symlink to /nix/store/542jax1lz8sfq1gqk2wrdskr334sswnx-python3-3.12.7-env/bin/python3.12

$ echo $PATH
...:/etc/profiles/per-user/erti/bin:...

$ uv python find
/nix/store/542jax1lz8sfq1gqk2wrdskr334sswnx-python3-3.12.7-env/bin/python3.12

(yes, i'm using nixOS)

Context

My config is

$ cat ~/.config/uv/uv.toml
python-preference = "only-system"
python-downloads = "manual"

uv version is: 0.5.18

Workaround

This works however

uv venv --python $(which python)
@turbotimon turbotimon changed the title Question/BUG? No interpreter found for Python 3.12 in system path Question/BUG? No interpreter found in search path Jan 17, 2025
@turbotimon turbotimon changed the title Question/BUG? No interpreter found in search path BUG? No interpreter found in search path Jan 17, 2025
@charliermarsh
Copy link
Member

Can you include the logs with --verbose?

@charliermarsh charliermarsh added the needs-mre Needs more information for reproduction label Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-mre Needs more information for reproduction
Projects
None yet
Development

No branches or pull requests

2 participants