astral-sh/uv

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

Open

#13 992 ouverte le 12 juin 2025

Voir sur GitHub
 (4 commentaires) (0 réactions) (0 assignés)Rust (3 111 forks)batch import
enhancementerror messageshelp wanted

Métriques du dépôt

Stars
 (84 934 stars)
Métriques de merge PR
 (Merge moyen 6j 16h) (222 PRs mergées en 30 j)

Description

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

Guide contributeur