-
-
Notifications
You must be signed in to change notification settings - Fork 82
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
AttributeError: 'PathDistribution' object has no attribute '_normalized_name' #396
Comments
2 tasks
Fixed in #397 and scheduled for release in 4.13.0. |
This was referenced Oct 26, 2022
2 tasks
This was referenced Nov 28, 2023
rozhuk-im
added a commit
to rozhuk-im/freebsd-ports
that referenced
this issue
Sep 17, 2024
rozhuk-im
added a commit
to rozhuk-im/freebsd-ports
that referenced
this issue
Sep 17, 2024
rozhuk-im
added a commit
to rozhuk-im/freebsd-ports
that referenced
this issue
Sep 17, 2024
rozhuk-im
added a commit
to rozhuk-im/freebsd-ports
that referenced
this issue
Sep 17, 2024
rozhuk-im
added a commit
to rozhuk-im/freebsd-ports
that referenced
this issue
Sep 17, 2024
rozhuk-im
added a commit
to rozhuk-im/freebsd-ports
that referenced
this issue
Sep 17, 2024
fluffykhv
pushed a commit
to fluffykhv/freebsd-ports
that referenced
this issue
Oct 1, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When importlib_metadata introduced the name normalization in PathDistributions starting in v4.3, it introduced a subtle incompatibility in select environments.
In particular, if a provider uses an older importlib metadata (importlib_metadata < 4.3 or importlib.metadata on Python < 3.10), and in that provider they supply PathDistributions, calls to resolve entry points will fail when any distribution doesn't have a
_normalized_name
attribute.This issue was reported in several issues including:
find_distributions
in a custom Finder in python 3.8 pypa/setuptools#3319AttributeError: 'PathDistribution' object has no attribute '_normalized_name'
with setuptools 60.9.0+ pypa/setuptools#3452Perhaps importlib_metadata should provide a compatibility shim to honor name normalization in distributions not supplying it (or at least not crash).
The text was updated successfully, but these errors were encountered: