pnuckowski/aioresponses

ModuleNotFoundError: No module named 'pkg_resources' (Python 3.11)

jacebrowning opened this issue · 2 comments

Starting in Python 3.8, importlib is recommended over pkg_resources: https://docs.python.org/3/library/importlib.metadata.html?highlight=pkg_resources

pkg_resources is no longer included in some distributions of Python 3.10+ including CircleCI Python images.

And from looking at this setuptools commit, pkg_resources has been deprecated since setuptools v67.5.0, so for those of us who run pytest with filterwarnings = ["error"], that deprecation warning breaks the pytest.

Fixed in #241