-
Notifications
You must be signed in to change notification settings - Fork 163
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
Regex not working #70
Comments
Having the same issue. Using MayaDT which uses dateparser. Any workarounds until the lambda-package is updated? Python 3.6.3 and Zappa 0.45.1
|
None known, for now, but I also haven't done much research into this. Left this here in the hopes that the maintainer(s) of lambda-packages would have a quick fix. |
fyi, same problem after |
I'm just having the same issue right now when upgrade a project from python 2.7 to 3.6, zappa==0.45.1 |
As best I can tell, Regex maintains source code for py2 and py3 in different directories (the "regex_2" and "regex_3" directories, check them out here ), and the Seems like we definitely need a version compiled for python 3.6. I just provisioned a new EC2 instance running Amazon Linux (with ideas of compiling for python 3 on that machine, copying compiled binary back to local, uploading+testing on Lambda, and submitting PR with compiled binary), but I'm running into issues on my end, and don't think I'll be able to complete this quickly. If someone else knows how to get this done, feel free. |
Is there any update to this issue? I just got bit by this while trying to install a project with Django Zinnia blog to AWS Lambda using Zappa. |
I submitted a pull request that attempts to fix this: #76 |
Hi there, issue still seems to exist. I get the "No module named '_regex' " when I try to import dateparser on aws lambda (both on python3 and 2.7) Is there a workaround? |
I am also presently seeing "No module named '_regex'" on Python 3 when including dateparser with Lambda and would be interested in an answer if anyone's found one. |
For those considering workarounds, my answer was including the dateutil.parser library, which functions in Lambda and will find dates, in place of the dateparser library. |
I've ran into this issue recently and for me I found that it was related to a 'Invalid ELF header' instead. To fix, I used a docker container to build '_regex' in Python 2.7 for AWS's Debian-based Linux platform.
I hope this saves time for anyone who has this issue in the future. |
Same issue with Python 3.7 in AWS Lambda. Any updates ? |
i am also getting exactly the same error message in aws lambda |
Also got problem was next: my OS use Python 3.6 as default Python interpreter And I've install requirements via after installing Python 3.7 from source and change command above on hope it helps for someone |
note, doing the command from @chinskiy has an unattended consequence, the binary installed by your requirements.txt now have also if you were already on python3.7, it does not solve the problem |
Any solution to this? I am using
error:
I have regex installed. And don't know what's causing the problem. I used to be able to load using the same code but now I'm getting this error. |
This issue still exist. |
I had the same issue when deploying to AWS Lambda and the solution was to use the same version of Python while building dependency packages as is on AWS Lambda. |
Hey, |
I had same problem due to dateparser but resolved but building it using lambda docker runtime image
|
ANy update on this? |
Hi @hafizSiddiq7675 the newly updated repo is here (https://github.com/zappa/Zappa). I didn't see this issue there so you could create one there and reference this issue there. |
When trying to use the
dateparser
module w/ AWS Lambda (Python 3.6, Zappa 0.44.3), I'm seeing an error in CloudWatch, after trying to import dateparser (the upper portion of this trace has been omitted):Regex has versions newer than the one currently in lambda-packages (lambda-packages: 2016.8.27, regex (current): 2017.12.12), and appears to only be pre-built for python 2.7. Perhaps the solution is simply upgrading the pre-built regex? Including a pre-built version for python 3.6?
The text was updated successfully, but these errors were encountered: