2022.10.10 install fails with "inconsistent version: filename has '20.0.5', but metadata has '0.0.0'"
See original GitHub issueIssue description
pipenv install fails with below error in 2022.10.10, works ok in previous builds running 2022.10.4
Expected result
Iβm expecting it to install all of our libraries
Actual result
Seems to be failing on our (private) library called pygain-lib
because of some confusion around the version being 0.0.0
. However I canβt find anything in the tarball of that library referencing 0.0.0
.
ββββββββββββββββββββββββββββββββββββββββ 576.6/576.6 kB 2.9 MB/s eta 0:00:00
Collecting pygain-lib[gcs,graph,pubsub,server]==20.0.5
Downloading <PRIVATEURLREDACTED>/pygain-lib-20.0.5.tar.gz (576 kB)
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'done'
Discarding <PRIVATEURLREDACTED>/pygain-lib-20.0.5.tar.gz#md5=6e0535b3a29882d3ce9ae912a3d6a580 (from <URLREDACTED>/pygain-lib/): Requested pygain-lib==20.0.5 from <PRIVATEURLREDACTED>pygain-lib-20.0.5.tar.gz#md5=6e0535b3a29882d3ce9ae912a3d6a580 (from -r /var/folders/g3/kz23041j1q78y0p7kwbtmxb00000gn/T/pipenv-i76yxeuz-requirements/pipenv-6g925189-hashed-reqs.txt (line 64)) has inconsistent version: filename has '20.0.5', but metadata has '0.0.0'
WARNING: Requested pygain-lib[gcs,graph,pubsub,server]==20.0.5 from <PRIVATEURLREDACTED>/pygain-lib-20.0.5.tar.gz#md5=6e0535b3a29882d3ce9ae912a3d6a580 (from -r /var/folders/g3/kz23041j1q78y0p7kwbtmxb00000gn/T/pipenv-i76yxeuz-requirements/pipenv-6g925189-hashed-reqs.txt (line 64)), but installing version 0.0.0
ERROR: Ignored the following versions that require a different python version: 2.7 Requires-Python >=3.8; 2.7.1 Requires-Python >=3.8; 2.7rc1 Requires-Python >=3.8; 2.8 Requires-Python >=3.8; 2.8.1 Requires-Python >=3.8; 2.8.1rc1 Requires-Python >=3.8; 2.8.2 Requires-Python >=3.8; 2.8.3 Requires-Python >=3.8; 2.8.4 Requires-Python >=3.8; 2.8.5 Requires-Python >=3.8; 2.8.6 Requires-Python >=3.8; 2.8.7 Requires-Python >=3.8; 2.8rc1 Requires-Python >=3.8
ERROR: Could not find a version that satisfies the requirement pygain-lib[gcs,graph,pubsub,server]==20.0.5 (from versions: 0.0.0, 16.0.2, 16.0.3, 16.1.0, 16.1.1, 16.1.2, 16.1.3, 16.1.4, 16.1.5, 16.2.0, 16.2.1, 16.2.2, 16.2.3, 16.2.4, 16.2.5, 16.2.6, 16.2.7, 16.2.8, 16.3.0, 16.3.1, 16.4.0, 16.4.1, 16.4.2, 16.5.0, 16.5.1, 16.5.2, 16.5.3, 16.5.4, 16.5.5, 16.5.6, 16.5.7, 16.5.8, 16.5.9, 16.5.10, 16.5.11, 16.5.12, 16.5.13, 16.5.14, 16.5.15, 16.5.16, 16.5.17, 16.5.18, 16.5.19, 16.6.0, 16.6.1, 16.6.2, 16.6.3, 16.6.4, 16.6.5, 16.6.6, 16.6.7, 16.6.8, 16.6.9, 16.6.10, 16.6.11, 16.7.0, 16.7.1, 16.7.2, 16.7.3, 16.7.4, 16.7.5, 16.7.6, 16.7.7, 16.7.8, 16.7.9, 16.7.10, 17.0.0, 17.0.1, 17.0.2, 17.0.3, 17.1.0, 17.1.1, 17.2.0, 17.2.1, 17.2.2, 17.2.3, 17.2.4, 17.2.5, 17.2.6, 17.2.7, 17.2.8, 17.2.9, 17.2.10, 17.2.11, 17.2.12, 17.2.13, 18.0.5, 18.0.6, 18.0.7, 18.0.8, 18.0.9, 18.0.10, 18.1.0, 18.1.1, 18.2.0, 18.3.0, 18.3.1, 18.3.2, 18.3.3, 18.3.4, 18.4.0, 18.4.1, 18.4.2, 18.4.3, 18.4.4, 18.4.5, 18.4.6, 18.4.7, 18.4.8, 18.4.9, 19.0.0, 19.0.1, 19.0.2, 19.0.3, 19.0.4, 19.0.5, 19.0.6, 19.1.0, 19.1.1, 19.1.2, 19.1.3, 19.2.0, 19.2.1, 19.2.2, 19.2.3, 19.2.4, 20.0.0, 20.0.1, 20.0.2, 20.0.3, 20.0.4, 20.0.5)
ERROR: No matching distribution found for pygain-lib[gcs,graph,pubsub,server]==20.0.5
Steps to replicate
(this works fine if I pin to 2022.10.4)
- Upgrade from 2022.10.4 to 2022.10.10
pipenv install --dev -v
- get error listed above
Iβd be happy to provide pipenv --support
output in a non-public place to avoid disclosing any info here
Issue Analytics
- State:
- Created a year ago
- Comments:8
Top Results From Across the Web
python - pip has problems with metadata - Stack Overflow
I'm running now: pip install -U pip and getting: (...) has inconsistent version: filename has '22.1.2', but metadata has '22.1.2' and pip goesΒ ......
Read more >inconsistent version for every package Β· Issue #10929 Β· pypa/pip
Description Running python -m pip install results in pip trying to ... has inconsistent version: filename has '22.0.4', but metadata has ...
Read more >Cannot install packages with pip - error with inconsistent ...
I recently have an issue trying to install anything with pip. ... has inconsistent version: filename has '22.0.4', but metadata has '22.0.4'Β ...
Read more >Changelog - pip documentation v22.3.1
Fix an issue where the output saying that a package was installed would report the old version instead of the new version during...
Read more >Unable to install package using pip due to different version in ...
I've bee unable to install any package using pip due to some version issues in the metadata. But it seems to be a...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
pipenv==2022.10.11
is released and reverts back to build isolation by default, since it is possible for users to pass--extra-pip-args="--no-build-isolation"
but it is not possible to retract it if it is supplied by default, this was part of the decision.I can confirm that this resolved the issue for me. big thank you to @matteius