-
Notifications
You must be signed in to change notification settings - Fork 2.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
poetry 1.8.3 fails to install python wheel package with metadata 2.4 #9885
Comments
Please search for duplicates, please close |
Have the same bug |
I can confirm that this bit me. But it seems to go further back than |
Same issue using versions 1.8.3 and 1.8.4. |
But in our case, it occurs while adding the jsonschema library: https://pypi.org/project/jsonschema/ |
I am using 1.8.4 and get the exact the same error like "Unknown metadata version: 2.4" |
Seems related: #9195 |
And this one as well, which is linked from 9195: #9203 |
Please upgrade your poetry install, one of the dependencies needs updating (I think packaging). Easiest way is to reinstall. |
It is actually
should fix the issue, for
|
That's a nice hint, I'll try! However due recent changes in several distributions, upgrading system-bundled packages is prohibited unless you use system package manager for that, e.g. Thus for this method to work one need to install |
seems so, but unfortunately all those issues were closed due to inactivity but for the fix, and the code merged is only about 'safe-guards' against situations like I've stumbled upon. So, yeah, thank you very much, I'm happy to see proper exception instead of inappropriate one ;) But if anyhow possible, I believe Quote from Python Packaging Guide follows:
I mean 2.3/2.4 is Minor version change, it would so nice if |
There are installation instructions. If you just use pipx or the installer script, you do not have to worry about virtual environments.
Up to pkginfo 1.10, it did not handle unknown minor updates in a sensible way (see #9888 for details). Therefore, not allowing unknown METADATA versions (even minor updates) made sense. With pkginfo 1.11, it is handled better so we loosened the check for unknown METADATA versions to only fail on major version updates in #9888. By the way, we released 1.8.5 including this change yesterday. |
Hell, yeah! Guys, you're the best! |
Description
Poetry fails to add / lock package which is published with Metadata version 2.4.
I've stumbled upon that with the recent version
0.2.19
ofnh3
package, which was resolved as a transitive dependency oftwine
.Exception raises during
poetry lock
orpoetry update
, which blocks further usage is as follows:Workarounds
Add explicit version downgrade expression for specific package, in my example:
Poetry Installation Method
pipx
Operating System
Mac OS
Poetry Version
1.8.3
Poetry Configuration
Python Sysconfig
Example pyproject.toml
Poetry Runtime Logs
The text was updated successfully, but these errors were encountered: