Closed krakatorange closed 1 year ago
Hi @krakatorange, I'm afraid you are asking the wrong person here. This is most probably a problem with the regex package itself. My library does not do any fancy stuff with this dependency, it just imports it. So please ask the maintainers of the regex package. Thank you.
To make this package work in AWS Lambda I downloaded the specific package below and zipped as a Lambda Layer (Lingua requires regex 2022.10.31):
This fixed my issue.
When deploying as a Layer to AWS Lambda and running a test, I receive this error:
[ERROR] Runtime.ImportModuleError: Unable to import module 'lambda_function': No module named 'regex._regex'
Runtime: python3.9 Architecture: x86_64
I tried with regex version 2022.10.31 and with latest version 2023.3.23 as well. All runs normally on local machine running 3.9.