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/regex.py", 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: https://bitbucket.org/mrabarnett/mrab-regex/commits/5d8b8bb2b64b696cdbaa7bdc0dce4b462d311134#Lregex_3/_regex_core.pyT21

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