Open
Description
Context
Setup of a Django environment for deployment onto AWS Lambda. Had the following pip packages installed pip install NearBeach zappa pymysql django-storages cryptography
Ran the following command zappa update
to update my live environment.
Expected Behavior
Zappa to deploy the site correctly.
Actual Behavior
Failed to deploy. With the following errors (pulled from my terminal)
Updating Lambda function code..
Updating Lambda function configuration..
Oh no! An error occurred! :(
==============
Traceback (most recent call last):
File "/home/ubuntu/clients/zappa_test/venv/lib/python3.6/site-packages/zappa/cli.py", line 2785, in handle
sys.exit(cli.handle())
File "/home/ubuntu/clients/zappa_test/venv/lib/python3.6/site-packages/zappa/cli.py", line 510, in handle
self.dispatch_command(self.command, stage)
File "/home/ubuntu/clients/zappa_test/venv/lib/python3.6/site-packages/zappa/cli.py", line 557, in dispatch_command
self.update(self.vargs['zip'], self.vargs['no_upload'])
File "/home/ubuntu/clients/zappa_test/venv/lib/python3.6/site-packages/zappa/cli.py", line 993, in update
endpoint_configuration=self.endpoint_configuration
File "/home/ubuntu/clients/zappa_test/venv/lib/python3.6/site-packages/zappa/core.py", line 2106, in create_stack_template
self.cf_template.add_description('Automatically generated with Zappa')
AttributeError: 'Template' object has no attribute 'add_description'
==============
Possible Fix
As discussed on the stackoverflow - https://stackoverflow.com/questions/68391621/zappa-deploy-fails-with-attributeerror-template-object-has-no-attribute-add - the error looks like it has something to do with the NEW troposphere.
Running the following command (i.e. downgrading the troposphere) worked for me: pip install troposphere==2.7.1
Your Environment
- Zappa version used: 0.53.0
- Operating System and Python version: 3.6.9
- The output of
pip freeze
:
argcomplete==1.12.3
asgiref==3.4.1
boto3==1.18.1
botocore==1.21.1
certifi==2021.5.30
cffi==1.14.6
cfn-flip==1.2.3
charset-normalizer==2.0.3
click==8.0.1
cryptography==3.4.7
Django==3.2.5
django-storages==1.11.1
durationpy==0.5
future==0.18.2
hjson==3.0.2
idna==3.2
importlib-metadata==4.6.1
jmespath==0.10.0
kappa==0.6.0
NearBeach==0.28.9.1
pep517==0.11.0
Pillow==8.3.1
pip-tools==6.2.0
placebo==0.9.0
pycparser==2.20
PyMySQL==1.0.2
python-dateutil==2.6.1
python-slugify==5.0.2
pytz==2021.1
PyYAML==5.4.1
requests==2.26.0
s3transfer==0.5.0
simplejson==3.17.3
six==1.16.0
sqlparse==0.4.1
text-unidecode==1.3
toml==0.10.2
tomli==1.0.4
tqdm==4.61.2
troposphere==2.7.1
typing-extensions==3.10.0.0
urllib3==1.26.6
Werkzeug==0.16.1
wsgi-request-logger==0.4.6
zappa==0.53.0
zipp==3.5.0
- Link to your project (optional): https://github.com/robotichead/NearBeach
Metadata
Metadata
Assignees
Labels
No labels