astral-sh/uv

Improve error message on "failed to spawn" where the Python interpreter is missing

Aperta

#13.992 aperta il 12 giu 2025

 (4 commenti) (1 reazione) (0 assegnatari)Rust (3111 fork)batch import
enhancementerror messageshelp wanted

Metriche repository

Star
 (84.934 stelle)
Metriche merge PR
 (Merge medio 7g 16h) (259 PR mergiate in 30 g)

Descrizione

Summary

e.g., as reported in https://github.com/astral-sh/uv/issues/13196

The error message when the Python interpreter cannot be found by an entry point is

error: Failed to spawn: `jupyter` Caused by: No such file or directory (os error 2)

We can read the entry point and provide a better error message in this case.

Related #13989

Example

error: Failed to spawn: `jupyter` Caused by: No such file or directory (os error 2)

hint: `jupyter` uses a Python interpreter at `path` which no longer exists

Guida contributor