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
pip install doesn't retry when a package is being retrieved over git+ssh, git+https (and likely more). This is likely because this is running an external command and the retries aren't being caught when the command fails. The problem I'm suffering from is that I have many dependencies being retrieved via git+ssh and if there is a network blip then the pip install fails. pip install should be able to handle this with retries like it does with normal packages.
What I've run:
With no internet connection, I've tried running the following commands:
pip install --no-cache-dir git+https://github.com/tangentlabs/django-oscar-paypal.git@master
Collecting git+https://github.com/tangentlabs/django-oscar-paypal.git@master
Cloning https://github.com/tangentlabs/django-oscar-paypal.git (to master) to /private/var/folders/jd/_n63dfns725fv3xw4cwn1zlm5n_mrd/T/pip-npPjCb-build
fatal: unable to access 'https://github.com/tangentlabs/django-oscar-paypal.git/': Failed to connect to github.com port 443: Operation timed out
Command "git clone -q https://github.com/tangentlabs/django-oscar-paypal.git /private/var/folders/jd/_n63dfns725fv3xw4cwn1zlm5n_mrd/T/pip-npPjCb-build" failed with error code 128 in None
Compare this to trying to install a package from PyPI, which will have retries
pip install lxml
Collecting lxml
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x105983b50>: Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known',)': /simple/lxml/
Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x105983910>: Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known',)': /simple/lxml/
Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x1059830d0>: Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known',)': /simple/lxml/
Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x105983750>: Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known',)': /simple/lxml/
Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x105983310>: Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known',)': /simple/lxml/
Could not find a version that satisfies the requirement lxml (from versions: )
No matching distribution found for lxml
The text was updated successfully, but these errors were encountered:
pradyunsg
added
type: bug
A confirmed bug or unintended behavior
C: vcs
pip's interaction with version control systems like git, svn and bzr
labels
Jun 27, 2017
I never found the time, and it looks like a network connectivity issue. Closing this out, on the grounds that you've likely worked around this at some point in the las 5 years. :)
Description:
pip install
doesn't retry when a package is being retrieved over git+ssh, git+https (and likely more). This is likely because this is running an external command and the retries aren't being caught when the command fails. The problem I'm suffering from is that I have many dependencies being retrieved via git+ssh and if there is a network blip then the pip install fails. pip install should be able to handle this with retries like it does with normal packages.What I've run:
With no internet connection, I've tried running the following commands:
Compare this to trying to install a package from PyPI, which will have retries
The text was updated successfully, but these errors were encountered: