intake / intake/python-snappy

No module named 'snappy._snappy_cffi' on AWS lambda

未关闭
#121 5 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Python
星标
490
派生
104
PR 合并指标
30 天内没有已合并 PR

描述

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
----

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。