[issue38342] ImportError: cannot import name 'MetadataPathFinder' from 'importlib.metadata'

Mariatta report at bugs.python.org
Thu Jan 16 14:38:56 EST 2020


Mariatta <mariatta at python.org> added the comment:

Just wanted to add that I got the same error in Python 3.8.1. 

I ran the script that @Jaraco wrote above:

python -c "import importlib.metadata, shutil, pathlib; file = pathlib.Path(importlib.metadata.__file__); str(file).endswith('__init__.py') and shutil.rmtree(file.parent) and print('removed', file.parent)"

I wonder if the fix (e.g. running the script above) should be more visible, perhaps in some documentation somewhere, instead of having to dig this up from the bugtracker.

Is it possible for the Python installer itself to execute that script?

Thanks.

----------
nosy: +Mariatta

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38342>
_______________________________________


More information about the Python-bugs-list mailing list