Regex not working
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 38/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- aws, python
- Domain
- build-system, cloud
Research direction
Start with the import chain in dateparser/init.py, date.py, regex.py, and _regex_core.py, then inspect the pre-built regex package used by lambda-packages. Reproduce the Python 3.6 import failure in AWS Lambda and verify that the packaged artifact provides a compatible _regex module; the issue is done when dateparser imports successfully there.
Written by the indexing model from the issue text.
Description
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):
File "/var/task/dateparser/__init__.py", line 4, in <module>
from .date import DateDataParser
File "/var/task/dateparser/date.py", line 8, in <module>
import regex as re
File "/var/task/regex.py", line 400, in <module>
import _regex_core
File "/var/task/_regex_core.py", line 21, in <module>
import _regex
ModuleNotFoundError: No module named '_regex'
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?
- Dominant language
- Shell
- Stars
- 728
- Forks
- 157
- PR merge metrics
- No merged PRs in 30d
Getting set up
We have not checked this project's setup files yet. Start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Miserlou/lambda-packages
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
Miserlou/lambda-packages#116 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 15/100
Miserlou/lambda-packages#115 ·
-
Difficulty 5/5 Over a week Newbie friendliness 15/100
Miserlou/lambda-packages#114 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
Miserlou/lambda-packages#111 · 1 comment · 8 reactions ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
Miserlou/lambda-packages#110 ·
All issues in Miserlou/lambda-packages
Similar issues
-
bot-found bug priority: P3
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
madenvel/KalinkaPlayer#179 ·
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
jbaruch/coding-policy#621 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
mattpocock/skills#1134 ·
-
area:build bug P3
Difficulty 1/5 Under an hour Newbie friendliness 92/100
uttrflow/uttrflow-swift#2506 ·
Maintainers usually reply within 1 day