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

[BUG] There was an error checking the latest version of pip #11155

Closed
J8923 opened this issue May 23, 2022 · 13 comments
Closed

[BUG] There was an error checking the latest version of pip #11155

J8923 opened this issue May 23, 2022 · 13 comments
Labels
type: bug A confirmed bug or unintended behavior
Milestone

Comments

@J8923
Copy link

J8923 commented May 23, 2022

setuptools version

62.3.2

Python version

Python 3.8.10

OS

Windows 10

Additional environment information

No response

Description

Update the pip 22.1.1 and setuptools 62.3.2

Expected behavior

No warning message

How to Reproduce

  1. Setup python-3.8.10.exe
  2. Update setuptools 62.3.2
  3. Update pip 22.1.1
  4. python -m pip list
  5. Show "WARNING: There was an error checking the latest version of pip"

Output

D:\python -m pip list
Package Version


nidaqmx 0.6.2
numpy 1.22.4
pip 22.1.1
PyAudio 0.2.11
pyserial 3.5
PyVISA 1.11.3
pywin32 304
pywinusb 0.4.2
scipy 1.8.0
setuptools 62.3.2
six 1.16.0
typing_extensions 4.2.0
wheel 0.37.1
WARNING: There was an error checking the latest version of pip.

@CanDursun
Copy link

python -m pip install --upgrade pip
Worked for pip 22.1 to 22.1.1

@abravalheri
Copy link

Hi @J8923, thank you very much for reporting this. I have a few doubts, maybe you have an answer for some of them?

  • Does this work for earlier versions of setuptools?
  • If you invert the order and update setuptools after updating pip, does the error persist?
  • If you only update pip and not setuptools, does the error persist?

@Ngumi22
Copy link

Ngumi22 commented May 24, 2022

python -m pip install --upgrade pip
worked on mine

@Humphrey2004
Copy link

Worked

@domdfcoding
Copy link
Contributor

The cause of the warning is a bug in pip. It should be fixed by #11136

@dekoma4u
Copy link

python -m pip install --upgrade pip worked on mine

This eliminated the problem for me. Amazing.
Thanks buddy

@abravalheri
Copy link

Hi @J8923, I tried to replicate the problem, however I cannot simply install different versions of Python in the Windows machine I have available, so I resorted to using a Windows container.

The following script show the sequence of commands I have used trying to replicate the error you reported:

> docker run --rm -it -u ContainerAdministrator mcr.microsoft.com/powershell:lts-nanoserver-1809
# Windows containers require a Windows host correctly configured.
# The container tag version (e.g. 1809) depends on the version of the host and may require changes,
# please check https://docs.microsoft.com/en-us/virtualization/windowscontainers/deploy-containers/version-compatibility



netsh interface ip add dnsservers name="Ethernet" address=8.8.8.8 index=4
# A DNS is required for downloading content from the internet.
# Please make sure `name` matches the correct adapter (a list can be found using `ipconfig /all`).

Register-PackageSource -Name nuget.org -ProviderName NuGet -Location "https://api.nuget.org/v3/index.json" -Trusted
Install-Package python -MinimumVersion 3.8.10 -MaximumVersion 3.8.10
$env:Path += ";" + (Join-Path (Split-Path (Get-Package python | % source)) "tools") + ";"

python -m pip list
# No 'error checking the latest version of pip' warning

python -m pip install -U 'setuptools==62.3.2'
python -m pip list
# No 'error checking the latest version of pip' warning

python -m pip install -U 'pip==22.1.1'
python -m pip list
# No 'error checking the latest version of pip' warning

The error does not seems to show up.
Also based on the previous reports (thank you Dominic and CanDursun), it seems that this is not a bug in setuptools, so I am inclined to close this issue soon.
Please let me know if you have a different reproducer that unequivocally associates the problem with setuptools. You can create a modified version of my script above, for example.

lockable-dev referenced this issue in lockable-dev/lockable-py May 27, 2022
pip version 21.1 was throwing the following message:
`WARNING: There was an error checking the latest version of pip`

See: https://github.com/pypa/setuptools/issues/3333#issuecomment-1138425963
scottgigante-immunai referenced this issue in scottgigante-immunai/openproblems May 29, 2022
@Acture
Copy link

Acture commented May 30, 2022

The error does not seems to show up. Also based on the previous reports (thank you Dominic and CanDursun), it seems that this is not a bug in setuptools, so I am inclined to close this issue soon. Please let me know if you have a different reproducer that unequivocally associates the problem with setuptools. You can create a modified version of my script above, for example.

Hi @abravalheri , I've also encountered this issue a few weeks ago after installing a requirement.txt. I'm not sure if this issue was caused by that directly, and unfortunately, I didn't keep a copy of that. But perhaps you can try some requirement texts.

@pradyunsg
Copy link
Member

I'm moving this to pip's issue tracker, since that's where it belongs.

@pradyunsg pradyunsg reopened this May 31, 2022
@pradyunsg pradyunsg transferred this issue from pypa/setuptools May 31, 2022
@pradyunsg pradyunsg added the type: bug A confirmed bug or unintended behavior label May 31, 2022
@pradyunsg pradyunsg added this to the 22.1 milestone May 31, 2022
@pradyunsg
Copy link
Member

And, closing since #11136 has been merged, which fixes this.

@fdrandolfi-meli
Copy link

In my case
python3 -m pip install --upgrade pip

@pradyunsg
Copy link
Member

This is fixed in pip 21.1.2.

21.1 and 21.1.1 are both affected by this bug.

@app4g
Copy link

app4g commented Jun 18, 2022

➜ iOS Projects: python -m pip install --upgrade pip
Requirement already satisfied: pip in /Users/app4g/.pyenv/versions/3.9.1/lib/python3.9/site-packages (21.0.1)
Collecting pip
Downloading pip-22.1.2-py3-none-any.whl (2.1 MB)
|████████████████████████████████| 2.1 MB 141 kB/s
Installing collected packages: pip
Attempting uninstall: pip
Found existing installation: pip 21.0.1
Uninstalling pip-21.0.1:
Successfully uninstalled pip-21.0.1
Successfully installed pip-22.1.2
➜ iOS Projects: pip index
WARNING: pip index is currently an experimental command. It may be removed/changed in a future release without prior warning.
ERROR: Need an action (versions) to perform.
WARNING: There was an error checking the latest version of pip.

What am I doing wrong?

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 20, 2022
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