Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pip install doesn't retry over git+ssh #4572

Closed
rsennewald opened this issue Jun 26, 2017 · 3 comments
Closed

pip install doesn't retry over git+ssh #4572

rsennewald opened this issue Jun 26, 2017 · 3 comments
Labels
C: vcs pip's interaction with version control systems like git, svn and bzr type: bug A confirmed bug or unintended behavior

Comments

@rsennewald
Copy link

rsennewald commented Jun 26, 2017

  • Pip version: 9.0.1
  • Python version: 2.7.13
  • Operating system: macOS 10.12.5

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:

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
@pradyunsg 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
@pradyunsg
Copy link
Member

Hey @rsennewald! Thanks for filing this issue!

I'll look into it soon, when I find the time. :)

@Balaji-Gopal
Copy link

Sometimes the antivirus software that user you are using also blocks the pip requests, So disable the antivirus which you are using and try again :)

@pradyunsg
Copy link
Member

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. :)

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
C: vcs pip's interaction with version control systems like git, svn and bzr type: bug A confirmed bug or unintended behavior
Projects
None yet
Development

No branches or pull requests

3 participants