astral-sh/uv

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

Open

#13,992 建立於 2025年6月12日

在 GitHub 查看
 (4 留言) (0 反應) (0 負責人)Rust (3,111 fork)batch import
enhancementerror messageshelp wanted

倉庫指標

Star
 (84,934 star)
PR 合併指標
 (平均合併 6天 16小時) (30 天內合併 222 個 PR)

描述

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

貢獻者指南