-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Inconsistent -
<> _
normalization makes actions/cache
fail
#10910
Comments
Maybe this was fixed in PR: #12044 |
I recently ran in this error while using latest pip so that PR did not resolve this. I don't think this issue really lies with pip but instead pkg_resources (which I think comes from setuptools). While error trace says
So I'd recommend moving this ticket to setuptools, improve pkg_resources to lookup extras in a way that handles normalization, and then update pip vendored pkg_resources. |
I think yt-dlp/yt-dlp#9682 was caused by the same issue. Reproduction steps:
Note that I was able to reproduce this using pip version 23.2.1 only. $ .venv/bin/pip install 'yt_dlp-2024.4.9-py3-none-any.whl[curl_cffi]'
Processing ./yt_dlp-2024.4.9-py3-none-any.whl (from yt-dlp==2024.4.9)
Requirement already satisfied: brotli in ./.venv/lib/python3.11/site-packages (from yt-dlp==2024.4.9->yt-dlp==2024.4.9) (1.1.0)
Requirement already satisfied: certifi in ./.venv/lib/python3.11/site-packages (from yt-dlp==2024.4.9->yt-dlp==2024.4.9) (2024.2.2)
Requirement already satisfied: mutagen in ./.venv/lib/python3.11/site-packages (from yt-dlp==2024.4.9->yt-dlp==2024.4.9) (1.47.0)
Requirement already satisfied: pycryptodomex in ./.venv/lib/python3.11/site-packages (from yt-dlp==2024.4.9->yt-dlp==2024.4.9) (3.20.0)
Requirement already satisfied: requests<3,>=2.31.0 in ./.venv/lib/python3.11/site-packages (from yt-dlp==2024.4.9->yt-dlp==2024.4.9) (2.31.0)
Requirement already satisfied: urllib3<3,>=1.26.17 in ./.venv/lib/python3.11/site-packages (from yt-dlp==2024.4.9->yt-dlp==2024.4.9) (2.2.1)
Requirement already satisfied: websockets>=12.0 in ./.venv/lib/python3.11/site-packages (from yt-dlp==2024.4.9->yt-dlp==2024.4.9) (12.0)
Requirement already satisfied: curl-cffi==0.5.10 in ./.venv/lib/python3.11/site-packages (from yt-dlp==2024.4.9->yt-dlp==2024.4.9) (0.5.10)
Requirement already satisfied: cffi>=1.12.0 in ./.venv/lib/python3.11/site-packages (from curl-cffi==0.5.10->yt-dlp==2024.4.9->yt-dlp==2024.4.9) (1.16.0)
Requirement already satisfied: charset-normalizer<4,>=2 in ./.venv/lib/python3.11/site-packages (from requests<3,>=2.31.0->yt-dlp==2024.4.9->yt-dlp==2024.4.9) (3.3.2)
Requirement already satisfied: idna<4,>=2.5 in ./.venv/lib/python3.11/site-packages (from requests<3,>=2.31.0->yt-dlp==2024.4.9->yt-dlp==2024.4.9) (3.7)
Requirement already satisfied: pycparser in ./.venv/lib/python3.11/site-packages (from cffi>=1.12.0->curl-cffi==0.5.10->yt-dlp==2024.4.9->yt-dlp==2024.4.9) (2.22)
yt-dlp is already installed with the same version as the provided wheel. Use --force-reinstall to force an installation of the wheel.
$ .venv/bin/python -m pip install 'pip==23.2.1'
Collecting pip==23.2.1
Using cached pip-23.2.1-py3-none-any.whl.metadata (4.2 kB)
Using cached pip-23.2.1-py3-none-any.whl (2.1 MB)
Installing collected packages: pip
Attempting uninstall: pip
Found existing installation: pip 24.0
Uninstalling pip-24.0:
Successfully uninstalled pip-24.0
Successfully installed pip-23.2.1
[notice] A new release of pip is available: 23.2.1 -> 24.0
[notice] To update, run: python -m pip install --upgrade pip
$ .venv/bin/pip install 'yt_dlp-2024.4.9-py3-none-any.whl[curl_cffi]'
Processing ./yt_dlp-2024.4.9-py3-none-any.whl
WARNING: yt-dlp 2024.4.9 does not provide the extra 'curl_cffi'
Requirement already satisfied: brotli in ./.venv/lib/python3.11/site-packages (from yt-dlp==2024.4.9) (1.1.0)
Requirement already satisfied: certifi in ./.venv/lib/python3.11/site-packages (from yt-dlp==2024.4.9) (2024.2.2)
Requirement already satisfied: mutagen in ./.venv/lib/python3.11/site-packages (from yt-dlp==2024.4.9) (1.47.0)
Requirement already satisfied: pycryptodomex in ./.venv/lib/python3.11/site-packages (from yt-dlp==2024.4.9) (3.20.0)
Requirement already satisfied: requests<3,>=2.31.0 in ./.venv/lib/python3.11/site-packages (from yt-dlp==2024.4.9) (2.31.0)
Requirement already satisfied: urllib3<3,>=1.26.17 in ./.venv/lib/python3.11/site-packages (from yt-dlp==2024.4.9) (2.2.1)
Requirement already satisfied: websockets>=12.0 in ./.venv/lib/python3.11/site-packages (from yt-dlp==2024.4.9) (12.0)
Requirement already satisfied: charset-normalizer<4,>=2 in ./.venv/lib/python3.11/site-packages (from requests<3,>=2.31.0->yt-dlp==2024.4.9) (3.3.2)
Requirement already satisfied: idna<4,>=2.5 in ./.venv/lib/python3.11/site-packages (from requests<3,>=2.31.0->yt-dlp==2024.4.9) (3.7)
yt-dlp is already installed with the same version as the provided wheel. Use --force-reinstall to force an installation of the wheel.
WARNING: There was an error checking the latest version of pip. |
Consolidating into #11445 |
Description
I'm encountering another variation of #10757.
In my
requirement .txt
I install:In my github action, when installing with
pip install -e .
, this work fine. However, when trying to cache in github action:Raises:
Somewhere,
array-types
got normalised toarray_types
, which makes the installation fail.Expected behavior
pip should be internally consistent when normalizing
-
<>_
(e.g.-
should be used every where).Currently
pip
sometimes normalize-
->_
which create failures during instalations.pip version
22.0.3
Python version
3.7
OS
Linux
How to Reproduce
I could only reproduce the issue on Github.
See: https://github.com/google-research/jax3d/runs/5198336972?check_suite_focus=true
Output
Code of Conduct
The text was updated successfully, but these errors were encountered: