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

uv run can fail to invoke python #4776

Closed
zanieb opened this issue Jul 3, 2024 · 6 comments · Fixed by #4849
Closed

uv run can fail to invoke python #4776

zanieb opened this issue Jul 3, 2024 · 6 comments · Fixed by #4849
Assignees
Labels
bug Something isn't working preview Experimental behavior

Comments

@zanieb
Copy link
Member

zanieb commented Jul 3, 2024

❯ uv run --isolated -v crates/uv-python/fetch-download-metadata.py
DEBUG uv 0.2.21
warning: `uv run` is experimental and may change without warning.
DEBUG Running `python crates/uv-python/fetch-download-metadata.py`
error: Failed to spawn: `python`
  Caused by: No such file or directory (os error 2)
@zanieb zanieb added bug Something isn't working preview Experimental behavior labels Jul 3, 2024
@charliermarsh
Copy link
Member

What's going on here? Hah

@charliermarsh
Copy link
Member

Should we use the absolute path to the Python interpreter that we found?

@charliermarsh
Copy link
Member

Or are we not adding it to PATH, maybe?

@charliermarsh
Copy link
Member

Hmm, no, we do add the scripts directory to PATH which should include python...

@zanieb
Copy link
Member Author

zanieb commented Jul 5, 2024

My suspicion here, without investigating further, is that we didn't create an environment (since there are no requirements) and tried to invoke python outside of one?

@charliermarsh
Copy link
Member

Yeah this makes sense. It's kinda the same as #4846.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working preview Experimental behavior
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants