Skip to content

Failed to download distributions with unexpected BufError errors #1710

Open
@humanzz

Description

Hello,

My team develops locally mostly using MacOS, but we use a CI/CD (Amazon Linux 2) system as part of our development process.

We have a python package, with pyproject.toml and we use https://github.com/pyinvoke/invoke to manage our build scripts.

The main task in question now in tasks.py, uses uv pip install and looks as follows

UV_ENV = "UV_CACHE_DIR=<path> UV_INDEX_URL=<a non default index> "

@task
def develop(ctx):
    ctx.run(UV_ENV + "uv pip install --verbose -e '.[dev,testing]'", echo=True)

We use uv==0.1.5.

We're trying to move to using uv for its speed gains.
On MacOS, everything works as expected.
On the CI/CD host, we sometimes - more often than not - run into an error that originates from the uv pip install call in the develop task.

The error consistently looks as follows. The error sometimes changes the dependency it's failing to fetch.

error: Failed to download distributions
  Caused by: Failed to fetch wheel: numpy==1.26.4
  Caused by: Failed to extract source distribution
  Caused by: unexpected BufError

I'm attaching the --verbose output for a failed run and its successful retry. Note that I've slightly modified this to drop index urls, and package name, but the full list of dependencies should be there at the end of 2nd successful attempt.

uv_attempt1_fail.log
uv_attempt2_success.log

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingerror messagesMessaging when something goes wrongnetworkNetwork connectivity e.g. proxies, DNS, and SSL

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions