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

2020-02-21 Thread Manjusaka
Manjusaka added the comment: Hello Mariatta I have tested the code below on 3.8.1 what's installed by pyenv on my Mac from importlib.metadata import version, requires, files version('requests') it works correctly. I think it depends on the tool what's used to install python --

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

2020-01-16 Thread Jason R. Coombs
Jason R. Coombs added the comment: Given that this issue only affects those who upgraded from beta versions, I'm inclined to say it shouldn't be part of the installer, and that the long tail of users affected probably can track it down here. I don't feel strongly about it though.

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

2020-01-16 Thread Mariatta
Mariatta 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

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

2019-10-02 Thread Dima Tisnek
Change by Dima Tisnek : -- nosy: +Dima.Tisnek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2019-10-02 Thread Brett Cannon
Brett Cannon added the comment: Closing as not a bug as this seems to be an issue from installing over a b3 or earlier build where the importlib/metadata/ directory gets left behind and thus take priority in import over importlib/metadata.py. -- nosy: +brett.cannon resolution: ->

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

2019-10-02 Thread Batuhan
Batuhan added the comment: https://gitlab.com/python-devs/importlib_metadata/issues/92 -- nosy: +BTaskaya ___ Python tracker ___

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

2019-10-02 Thread Anthony Tuininga
Anthony Tuininga added the comment: Yes. I had tried b3 earlier, installed b4 over b3 and then rc1 over b4. Removing the cruft using the command you specified caused the problem to go away. -- ___ Python tracker

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

2019-10-02 Thread Jason R. Coombs
Jason R. Coombs added the comment: 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/

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

2019-10-02 Thread Jason R. Coombs
Jason R. Coombs added the comment: I believe importlib/metadata/__init__ was moved to importlib.metadata. I’ll inspect the repo for correctness, but there may be another issue with the old files lingering. -- ___ Python tracker

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

2019-10-02 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: The library was synced with https://bugs.python.org/issue38121 which seems to be related to this. -- nosy: +xtreak ___ Python tracker

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

2019-10-02 Thread Florimond Manca
Florimond Manca added the comment: Can confirm this on 3.8.0rc1+ / macOS Mojave: ```console $ python -c "import importlib.metadata; print(list(importlib.metadata.distributions()))" Traceback (most recent call last): File "", line 1, in File

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

2019-10-02 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +jaraco ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2019-10-02 Thread Александр Семенов
Александр Семенов added the comment: on windows ```C:\>py -c "import sys;from importlib.metadata import version, requires, files;print(sys.version);print(version('requests'))" 3.8.0b4 (tags/v3.8.0b4:d93605d, Aug 29 2019, 23:21:28) [MSC v.1916 64 bit (AMD64)] 2.22.0 ``` -- nosy:

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

2019-10-01 Thread Anthony Tuininga
New submission from Anthony Tuininga : Running the suggested code found at https://docs.python.org/3.8/whatsnew/3.8.html regarding the new importlib.metadata module from importlib.metadata import version, requires, files version('requests') yields the error Traceback (most recent call