--- Python-3.11.2.old/Lib/importlib/metadata/__init__.py +++ Python-3.11.2/Lib/importlib/metadata/__init__.py @@ -624,6 +624,8 @@ @property def _normalized_name(self): """Return a normalized version of the name.""" + if self.name == None: + return "noname" return Prepared.normalize(self.name) @property