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

No module named 'regex._regex' #142

Closed
krakatorange opened this issue Apr 12, 2023 · 2 comments
Closed

No module named 'regex._regex' #142

krakatorange opened this issue Apr 12, 2023 · 2 comments

Comments

@krakatorange
Copy link

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.

@pemistahl
Copy link
Owner

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.

@krakatorange
Copy link
Author

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):

https://files.pythonhosted.org/packages/de/82/1e868572aaa6b5468f07512fd184650bf9ade15943d4f1ae83d0dc512872/regex-2022.10.31-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

This fixed my issue.

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

2 participants