Description
Posted by @jenslink on the pip tracker (pypa/pip#12486), moved here:
Description
Hi,
there is a small problem with IPv6 only environments with an IPv6 only resolver. You can not install anything:
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f835a601090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/pip/
I debugged this, and it all boils down to a CDN hosted by Fastly and the Fastly authoritative DNS Severs used do not have AAAA records. The solution is easy: Ask Fastly to change to different auth servers with AAAA records.
deb.debian.org (an also the OpenBSD CDN) had the same problem.
Temporary workaround: use a DNS dual-stacked DNS resolver.
Expected behavior
No response
pip version
all
Python version
all
OS
all
How to Reproduce
* Setup an IPv6 only VM * configure a local resolver (or have another IPv6 only VM with an IPv6 only resolver * install anything via pip
Output
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f835a601090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/pip/
Code of Conduct
* [x] I agree to follow the [PSF Code of Conduct](https://www.python.org/psf/conduct/).