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

WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")' #7424

Closed
rayandas opened this issue Dec 3, 2019 · 17 comments

Comments

@rayandas
Copy link

rayandas commented Dec 3, 2019

Fedora 31

  • pip version: 19.1.1
  • Python version: 3.7.5
  • OS: Fedora 31

I was trying to install flask-bcrypt

$ pip install flask-bcrypt
output:
Collecting flask-bcrypt
  WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/flask-bcrypt/
  WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/flask-bcrypt/
  WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/flask-bcrypt/
  WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError("bad handshake: SysCallError(-1, 'Unexpected EOF')"))': /simple/flask-bcrypt/
  WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/flask-bcrypt/
  ERROR: Could not find a version that satisfies the requirement flask-bcrypt (from versions: none)
ERROR: No matching distribution found for flask-bcrypt
@triage-new-issues triage-new-issues bot added the S: needs triage Issues/PRs that need to be triaged label Dec 3, 2019
@chrahunt chrahunt added C: network connectivity S: awaiting response Waiting for a response/more information type: support User Support labels Dec 8, 2019
@chrahunt
Copy link
Member

chrahunt commented Dec 8, 2019

Hello. Is this still affecting you?

This is going to be related to a local network condition or configuration. A few questions that may lead the right direction:

  • Are you able to download from PyPI with curl? Like curl https://pypi.org/simple/flask-bcrypt/
  • Pip tries to use the values from the HTTP_PROXY and HTTPS_PROXY environment variables, are these set? You can show the output of env | grep HTTP
  • Is this in a typical home network or in an enterprise environment?
  • Has this always happened on this machine or did it start recently?
  • If this worked in the past, are you on the same network that you were on then?
  • Can you install any other packages?

@triage-new-issues triage-new-issues bot removed the S: needs triage Issues/PRs that need to be triaged label Dec 8, 2019
@lin-xiaoyun
Copy link

!pip install sagemath
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f015edde080>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/sagemath/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f015eddea58>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/sagemath/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f015eddec18>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/sagemath/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f015edde438>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/sagemath/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f015eddeb70>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/sagemath/
ERROR: Could not find a version that satisfies the requirement sagemath (from versions: none)
ERROR: No matching distribution found for sagemath

@chrahunt
Copy link
Member

Hi @lin-xiaoyun, these kinds of problems are almost always user-specific. Can you please create a new issue and provide the information that I mentioned in this comment along with the info that is requested in the issue template?

@lin-xiaoyun
Copy link

I think maybe problem solved
I use this site https://cocalc.com/projects/e020ac89-1095-4f90-ba7a-554ed8dfae48/files/Welcome%20to%20CoCalc.ipynb?anonymous=true&session=default , and cannot pip install
before long , I try my jupyternotebook is ok ,
it display Collecting sagemath
Downloading https://files.pythonhosted.org/packages/6d/33/a1d37ab714eb48415813ca2443dbc52d1089d6f344ba68ac7643cad9c9aa/sagemath-1.2.8.tar.gz
Collecting cython>=0.26
Downloading https://files.pythonhosted.org/packages/ca/5d/7344d00b55f060243cf4f04c2fcee8c245a0af2b0bc236fc6dbb5021dcd6/Cython-0.29.14-cp36-cp36m-win_amd64.whl (1.7MB)
Building wheels for collected packages: sagemath
Building wheel for sagemath (setup.py): started
Building wheel for sagemath (setup.py): finished with status 'done'
Created wheel for sagemath: filename=sagemath-1.2.8-cp36-none-any.whl size=2346 sha256=40ef29e44ef4c6c282c083498a3dcb32e37613fcd8d4d56c60aa0dc3916c037d
Stored in directory: C:\Users\User\AppData\Local\pip\Cache\wheels\0c\ba\d1\3787929cc9b8bf92a26435333e19ce27078a8841f5cb22ae7c
Successfully built sagemath
Installing collected packages: cython, sagemath
Successfully installed cython-0.29.14 sagemath-1.2.8

BTW, I am not native language of English , if something wrong in English , please forgive

@no-response
Copy link

no-response bot commented Dec 23, 2019

This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.

@no-response no-response bot closed this as completed Dec 23, 2019
@chrahunt
Copy link
Member

chrahunt commented Dec 24, 2019

@lin-xiaoyun No worries, I am glad you got it working.

@jankatins
Copy link

I had a similar error and it worked after a restart of iterm. No idea what it was.

@Qblack
Copy link

Qblack commented Jan 15, 2020

@jankatins
Question - do you go to /simple on chrome before you have that issue?
For me it seems to die after I go there.

@AuthorBlindSubmission
Copy link

I am having the sameproblem but i cannot solve this... =/
help?
Collecting dockerspawner==0.10.0
Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7ffa65e3dbe0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',)': /simple/dockerspawner/
Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7ffa65e3d940>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',)': /simple/dockerspawner/
Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7ffa65e3db70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',)': /simple/dockerspawner/
Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7ffa65e6acc0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',)': /simple/dockerspawner/
Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7ffa65e6a748>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',)': /simple/dockerspawner/
Could not find a version that satisfies the requirement dockerspawner==0.10.0 (from versions: )
No matching distribution found for dockerspawner==0.10.0
ERROR: Service 'jupyterhub' failed to build: The command '/bin/sh -c pip install dockerspawner==0.10.0 jupyterhub-ldapauthenticator' returned a non-zero code: 1

@chrahunt
Copy link
Member

Hi @AuthorBlindSubmission, these kinds of problems are almost always user-specific. Can you please create a new issue and provide the information that I mentioned in this comment along with the info that is requested in the issue template?

@ichdamola
Copy link

Thank you @AuthorBlindSubmission. All I had to do too was restart my Terminal, then

pip install ...

worked appropriately.

@amarsharma441
Copy link

Step 1:
Press Win+R to open Run, type in “regedit” and click OK.
Step 2:
Move to HKEY_CURRENT_USER/Software/Microsoft/Windows/Current Version/Internet Settings.
Step 3:
Find a file with the name 'ProxyServer' and delete it.
Step 4:
Open cmd
Step 5:
Fire a command 'pip install flask-bcrypt'

@Suresh573
Copy link

Hi, I'm also getting same error while loading the packages after installing python 3.7, pycharm 19. Could any one help me out, because I'm new to python and trying to fix the issue, but not

WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x0000020EA6576108>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/math/

@amarsharma441
Copy link

amarsharma441 commented Feb 27, 2020

Hi, I'm also getting same error while loading the packages after installing python 3.7, pycharm 19. Could any one help me out, because I'm new to python and trying to fix the issue, but not

WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x0000020EA6576108>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/math/

Did you follow this steps?
If not please have a look, hopefully this will gonna work for you.
Step 1:
Press Win+R to open Run, type in “regedit” and click OK.
Step 2:
Move to HKEY_CURRENT_USER/Software/Microsoft/Windows/Current Version/Internet Settings.
Step 3:
Find a file with the name 'ProxyServer' and delete it.
Step 4:
Open cmd
Step 5:
Fire a command........

@gayathri-kannanv
Copy link

C:\Users\HARRIT>pip3 install tensorflow
Collecting tensorflow
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x000001EDAACA2F98>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed',)': /simple/tensorflow/

I uninstalled the whole python and reinstalled it again. It worked.

@sath-k
Copy link

sath-k commented Mar 29, 2020

Hi,
I am exploring python recently for database testing. I have come across the same issue what @rayandas has mentioned, while installing pyodbc & pandas. Infect getting the same error for all the packages while installing as below.
C:\Users\SatKumar\AppData\Local\Programs\Python\Python38\Scripts>pip install pandas as pd
Collecting pandas
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x000002221B87F3A0>: Failed to establish a new connection: [Errno 11002] getaddrinfo failed')': /simple/pandas/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x000002221B871D90>: Failed to establish a new connection: [Errno 11002] getaddrinfo failed')': /simple/pandas/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x000002221B871E20>: Failed to establish a new connection: [Errno 11002] getaddrinfo failed')': /simple/pandas/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x000002221B871550>: Failed to establish a new connection: [Errno 11002] getaddrinfo failed')': /simple/pandas/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x000002221B8715E0>: Failed to establish a new connection: [Errno 11002] getaddrinfo failed')': /simple/pandas/
ERROR: Could not find a version that satisfies the requirement pandas (from versions: none)
ERROR: No matching distribution found for pandas

As per my friends advice downloaded and moved pandas-1.0.3-cp36-cp36m-win_amd64.whl & pyodbc-4.0.30-cp27-cp27m-win_amd64.whl files into site-packages. Still nothing is working.

Can someone please point out where i am wrong.

@chrahunt
Copy link
Member

Hi @sath-k. Can you please create a new issue and provide the information that I mentioned in this comment along with the info that is requested in the issue template?

Anyone having similar issues can follow the same advice and we will try to help. Thanks!

@pypa pypa locked as resolved and limited conversation to collaborators Mar 29, 2020
@uranusjr uranusjr changed the title WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/flask-bcrypt/ WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")' Jul 29, 2020
@pradyunsg pradyunsg removed the S: awaiting response Waiting for a response/more information label Mar 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests