Skip to content

WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))' #11284

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

Closed
1 task done
slooi opened this issue Jul 21, 2022 · 4 comments
Labels
type: question User question

Comments

@slooi
Copy link

slooi commented Jul 21, 2022

System

  • Windows 10
  • Python 3.10.5
  • Pip 22.2

Issue

pip install package_name doesn't install the package. I just get errors.

What I've tried

  • I've tried using conda instead but it doesn't work too (interestingly though cmd gets the json response when I do: curl https://repo.anaconda.com/pkgs/main/win-64/current_repodata.json). This is a log of when I do conda install panda:
Collecting package metadata (current_repodata.json): failed

CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://repo.anaconda.com/pkgs/main/win-64/current_repodata.json>
Elapsed: -

An HTTP error occurred when trying to retrieve this URL.
HTTP errors are often intermittent, and a simple retry will get you on your way.

If your current network has https://www.anaconda.com blocked, please file
a support request with your network engineering team.

'https://repo.anaconda.com/pkgs/main/win-64'
  • Turning router on and off
  • Uninstalling then reinstalling python
  • I've turned the windows proxy settings "Automatically detect settings" to off
  • I've tried setting the hosts file to only:
    127.0.0.1 localhost
    ::1 localhost

Expected behavior

Installs the package

pip version

Pip 22.2

Python version

Python 3.10.5

OS

Windows 10

How to Reproduce

  1. Download python with pip
  2. run pip install panda

Output

WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))': /simple/panda/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))': /simple/panda/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))': /simple/panda/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))': /simple/panda/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))': /simple/panda/
ERROR: Could not find a version that satisfies the requirement panda (from versions: none)
ERROR: No matching distribution found for panda
WARNING: There was an error checking the latest version of pip.

Code of Conduct

@slooi slooi added S: needs triage Issues/PRs that need to be triaged type: bug A confirmed bug or unintended behavior labels Jul 21, 2022
@uranusjr
Copy link
Member

Given that both pip and conda fails, this is likely a problem with your Internet provider. Not much we can do here.

@uranusjr uranusjr closed this as not planned Won't fix, can't repro, duplicate, stale Jul 21, 2022
@uranusjr uranusjr added type: question User question and removed type: bug A confirmed bug or unintended behavior S: needs triage Issues/PRs that need to be triaged labels Jul 21, 2022
@slooi
Copy link
Author

slooi commented Jul 21, 2022

Other pcs on my network can pip install packages without issues. If it really were the internet provider I would expect it to affect everyone on the network

@pfmoore
Copy link
Member

pfmoore commented Jul 21, 2022

It could be that your PC isn't correctly configured to allow Python to access the internet (this is common when proxies are involved). It's still not a pip issue.

On a semi-related note, you're installing "panda", which appears to be "A Python implementation of the Panda REST interface" last released in 2015. Is that correct? You're not trying to install "pandas" (the data analysis package) are you? I'd find it much more likely that anaconda has pandas than panda, for example.

@slooi
Copy link
Author

slooi commented Jul 21, 2022

It could be that your PC isn't correctly configured to allow Python to access the internet (this is common when proxies are involved). It's still not a pip issue.
I don't believe I'm using any proxies. Do you know anyway I could investigate further into this? I'm just on a normal house network I'm not on a corporate network if that helps.

And thanks for the heads up about the "pandas" not "panda" thing. Though I'm just trying to install any package at the moment. Pip installing used to work for me a year ago and now it suddenly seems to not work.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 21, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: question User question
Projects
None yet
Development

No branches or pull requests

3 participants