No module named pyasn1.codec.der
还没有人认领这个 Issue。
- #50 来自 @gene1wood —— 已关闭,未合并
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 25/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- aws, cryptography, python
- 领域
- build-system, cloud, security
调研方向
首先检查 lambda_packages/cryptography 和提取出的 cryptography-1.4.tar.gz 内容;然后使用所述的 CloudFormation package 重现 AWS Lambda 部署,并检查 CloudWatch import error。部署的 function 能够在没有 pyasn1.codec.der error 的情况下导入 cryptography,即表示完成。
由索引模型根据 Issue 内容生成。
描述
Hello.
So, I've been trying to include one of the libs from lambda-packages, and failed repeatedly :(
I'm hitting on the error in the title:
No module named pyasn1.codec.der
Specifically, I'm trying to get the cryptography module into my lambda deployment packages, but maybe I'm misunderstanding the quick guide:
But, if you want to use this project the other (wrong) way, just put the contents of the .tar.gz archive into your lambda .zip.
Yes, I'm sorry, but I can't jump on Zappa at this point (maybe after this proof of concept is done), but it seems like I shouldn't have to, right?
So.. working on a Mac, I:
- downloaded
lambda-packages-master.zip, extracted its contents - dug into
\lambda_packages\cryptography, - grabbed and extracted (to
libs-for-aws\cryptography) thecryptography-1.4.tar.gzarchive.
Then I built my Lambda Deployment Package, and added to it the libs-for-aws\cryptography directory.
Package via Cloud Formation, deploy to AWS, and, when my Lambda is triggered, I get a 500, and in CloudWatch logs I get this message (cauth is just the name of my Lambda package)
START RequestId: 938e62f0-18a2-11e7-a55f-d146b6ce0af9 Version: $LATEST
Unable to import module 'cauth': No module named pyasn1.codec.der
END RequestId: 938e62f0-18a2-11e7-a55f-d146b6ce0af9
Am I doing something wrong in the way I'm trying to include the cryptography package from lambda-packages?
- 主要语言
- 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 小时 新手友好度 67/100
-
Route 53 DNS analytics/insights adds an observability signal for the DNS layer可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭documentation enhancement
难度 2/5 1-3 小时 新手友好度 72/100
-
Set wallpaper未关闭new-addition
难度 1/5 1 小时以内 新手友好度 60/100
-
needs-triage Platform(Default)
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
triage
难度 2/5 1-3 小时 新手友好度 70/100
winapps-org/winapps#984 ·