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 dont work but curl does. #11094

Closed
Mastergamer433 opened this issue May 7, 2022 · 2 comments
Closed

Pip install dont work but curl does. #11094

Mastergamer433 opened this issue May 7, 2022 · 2 comments
Labels
type: bug A confirmed bug or unintended behavior

Comments

@Mastergamer433
Copy link

Description

My environment

I have Win 11, Edition Windows 11 home, version 21H2, OS build 22000.613, experience Windows Feature Experience Pack 100.22000.613.0 on my computer.
I have a intel core i5-9400F CPU @ 2.90GHz with 16 GB installed ram.
The python runtime and pip is installed on a 512 GB ssd.

Yeah i have many network interfaces, but i dont think pip is using one of the others.
And for clarification, the adapter that should be used is the one that is called Ethernet adapter Ethernet which has the ipv4 address of 192.168.21.38.

Expected behavior

I expect that the pip program will install the package installed.

pip version

22.0.4

Python version

3.10.4

OS

Windows 11 Home

How to Reproduce

  1. Get the package pygame with pip install pygame
  2. And there you have the error
  3. but i think this is user specific.

Output

`pip install pygame`:

Collecting pygame
  WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x000001EA9B810820>: Failed to establish a new connection: [Errno 11004] getaddrinfo failed')': /packages/33/63/3358b79ac62cc67e4051add2f3da13f15c92050c7acc1b73538b7bf32d95/pygame-2.1.2-cp310-cp310-win_amd64.whl
  WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x000001EA9B810AF0>: Failed to establish a new connection: [Errno 11004] getaddrinfo failed')': /packages/33/63/3358b79ac62cc67e4051add2f3da13f15c92050c7acc1b73538b7bf32d95/pygame-2.1.2-cp310-cp310-win_amd64.whl
  WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x000001EA9B810D60>: Failed to establish a new connection: [Errno 11004] getaddrinfo failed')': /packages/33/63/3358b79ac62cc67e4051add2f3da13f15c92050c7acc1b73538b7bf32d95/pygame-2.1.2-cp310-cp310-win_amd64.whl
  WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x000001EA9B810FD0>: Failed to establish a new connection: [Errno 11004] getaddrinfo failed')': /packages/33/63/3358b79ac62cc67e4051add2f3da13f15c92050c7acc1b73538b7bf32d95/pygame-2.1.2-cp310-cp310-win_amd64.whl
  WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x000001EA9B811240>: Failed to establish a new connection: [Errno 11004] getaddrinfo failed')': /packages/33/63/3358b79ac62cc67e4051add2f3da13f15c92050c7acc1b73538b7bf32d95/pygame-2.1.2-cp310-cp310-win_amd64.whl
ERROR: Could not install packages due to an OSError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Max retries exceeded with url: /packages/33/63/3358b79ac62cc67e4051add2f3da13f15c92050c7acc1b73538b7bf32d95/pygame-2.1.2-cp310-cp310-win_amd64.whl (Caused by NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x000001EA9B8114B0>: Failed to establish a new connection: [Errno 11004] getaddrinfo failed'))

curl https://pypi.org/simple/flask-bcrypt:

<title>Links for Flask-Bcrypt</title>

Links for Flask-Bcrypt

Flask-Bcrypt-0.1.tar.gz
Flask-Bcrypt-0.2.tar.gz
Flask-Bcrypt-0.3.tar.gz
Flask-Bcrypt-0.3.1.tar.gz
Flask-Bcrypt-0.3.2.tar.gz
Flask-Bcrypt-0.4.tar.gz
Flask-Bcrypt-0.5.tar.gz
Flask-Bcrypt-0.5.1.tar.gz
Flask-Bcrypt-0.5.2.tar.gz
Flask-Bcrypt-0.6.0.tar.gz
Flask-Bcrypt-0.6.2.tar.gz
Flask-Bcrypt-0.7.0.tar.gz
Flask-Bcrypt-0.7.1.tar.gz
Flask-Bcrypt-1.0.0.tar.gz
Flask_Bcrypt-1.0.0-py3-none-any.whl
Flask-Bcrypt-1.0.1.tar.gz
Flask_Bcrypt-1.0.1-py3-none-any.whl
```

ipconfig

C:\Users\tekni>ipconfig                                                                                                                                                                                                                         Windows IP Configuration                                                                                                                                                                                                                                                                                                                                                Unknown adapter Tailscale:                                                                                                                                                                                                                         Connection-specific DNS Suffix  . :                                                                                     IPv6 Address. . . . . . . . . . . : fd7a:115c:a1e0:ab12:4843:cd96:6263:9d6a                                             Link-local IPv6 Address . . . . . : fe80::99d0:ec2d:b2e7:536b%6                                                         IPv4 Address. . . . . . . . . . . : 100.99.157.106                                                                      Subnet Mask . . . . . . . . . . . : 255.255.255.255                                                                     Default Gateway . . . . . . . . . :                                                                                                                                                                                                          Unknown adapter Local Area Connection 3:                                                                                                                                                                                                           Media State . . . . . . . . . . . : Media disconnected                                                                  Connection-specific DNS Suffix  . :                                                                                                                                                                                                          Ethernet adapter Ethernet:                                                                                                                                                                                                                         Connection-specific DNS Suffix  . :                                                                                     Link-local IPv6 Address . . . . . : fe80::1525:9bac:ef14:3a24%15                                                        IPv4 Address. . . . . . . . . . . : 192.168.21.38                                                                       Subnet Mask . . . . . . . . . . . : 255.255.255.0                                                                       Default Gateway . . . . . . . . . : 192.168.21.1                                                                                                                                                                                             Ethernet adapter VirtualBox Host-Only Network:                                                                                                                                                                                                     Connection-specific DNS Suffix  . :                                                                                     Link-local IPv6 Address . . . . . : fe80::c531:701f:a563:2a91%2                                                         Autoconfiguration IPv4 Address. . : 169.254.42.145                                                                      Subnet Mask . . . . . . . . . . . : 255.255.0.0                                                                         Default Gateway . . . . . . . . . :                                                                                                                                                                                                          Unknown adapter Local Area Connection 2:                                                                                                                                                                                                           Media State . . . . . . . . . . . : Media disconnected                                                                  Connection-specific DNS Suffix  . :                                                                                                                                                                                                          Ethernet adapter ZeroTier One [d5e5fb653703a42e]:                                                                                                                                                                                                  Connection-specific DNS Suffix  . :                                                                                     Link-local IPv6 Address . . . . . : fe80::584:55d:8c6d:3344%10                                                          IPv4 Address. . . . . . . . . . . : 10.147.18.2                                                                         Subnet Mask . . . . . . . . . . . : 255.255.255.0                                                                       Default Gateway . . . . . . . . . : 25.255.255.254                                                                                                                                                                                           Ethernet adapter vEthernet (WSL):                                                                                                                                                                                                                  Connection-specific DNS Suffix  . :                                                                                     Link-local IPv6 Address . . . . . : fe80::1835:6f5e:4668:7f06%38                                                        IPv4 Address. . . . . . . . . . . : 172.19.240.1                                                                        Subnet Mask . . . . . . . . . . . : 255.255.240.0                                                                       Default Gateway . . . . . . . . . :                                                                                                                                                                                                          C:\Users\tekni>


### Code of Conduct

- [X] I agree to follow the [PSF Code of Conduct](https://www.python.org/psf/conduct/).
@Mastergamer433 Mastergamer433 added S: needs triage Issues/PRs that need to be triaged type: bug A confirmed bug or unintended behavior labels May 7, 2022
@notatallshaw
Copy link
Member

curl supports far more features out of the box than standard Python HTTP libraries like requests (which pip relies on), such as automatic proxy detection, system trust store support, and native secure channel implementation.

Rule of thumb is if you get get requests working you should be able to get `pip working with the same configuration options.

@Mastergamer433
Copy link
Author

What can i say?
its always dns

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 10, 2022
@pradyunsg pradyunsg removed the S: needs triage Issues/PRs that need to be triaged label Mar 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug A confirmed bug or unintended behavior
Projects
None yet
Development

No branches or pull requests

3 participants