Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

search_dates does not work with aws python image 3.12 #1252

Open
anandsimer opened this issue Jan 31, 2025 · 0 comments
Open

search_dates does not work with aws python image 3.12 #1252

anandsimer opened this issue Jan 31, 2025 · 0 comments

Comments

@anandsimer
Copy link

I am using the dateparser.search.search_dates() method in 3.11 and 3.12 library locally and it works fine.

>>> print(sys.version)
3.12.0 (main, Jan 28 2025, 14:59:20) [Clang 16.0.0 (clang-1600.0.26.4)]
>>> from dateparser.search import search_dates
>>> search_dates('The first artificial Earth satellite was launched on 4 October 1957.', languages=['en'])
[('on 4 October 1957', datetime.datetime(1957, 10, 4, 0, 0))]

It works well with OS: Amazon Linux 2 and Runtime: 3.11
FROM public.ecr.aws/lambda/python:3.11

However, it does not work with new base image:
It returns None with OS: Amazon Linux 2023 and Runtime: 3.12
FROM public.ecr.aws/lambda/python:3.12

https://docs.aws.amazon.com/lambda/latest/dg/python-image.html -> Python base images.
I am using dateparser==1.2.0

@anandsimer anandsimer changed the title search_dates does not work aws python image 3.12 search_dates does not work with aws python image 3.12 Jan 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant