-
-
Notifications
You must be signed in to change notification settings - Fork 30.6k
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
BUG: [py3.11] AttributeError: 'PathDistribution' object has no attribute '_normalized_name' #98706
Comments
In the meantime, a work-around is to install |
It looks like applying python/importlib_metadata@3e52430 should do the trick. Because #97785 is already in main, the changes will need to be applied to the 3.11 branch directly. |
I note that 4.12.0 also includes changes that I'd previously not backported to Python 3.11 (#94270). @pablogsal Are you okay with changes from importlib_metadata 4.11.4-4.13.0 being applied as a bugfix for Python 3.11? |
I've applied the changes to the 3.11 branch with:
|
This shows up while trying to run the numpy test suite with python 3.11 and the newest pytest etc.
More precisely, the error appears in the vendored import_lib module
Turns out this is python/importlib_metadata#396 (fixed in 4.13.0), where @jaraco noted:
Unfortunately, the vendored version present in python 3.11 is only at 4.11.3, hence does not carry the fix.
The text was updated successfully, but these errors were encountered: