intake / intake/python-snappy

No module named 'snappy._snappy_cffi' on AWS lambda

Đang mở
#121 5 bình luận 1 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Python
Star
490
Fork
104
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

I create a function using python-snappy to deploy on AWS Lambda. I followed [this tutorial](https://docs.aws.amazon.com/lambda/latest/dg/python-package.html) and basically did the following (TL;DR of the tutorial commands):

```
pip install --target ./package python-snappy
cd package
zip -r ../my-deployment-package.zip .
cd ..
zip -g my-deployment-package.zip lambda_function.py

```

When running my function it fails on `import snappy` line with:

```
Response
{
"errorMessage": "Unable to import module 'lambda_function': No module named 'snappy._snappy_cffi'",
"errorType": "Runtime.ImportModuleError",
"stackTrace": []
}
```

My function file tree looks like the following:

```
my-function
--| python_snappy_0.6.1.dist-info
---- AUTHORS
---- INSTALLERS
----
--| snappy
---- __init__.py
---- __main__.py
----

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.