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 desmondcheongzx
Recipients desmondcheongzx, mowgli, rudiejd
Date 2021-01-08.05:10:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1610082656.89.0.652315548786.issue42818@roundup.psfhosted.org>
In-reply-to
Content
Could you provide some information about the system you're running this on? I might be wrong, but this does seem like an issue with this copy of setuptools. From the Traceback, it seems that line 2196 of /usr/lib/python3/dist-packages/pkg_resources/__init__.py runs `loader = importer.find_spec(packageName)` when trying to handle the AttributeError exception. However, this line should instead have run `loader = importer.find_module(packageName)` based on the source code https://github.com/pypa/setuptools/blob/95a9c474d30acc729b536f9ad88ead7efab62c5d/pkg_resources/__init__.py#L2190-L2197

Git blame also tells me that this fall-back has been implemented for a few years now.

It also appears that the zipimporter.find_spec method is not implemented in Python3.9 and earlier. However, zipimporter.find_module has been implemented for at least Python3.8 onwards, if not earlier (https://github.com/python/cpython/blob/ca8e96d1edbeb536f58da91e607082463398fce1/Lib/zipimport.py#L139-L150).
History
Date User Action Args
2021-01-08 05:10:56desmondcheongzxsetrecipients: + desmondcheongzx, mowgli, rudiejd
2021-01-08 05:10:56desmondcheongzxsetmessageid: <1610082656.89.0.652315548786.issue42818@roundup.psfhosted.org>
2021-01-08 05:10:56desmondcheongzxlinkissue42818 messages
2021-01-08 05:10:56desmondcheongzxcreate