Skip to content

"AssertionError: SRE module mismatch" in /main/Lib/tokenize.py #124114

@iladshyan

Description

@iladshyan

Bug report

Bug description:

There is an AssertionError when running /main/Lib/tokenize.py.

python --version
Python 3.11.1

Here is the Traceback:
Traceback (most recent call last):
File "c:\Users<USER>\py\cpython\Lib\tokenize.py", line 33, in
import re
File "c:\Users<USER>\py\cpython\Lib\re_init_.py", line 126, in
from . import _compiler, _parser
File "c:\Users<USER>\py\cpython\Lib\re_compiler.py", line 18, in
assert _sre.MAGIC == MAGIC, "SRE module mismatch"
^^^^^^^^^^^^^^^^^^^
AssertionError: SRE module mismatch

I am somewhat new to this by the way.

CPython versions tested on:

CPython main branch

Operating systems tested on:

Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    pendingThe issue will be closed if no feedback is providedtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions