Regex not working
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 38/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- aws, python
- 领域
- build-system, cloud
调研方向
先从 dateparser/init.py、date.py、regex.py 和 _regex_core.py 中的导入链开始,然后检查 lambda-packages 使用的预构建 regex 包。在 AWS Lambda 中复现 Python 3.6 的导入失败,并验证打包的构件提供了兼容的 _regex 模块;当 dateparser 能够在那里成功导入时,该 issue 就完成了。
由索引模型根据 Issue 内容生成。
描述
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?
- 主要语言
- Shell
- 星标
- 728
- 派生
- 157
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
Miserlou/lambda-packages 的其他 Issue
-
难度 5/5 一周以上 新手友好度 20/100
Miserlou/lambda-packages#116 ·
-
难度 4/5 3-5 天 新手友好度 15/100
Miserlou/lambda-packages#115 ·
-
难度 5/5 一周以上 新手友好度 15/100
Miserlou/lambda-packages#114 ·
-
难度 3/5 1-2 天 新手友好度 35/100
Miserlou/lambda-packages#111 · 1 条评论 · 8 个 reaction ·
-
难度 4/5 3-5 天 新手友好度 35/100
Miserlou/lambda-packages#110 ·
查看 Miserlou/lambda-packages 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 2 天内回复
-
Installer computes steamid3 as -76561197960265728 when loginusers.vdf uses lowercase "timestamp"未关闭bug
难度 2/5 1-3 小时 新手友好度 78/100
-
[Bug]: armbian-firstlogin: preset Wi-Fi key with " or \ breaks netplan config可能已有人在做 @jfcabral 今天认领。 未关闭Bug Good first issue
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 1 天内回复
-
package-update
难度 2/5 1-3 小时 新手友好度 62/100
oSoWoSo/vOid_Community_repOsitory#417 ·
维护者通常 1 天内回复