-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Closed
Labels
S: needs triageIssues/PRs that need to be triagedIssues/PRs that need to be triagedtype: bugA confirmed bug or unintended behaviorA confirmed bug or unintended behavior
Milestone
Description
Description
pip wheel fails when parsing last_check due to lack of Z suffix support by datetime.fromisoformat().
It looks like the fromisoformat() call was added recently, and indeed there was concern in the PR about handling Z. @pfmoore @pgan
Expected behavior
pip install does not having an error parsing last_check
pip version
23.3.dev0
Python version
3.8
OS
linux
How to Reproduce
- git clone https://github.com/pypa/pip.git
- cd pip
- python3.8 -m venv venv
- source venv/bin/activate
- pip install -e .
- pip wheel -vv scipy==1.10.1
Output
WARNING: There was an error checking the latest version of pip.
See below for error
Traceback (most recent call last):
File "/Users/john/tmp/pip/src/pip/_internal/self_outdated_check.py", line 227, in pip_self_version_check
upgrade_prompt = _self_version_check_logic(
File "/Users/john/tmp/pip/src/pip/_internal/self_outdated_check.py", line 188, in _self_version_check_logic
remote_version_str = state.get(current_time)
File "/Users/john/tmp/pip/src/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-11T17:07:57Z'
(aside: an error should be logged as ERROR, not WARNING)
Code of Conduct
- I agree to follow the PSF Code of Conduct.
Metadata
Metadata
Assignees
Labels
S: needs triageIssues/PRs that need to be triagedIssues/PRs that need to be triagedtype: bugA confirmed bug or unintended behaviorA confirmed bug or unintended behavior