astral-sh/uv

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

开放

#13,992 创建于 2025年6月12日

 (4 条评论) (1 个反应) (0 位负责人)Rust (3,111 个派生)batch import
enhancementerror messageshelp wanted

仓库指标

星标
 (84,934 个星标)
PR 合并指标
 (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

贡献者指南