Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

No module named pyasn1.codec.der

オープン
#41 コメント 2 件 リアクション 1 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

  • #50 @gene1wood による — マージされずにクローズ

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
aws, cryptography, python

調査の方向性

まず lambda_packages/cryptography と抽出した cryptography-1.4.tar.gz の内容を調査し、その後、記載されている CloudFormation パッケージを使って AWS Lambda のデプロイを再現し、CloudWatch のインポートエラーを確認します。デプロイした関数が pyasn1.codec.der エラーなしで 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 ) the cryptography-1.4.tar.gz archive.

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 を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Miserlou/lambda-packages のほかの issue

Miserlou/lambda-packages の issue をすべて見る

似ている issue

Shell/Bash の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。