Skip to content

Error while pip checks for latest version #12367

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
ngoldbaum opened this issue Oct 19, 2023 · 1 comment
Closed
1 task done

Error while pip checks for latest version #12367

ngoldbaum opened this issue Oct 19, 2023 · 1 comment
Labels
S: needs triage Issues/PRs that need to be triaged type: bug A confirmed bug or unintended behavior

Comments

@ngoldbaum
Copy link

Description

When I do any operation with pip, I get a message at the end:

WARNING: There was an error checking the latest version of pip.

If I ask pip for verbose output, I additionally get the following traceback:

Traceback (most recent call last):
  File "/home/nathan/.pyenv/versions/3.10.9-debug/lib/python3.10/site-packages/pip/_internal/self_outdated_check.py", line 227, in pip_self_version_check
    upgrade_prompt = _self_version_check_logic(
  File "/home/nathan/.pyenv/versions/3.10.9-debug/lib/python3.10/site-packages/pip/_internal/self_outdated_check.py", line 188, in _self_version_check_logic
    remote_version_str = state.get(current_time)
  File "/home/nathan/.pyenv/versions/3.10.9-debug/lib/python3.10/site-packages/pip/_internal/self_outdated_check.py", line 76, in get
    last_check = datetime.datetime.fromisoformat(self._state["last_check"])
ValueError: Invalid isoformat string: '2023-10-18T18:43:19Z'
Removed build tracker: '/tmp/pip-build-tracker-xxhyaxjd'

Expected behavior

No message about failing to check for the latest pip version

pip version

23.3

Python version

3.10.9

OS

Ubuntu 22.04

How to Reproduce

  1. Run pip install -U pip -vvvv

Output

± pip install -U pip -vvvv
Using pip 23.3 from /home/nathan/.pyenv/versions/3.10.9-debug/lib/python3.10/site-packages/pip (python 3.10)
Non-user install because site-packages writeable
Created temporary directory: /tmp/pip-build-tracker-xxhyaxjd
Initialized build tracking at /tmp/pip-build-tracker-xxhyaxjd
Created build tracker: /tmp/pip-build-tracker-xxhyaxjd
Entered build tracker: /tmp/pip-build-tracker-xxhyaxjd
Created temporary directory: /tmp/pip-install-aj5gtm15
Created temporary directory: /tmp/pip-ephem-wheel-cache-peaid6rp
Requirement already satisfied: pip in /home/nathan/.pyenv/versions/3.10.9-debug/lib/python3.10/site-packages (23.3)
1 location(s) to search for versions of pip:

Code of Conduct

@ngoldbaum ngoldbaum added S: needs triage Issues/PRs that need to be triaged type: bug A confirmed bug or unintended behavior labels Oct 19, 2023
@ngoldbaum
Copy link
Author

Missed #12357

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

No branches or pull requests

1 participant