intake / intake/python-snappy

No module named 'snappy._snappy_cffi' on AWS lambda

Aperta
#121 5 commenti 1 reazione 0 assegnatari Vedi su GitHub
Lingua principale
Python
Stelle
490
Fork
104
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.