-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unexpected end of file
during wheel download
#2586
Comments
Are you seeing this for every package? Just for this one? Are you seeing it for this one package consistently? Are you using any non-PyPI indexes? |
No, I try "uv pip install ultralytics" for three times but it comes out the same error. I install pandas with uv successfully:
This is a new conda env, all I do was :
|
I cannot reproduce this on Linux or macOS, although the download takes quite some time on Linux.
What happens if you just install the problematic package? e.g.
|
unexpected end of file
during wheel download
but I still can't install the ‘ultralytics’ package:
|
We are getting this same error for
The failure seems quite intermittent. |
I got this error randomly when fetching large wheels: https://github.com/njzjz/deepmd-kit/actions/runs/9182537910/job/25251596562#step:5:35 You can see in 12 jobs, it only happens once. |
…#3889) This PR uses a shell wrapper to check if the `error decoding response body` error message is in the uv stderr and retry if so. It is just a workaround for astral-sh/uv#2586 and astral-sh/uv#3514 and hope the upstream can fix it. Note that this PR does nothing with cibuildwheel. It's unclear how to retry with certain errors under its complex logic (feature requested in pypa/cibuildwheel#1846). <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Chores** - Standardized installation process for TensorFlow, Torch, and other dependencies across workflows by using `uv_with_retry.sh` script to ensure reliable installations. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
…#3889) This PR uses a shell wrapper to check if the `error decoding response body` error message is in the uv stderr and retry if so. It is just a workaround for astral-sh/uv#2586 and astral-sh/uv#3514 and hope the upstream can fix it. Note that this PR does nothing with cibuildwheel. It's unclear how to retry with certain errors under its complex logic (feature requested in pypa/cibuildwheel#1846). <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Chores** - Standardized installation process for TensorFlow, Torch, and other dependencies across workflows by using `uv_with_retry.sh` script to ensure reliable installations. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
…#3889) This PR uses a shell wrapper to check if the `error decoding response body` error message is in the uv stderr and retry if so. It is just a workaround for astral-sh/uv#2586 and astral-sh/uv#3514 and hope the upstream can fix it. Note that this PR does nothing with cibuildwheel. It's unclear how to retry with certain errors under its complex logic (feature requested in pypa/cibuildwheel#1846). <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Chores** - Standardized installation process for TensorFlow, Torch, and other dependencies across workflows by using `uv_with_retry.sh` script to ensure reliable installations. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
…deepmodeling#3889) This PR uses a shell wrapper to check if the `error decoding response body` error message is in the uv stderr and retry if so. It is just a workaround for astral-sh/uv#2586 and astral-sh/uv#3514 and hope the upstream can fix it. Note that this PR does nothing with cibuildwheel. It's unclear how to retry with certain errors under its complex logic (feature requested in pypa/cibuildwheel#1846). <!-- This is an auto-generated comment: release notes by coderabbit.ai --> - **Chores** - Standardized installation process for TensorFlow, Torch, and other dependencies across workflows by using `uv_with_retry.sh` script to ensure reliable installations. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> (cherry picked from commit 359d19b) Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu>
…#3889) This PR uses a shell wrapper to check if the `error decoding response body` error message is in the uv stderr and retry if so. It is just a workaround for astral-sh/uv#2586 and astral-sh/uv#3514 and hope the upstream can fix it. Note that this PR does nothing with cibuildwheel. It's unclear how to retry with certain errors under its complex logic (feature requested in pypa/cibuildwheel#1846). <!-- This is an auto-generated comment: release notes by coderabbit.ai --> - **Chores** - Standardized installation process for TensorFlow, Torch, and other dependencies across workflows by using `uv_with_retry.sh` script to ensure reliable installations. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> (cherry picked from commit 359d19b) Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu>
…deepmodeling#3889) This PR uses a shell wrapper to check if the `error decoding response body` error message is in the uv stderr and retry if so. It is just a workaround for astral-sh/uv#2586 and astral-sh/uv#3514 and hope the upstream can fix it. Note that this PR does nothing with cibuildwheel. It's unclear how to retry with certain errors under its complex logic (feature requested in pypa/cibuildwheel#1846). <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Chores** - Standardized installation process for TensorFlow, Torch, and other dependencies across workflows by using `uv_with_retry.sh` script to ensure reliable installations. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Also seeing this downloading large packages (~180MB) over slow network connections (~5MB/s) |
+1 for the issue with installing PyTorch |
This comment was marked as off-topic.
This comment was marked as off-topic.
I also faced this error when downloading a large package (1.2GB) from my slow non-PyPI index server. In my case, UV_CONCURRENT_DOWNLOADS=1 solved the issue. |
We have more retries for these, including for these kind of "body" errors. |
ubuntu 22.04
uv 0.1.23
when exec " uv pip install ultralytics", it failed with :
The text was updated successfully, but these errors were encountered: