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 jaraco
Recipients Florimond Manca, atuining, iamsav, jaraco, xtreak
Date 2019-10-02.14:09:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1570025370.76.0.129600307073.issue38342@roundup.psfhosted.org>
In-reply-to
Content
I've confirmed that the `metadata` directory doesn't exist in the repo. It also doesn't appear on my Python 3.8.0b4 installation on macOS:

```
cpython master $ ls /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/importlib/                                               
__init__.py            _bootstrap.py          abc.py                 metadata.py            util.py
__pycache__            _bootstrap_external.py machinery.py           resources.py
cpython master $ python3.8 -V                                                                                                                
Python 3.8.0b4
```

I installed b4 clean. I also installed 3.8.0rc1 over 3.8.0b4 and everything is fine.

It's possible that installing 3.8.0b4 over 3.8.0b3 would leave the old package lingering. Can you confirm that's how 3.8.0rc1 was installed?

I've crafted this command which should correct the situation in such an environment::

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)"

Please give that a try and see if it corrects the condition.
History
Date User Action Args
2019-10-02 14:09:30jaracosetrecipients: + jaraco, atuining, xtreak, iamsav, Florimond Manca
2019-10-02 14:09:30jaracosetmessageid: <1570025370.76.0.129600307073.issue38342@roundup.psfhosted.org>
2019-10-02 14:09:30jaracolinkissue38342 messages
2019-10-02 14:09:30jaracocreate