Skip to content

Minor: slightly misleading error when network is flaky #8198

@callegar

Description

@callegar

Using uv 0.4.21, when something cannot be downloaded, uv fails to say so clearly, and complains that something cannot be extracted from an archive. E.g.

uv python install 3.13t
Searching for Python versions matching: Python 3.13t
cpython-3.13.0+freethreaded-linux-x86_64-gnu ------------------------------ 3.30 MiB/46.83 MiB                                                                                           error: Failed to install cpython-3.13.0+freethreaded-linux-x86_64-gnu
  Caused by: Failed to extract archive: cpython-3.13.0%2B20241008-x86_64-unknown-linux-gnu-freethreaded%2Bdebug-full.tar.zst
  Caused by: failed to unpack `/home/callegar/.local/share/uv/python/.cache/.tmppoQYXt/python/build/Modules/_sqlite/cursor.o`
  Caused by: failed to unpack `python/build/Modules/_sqlite/cursor.o` into `/home/callegar/.local/share/uv/python/.cache/.tmppoQYXt/python/build/Modules/_sqlite/cursor.o`
  Caused by: error decoding response body
  Caused by: request or response body error
  Caused by: operation timed out

Would probably be better to say something like

error: Failed to download cpython-3.13.0%2B20241008-x86_64-unknown-linux-gnu-freethreaded%2Bdebug-full.tar.zst

and stop there.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions