-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Closed
Labels
bugSomething isn't workingSomething isn't workingnetworkNetwork connectivity e.g. proxies, DNS, and SSLNetwork connectivity e.g. proxies, DNS, and SSL
Description
I have a project with a ton of dependencies, and an AWS CodeArtifact PyPI server that I host my dependencies in. When I use it as my index URL, I am consistently getting failures as compared to when I do not.
Related:
- Add test coverage for AWS CodeArtifact #1426
unexpected end of fileduring wheel download #2586- Add support for retrying connection failures #3514
requirements.txt:
nvidia-cublas-cu12==12.1.3.1
nvidia-cuda-cupti-cu12==12.1.105
nvidia-cuda-nvrtc-cu12==12.1.105
nvidia-cuda-runtime-cu12==12.1.105
nvidia-cudnn-cu12==8.9.2.26
nvidia-cufft-cu12==11.0.2.54
nvidia-curand-cu12==10.3.2.106
nvidia-cusolver-cu12==11.4.5.107
nvidia-cusparse-cu12==12.1.0.106
nvidia-nccl-cu12==2.20.5
nvidia-nvjitlink-cu12==12.5.40
nvidia-nvtx-cu12==12.1.105The above packages are the main offenders. Notably, they are all large. To pick a few (the ones that appear in the error messages):
nvidia-nccl-cu12==2.20.5is 176.2 MBnvidia-cusparse-cu12==12.1.0.106is 196.0 MBnvidia-cusolver-cu12==11.4.5.107is 124.2 MB
To reproduce:
$ rm -rf ~/.cache/uv
$ conda create -n uvtest python=3.10 -y
$ conda activate uvtest
$ pip install uv
...
Installing collected packages: uv
Successfully installed uv-0.2.13
$ aws sso login
$ ...
$ export UV_INDEX_URL="https://aws:${CODEARTIFACT_AUTH_TOKEN}@${CODEARTIFACT_DOMAIN}-${AWS_ACCOUNT_ID}.d.codeartifact.${AWS_PIP_REGION}.amazonaws.com/pypi/${CODEARTIFACT_REPO}"
$ export UV_HTTP_TIMEOUT=60
$ uv pip install -r requirements.txt
...
error: Failed to download distributions
Caused by: Failed to fetch wheel: nvidia-nccl-cu12==2.20.5
Caused by: Failed to extract archive
Caused by: error decoding response body
Caused by: request or response body error
Caused by: error reading a body from connection
Caused by: end of file before message length reacheda different time:
$ uv pip install -r requirements.txt
error: Failed to download distributions
Caused by: Failed to fetch wheel: nvidia-cusparse-cu12==12.1.0.106
Caused by: Failed to extract archive
Caused by: error decoding response body
Caused by: request or response body error
Caused by: error reading a body from connection
Caused by: peer closed connection without sending TLS close_notify: https://docs.rs/rustls/latest/rustls/manual/_03_howto/index.html#unexpected-eofa different time:
$ uv pip install -r requirements.txt
error: Failed to download distributions
Caused by: Failed to fetch wheel: nvidia-cusolver-cu12==11.4.5.107
Caused by: Failed to extract archive
Caused by: error decoding response body
Caused by: request or response body error
Caused by: error reading a body from connection
Caused by: peer closed connection without sending TLS close_notify: https://docs.rs/rustls/latest/rustls/manual/_03_howto/index.html#unexpected-eofI do not see these errors when running with --verbose??
sidhartha-roy, MartinRoth, darwing1210, lunluen, b-phi and 2 moreqthequartermasterman, sidhartha-roy, CandiedCode and hutch3232
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingnetworkNetwork connectivity e.g. proxies, DNS, and SSLNetwork connectivity e.g. proxies, DNS, and SSL