AttributeError: module 'regex' has no attribute 'compile' and cannot run the code.
mbukowski-splunk opened this issue · 0 comments
mbukowski-splunk commented
In a fresh env with python 3.10 when I import datefinder I get:
File "../venv/lib/python3.10/site-packages/datefinder/init.py", line 6, in
from .constants import (
File "../venv/lib/python3.10/site-packages/datefinder/constants.py", line 132, in
DATE_REGEX = re.compile(
AttributeError: module 'regex' has no attribute 'compile'
and I am not able to run the code.
I have reinstalled regex and had similar problem on python 3.9.
Please advice.