Skip to content

ImportWarning: VendorImporter.exec_module() not found; falling back to load_module() #375

@blueyed

Description

@blueyed

With Python 3.10-dev (since python/cpython@2de5097ba4 (python/cpython#23469)) an ImportWarning is issued when exec_module is missing.

% python -Werror -c 'import pkg_resources'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/tmp/venv/lib/python3.10/site-packages/pkg_resources/__init__.py", line 73, in <module>
    from pkg_resources.extern import appdirs
  File "<frozen importlib._bootstrap>", line 1026, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1005, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 681, in _load_unlocked
ImportWarning: VendorImporter.exec_module() not found; falling back to load_module()
Package    Version
---------- -------
packaging  20.8
pip        20.3.3
pyparsing  2.4.7
setuptools 51.0.0

Python 3.10.0a3+ (heads/master:c56f9df049, Dec 19 2020, 19:50:13)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions