You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I am using uv for Python package management in my Dockerfile. Specifically, I use the following command to install Python and set up a virtual environment:
In a corporate environment where internet access is restricted, uv tries to fetch Python binaries from the python-build-standalone repository on GitHub. This often results in DNS or connection failures due to the restricted access. Below is the error message I receive:
error: Failed to install cpython-3.8.20-linux-x86_64-gnu Caused by: Request failed after 3 retries Caused by: error sending request for url (https://github.com/indygreg/python-build-standalone/releases/download/20241002/cpython-3.8.20%2B20241002-x86_64-unknown-linux-gnu-install_only_stripped.tar.gz) Caused by: client error (Connect) Caused by: dns error: failed to lookup address information: Name or service not known
Feature Request
Is it possible to configure uv to pull Python from a mirrored repository (e.g., a corporate-hosted mirror of python-build-standalone)? If not, could this functionality be added in a future release?
This would allow us to maintain a mirror of the required Python versions within our network and bypass the need to access GitHub for downloading binaries.
Any guidance or alternative solutions would be greatly appreciated!
Thank you for your work on this project!
The text was updated successfully, but these errors were encountered:
Hi,
I am using uv for Python package management in my Dockerfile. Specifically, I use the following command to install Python and set up a virtual environment:
RUN uv python install 3.8 && uv venv <virtual_env> --python 3.8
In a corporate environment where internet access is restricted, uv tries to fetch Python binaries from the python-build-standalone repository on GitHub. This often results in DNS or connection failures due to the restricted access. Below is the error message I receive:
error: Failed to install cpython-3.8.20-linux-x86_64-gnu Caused by: Request failed after 3 retries Caused by: error sending request for url (https://github.com/indygreg/python-build-standalone/releases/download/20241002/cpython-3.8.20%2B20241002-x86_64-unknown-linux-gnu-install_only_stripped.tar.gz) Caused by: client error (Connect) Caused by: dns error: failed to lookup address information: Name or service not known
Feature Request
Is it possible to configure uv to pull Python from a mirrored repository (e.g., a corporate-hosted mirror of python-build-standalone)? If not, could this functionality be added in a future release?
This would allow us to maintain a mirror of the required Python versions within our network and bypass the need to access GitHub for downloading binaries.
Any guidance or alternative solutions would be greatly appreciated!
Thank you for your work on this project!
The text was updated successfully, but these errors were encountered: