astral-sh/uv

Improve display of executable install errors during `uv python install`

Closed

#9,707 opened on Dec 7, 2024

 (1 comment) (1 reaction) (0 assignees)Rust (3,111 forks)batch import
error messageshelp wanted

Repository metrics

Stars
 (84,934 stars)
PR merge metrics
 (Avg merge 7d 16h) (259 merged PRs in 30d)

Description

e.g.,

error: Failed to install cpython-3.13.0-macos-aarch64-none
  Caused by: Executable already exists at `/Users/zb/.local/bin/python3` but is not managed by uv; use `--force` to replace it
error: Failed to install cpython-3.13.0-macos-aarch64-none
  Caused by: Executable already exists at `/Users/zb/.local/bin/python` but is not managed by uv; use `--force` to replace it

we show ~the same message twice. It'd be nice to group these.

Contributor guide