This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Mariatta
Recipients BTaskaya, Dima.Tisnek, Florimond Manca, Mariatta, atuining, brett.cannon, iamsav, jaraco, xtreak
Date 2020-01-16.19:38:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1579203536.43.0.821539555247.issue38342@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2020-01-16 19:38:56Mariattasetrecipients: + Mariatta, brett.cannon, jaraco, atuining, Dima.Tisnek, xtreak, BTaskaya, iamsav, Florimond Manca
2020-01-16 19:38:56Mariattasetmessageid: <1579203536.43.0.821539555247.issue38342@roundup.psfhosted.org>
2020-01-16 19:38:56Mariattalinkissue38342 messages
2020-01-16 19:38:56Mariattacreate