[Tutor] Pip install and Ipv6

Luiz Gustavo S. Costa luizgustavo at luizgustavo.pro.br
Mon Jul 2 12:48:01 EDT 2018


Hello,

Is anyone else here having problems using Pip repository with ipv6?

If I try to install something with pip, I get this:

(python2) lgcosta:api/ $ pip install falcon
Collecting falcon Retrying (Retry(total=4, connect=None, read=None,
redirect=None, status=None)) after connection broken by
'ProtocolError('Connection aborted.', error(104, 'Connection reset by
peer'))': /simple/falcon/

and it does not work ... but, I discovered this:

(python2) lgcosta:api/ $ curl -I https://pypi.python.org/
curl: (35) gnutls_handshake() failed: Error in the pull function.

(python2) lgcosta:api/ $ host pypi.python.org
pypi.python.org is an alias for dualstack.python.map.fastly.net.
dualstack.python.map.fastly.net has address 151.101.16.223
dualstack.python.map.fastly.net has IPv6 address 2a04:4e42:4::223

My default output is ipv6, so if I force it out by ipv4, it works:

(python2) lgcosta:api/ $ curl -I -4 https://pypi.python.org/
HTTP/1.1 301 Redirect to Primary Domain
Server: Varnish Retry-After: 0
Location: https://pypi.org/
Content-Type: text/html; charset=UTF-8
Content-Length: 122
....

output over ipv6, the repository does not work, only for ipv4.

I did not find the option to force ipv4 on the pip.

Does anyone have any notice or similar reports?

Thanks !

-- 
Luiz Gustavo Costa (Powered by BSD)
*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+
ICQ: 2890831 / Gtalk: gustavo.bsd at gmail.com
Blog: http://www.luizgustavo.pro.br


More information about the Tutor mailing list