akoumjian / datefinder

Find dates inside text using Python and get back datetime objects
http://datefinder.readthedocs.org/en/latest/
MIT License
635 stars 165 forks source link

AttributeError: module 'regex' has no attribute 'compile' and cannot run the code. #175

Open mbukowski-splunk opened 2 years ago

mbukowski-splunk commented 2 years ago

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.