-
-
Notifications
You must be signed in to change notification settings - Fork 423
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
2.16.0 regression - KeyError: 'Requires-Python'
crash when running pdm add
in github actions on python 3.8
#2974
Comments
This is related to the release of importlib-metadata 8.0 today: https://importlib-metadata.readthedocs.io/en/latest/history.html#deprecations-and-removals
pdm's code should presumably be rewritten to catch the KeyError. |
@JelleZijlstra I also noticed today in one of my CI workflows. Thanks for finding the root cause. |
I am working on a fix (well, mostly working on getting pdm's test suite running). |
@JelleZijlstra, great, thanks! We're also experiencing this issue: And perhaps a similar one: |
As a workaround, you can limit |
@frostming What version of pdm is this fixed with? I'm on version 2.12.2 and I'm receiving the error reported originally. |
@ajmedeio please just report errors if there are any |
when running the
pdm add
command on python 3.8 in github actions, it crashes with the following error:i can't reproduce this locally, but it happens in github actions (windows-latest, ubuntu-latest and macos-latest) on python 3.8 but not 3.12. this bug seems to have been introduced in pdm 2.16.0
Make sure you run commands with
-v
flag before pasting the output.Steps to reproduce
Actual behavior
see github actions for the full output: https://github.com/DetachHead/test/actions/runs/9671949594/job/26683445102
Expected behavior
no error
Environment Information
The text was updated successfully, but these errors were encountered: