Closed
Description
Bug report
A clear and concise description of what the bug is.
Include a minimal, reproducible example (https://stackoverflow.com/help/minimal-reproducible-example), if possible.
I don't know how to describe this bug, see
The problem is with the following code:
cpython/Lib/importlib/metadata/__init__.py
Lines 866 to 872 in 95c55a6
@staticmethod
def normalize(name):
"""
PEP 503 normalization plus dashes as underscores.
"""
return re.sub(r"[-_.]+", "-", name).lower().replace('-', '_')
The fixes are as follows:
Guess the reason is that in some cases, name may be a None, if no judgment is made, an exception will always be thrown under certain conditions, which causes an exception in my gentoo regardless of any python3.10 library installed
Your environment
gentoo/Linux