Zappa is a Python tool to build and deploy server-less, event-driven Python applications (including, but not limited to, WSGI web apps) on AWS Lambda + API Gateway.
Questions tagged [zappa]
203 questions
4
votes
0 answers
AttributeError: module '__main__' has no attribute 'text_process'
Context
i am deploying my ml model on lambda; after successfully deployment when i hit gateway URL i am getting 500 response and and logs are
Traceback (most recent call last):
File "/tmp/serverless-ml/flask/app.py", line 2292, in wsgi_app
…
![](../../users/profiles/1731823.webp)
Mudaser Ali
- 3,331
- 2
- 21
- 21
4
votes
1 answer
spaCy throws OSError when deployed to AWS Lambda using zappa
When deploying a Python spaCy app to AWS Lambda, I get the following error in the deploy (see below). Why deploy using zappa? The zip file is 125MB compressed, so a direct upload from the aws-cli fails on space, and a transfer to S3 also fails…
![](../../users/profiles/6252477.webp)
geophf
- 41
- 5
4
votes
1 answer
How do I get an AWS Lambda Remaining time using Python and Zappa?
I'm using Flask and Zappa to deploy to AWS Lambda, but one of my tasks takes more than 300 seconds to execute so the lambda shuts down.
I'd like to call another lambda before it happens to finish the work, is it possible to get the remaining time…
![](../../users/profiles/1431598.webp)
Fernando Freitas Alves
- 3,381
- 3
- 22
- 42
3
votes
2 answers
NodeJS HTTPServer takes a long time to close
I'm working on a Zappa app, and I'm currently trying to make a little watch script that stops the server, clears require.cache then re-requires and restarts the server when a file changes, something like:
# watch all dependent files
for file of…
![](../../users/profiles/384638.webp)
connec
- 6,561
- 3
- 19
- 26
3
votes
0 answers
zappa docker returns FileNotFoundError No such file or directory: venv/lib/python3.6/site-packages
I am trying to build my Flask app using Zappa and docker ( Serverless with Aws Lambda )
Here is DockerFile:
FROM lambci/lambda:build-python3.6
MAINTAINER "Bongo BD"
RUN pip3 install -U pip zappa botocore awscli
WORKDIR…
![](../../users/profiles/2334668.webp)
Selim Reza
- 625
- 8
- 21
3
votes
3 answers
Django Zappa generated cloudfront generates 403 error
I run a Django project deployed on AWS lambda using serverless Zappa framework. This can be accessed by a randomly generated link from AWS API Gateway lets say:-
randomly-generated-link.aws.amazon.com/production
I have also created an SSL…
![](../../users/profiles/9310031.webp)
abi crazieeee
- 168
- 2
- 12
3
votes
2 answers
Adding a Geo Django project to AWS Lambda using Zappa. Getting OSError: cannot open shared object file: No such file or directory
I am trying to deploy my Geo-Django app to Zappa
1st I got
django.core.exceptions.ImproperlyConfigured: Could not find the GDAL library
(tried "gdal", "GDAL", "gdal2.2.0", "gdal2.1.0", "gdal2.0.0", "gdal1.11.0",
"gdal1.10.0", "gdal1.9.0"). Is GDAL…
![](../../users/profiles/9663800.webp)
Samir Tendulkar
- 761
- 1
- 10
- 36
3
votes
1 answer
AWS Lambda with Zappa fails on "import module 'handler': No module named 'werkzeug' "
After deploying my python application with Zappa and visiting the aws link, I can see the following error:
When I checked the logs, I found the source of the error:
I then decided to pip install -r requirements.txt to ensure that it's installed…
![](../../users/profiles/8364675.webp)
Nathan Ortega
- 368
- 1
- 3
- 13
3
votes
2 answers
zappa scheduling with Python
I am running this code to send a sms message with Twilio...
client.messages.create(
to=form.phone.data,
from_="+1xxxxxxxxxx",
body="This is a text message"
My application is hosted on AWS Lambda using Python's Zappa. The…
![](../../users/profiles/6906476.webp)
freefly0313
- 75
- 2
- 12
3
votes
3 answers
Tell Mocha to use CoffeeScript files by default
I'm currently trying to set up testing in Mocha for an application I'm writing using Zappa.js. So far I've been following this tutorial, and converting what I need from JS to Coffeescript.
However I'm a little stuck with trying to run tests. I have…
![](../../users/profiles/1926497.webp)
Kyri Elia
- 792
- 7
- 17
3
votes
1 answer
Zappa Error unable to find view (jade template)
I am trying a zappa node application and am unable to get it working beyond a trivial example.
I have application.coffee
require('zappajs') ->
@set views: "#{__dirname}/views"
@set 'view engine': 'jade'
@use 'bodyParser',…
![](../../users/profiles/151033.webp)
irfn
- 542
- 3
- 11
2
votes
0 answers
AWS Lambda (Python Zappa) Understanding the Logs
Zappa is a beautiful piece of code that makes your code serverless without anything to code.
I'm trying to understand the intricacies of Zappa, and I would like to start with the Logging. I'm successful in deploying my Python Django App on AWS…
![](../../users/profiles/1162512.webp)
PythonEnthusiast
- 14,299
- 33
- 103
- 218
2
votes
1 answer
Zappa+Flask: A GET request to '/' yielded a 502 response code
I am trying to deploy my flask app on aws lambda via zappa. And I am getting the following error when I do zappa deploy dev:
Calling deploy for stage dev..
Downloading and installing dependencies..
- sqlalchemy==1.3.16:…
![](../../users/profiles/11135962.webp)
Junkrat
- 2,432
- 2
- 14
- 33
2
votes
4 answers
AttributeError: module 'dateutil.tz' has no attribute 'UTC' on Zappa Deploy
On trying to deploy my AWS Lambda function get this error on my Stacktrace
(python-dateutil 2.8.1 (/Users/supratik/.local/share/virtualenvs/api_sourcer-sM-JSZy3-/Users/supratik/.pyenv/shims/python/lib/python3.6/site-packages),…
![](../../users/profiles/3648310.webp)
Supratik Majumdar
- 1,965
- 1
- 20
- 29
2
votes
0 answers
aws lambda django app deployed with zappa - python import precendecy
We have a Django application we deploy on AWS Lambda, using Zappa. We use pipenv to manage python packages of the project. Some packages we use (e.g cryptography) need to be compiled with the same configration as the lambda machine. To do that, I've…
![](../../users/profiles/843999.webp)
Ozgur Akcali
- 4,164
- 1
- 20
- 40