Import error: "No module named regex._regex_core"

Create issue
Issue #314 resolved
Thomas Waterman created an issue

I’m getting an import error related to the 2019.02.19 change. A plain import regex is broken.

Python 3.6.7 (default, Nov 16 2018, 22:33:19)
[GCC 6.3.0 20170516] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import regex
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.6/site-packages/", line 400, in <module>
    import regex._regex_core as _regex_core
ModuleNotFoundError: No module named 'regex._regex_core'; 'regex' is not a package

I suspect the issue is from this line:

Comments (6)

  1. Eli Schwartz

    regex 2019.02.20 seems to have been released without checking the source code into version control.

  2. Log in to comment