Skip to content

Python 3.14 no longer has _ERR_MSG that can be imported from importlib._bootstrap #20628

@nth10sd

Description

@nth10sd

from importlib._bootstrap import _ERR_MSG, _exec, _load, _builtin_from_name

$ python3.13 --version ; python3.13 -c "from importlib._bootstrap import _ERR_MSG"
Python 3.13.5
$ python3.14 --version ; python3.14 -c "from importlib._bootstrap import _ERR_MSG"
Python 3.14.0
Traceback (most recent call last):
  File "<string>", line 1, in <module>
    from importlib._bootstrap import _ERR_MSG
ImportError: cannot import name '_ERR_MSG' from 'importlib._bootstrap' (/usr/lib/python3.14/importlib/_bootstrap.py)

Python 3.14 no longer has _ERR_MSG that can be imported from importlib._bootstrap.

This occurs on the current main branch, as well as recent versions 2.23.2 and 2.23.1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions