-
Notifications
You must be signed in to change notification settings - Fork 363
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AttributeError: 'Template' object has no attribute 'add_description' #1000
Comments
Troposphere updated I think it would be as easy as updating this line to What I don't understand is why the version isn't being locked per the generated |
If you froze your requirements prior to the 3.0.0 troposphere release you should be fine. If not just add |
@MayaraMacielMatos I am not sure closing this is the best. If a user today decided to use Zappa after the troposphere 3.0.0 release this could happen when they install all their dependencies. |
@mikedklein I appreciate the help, I'll keep it open |
Same issue here using ci/cd aws code build...partially solved using hardcoded version of troposphere==2.7.1 |
Looks like there is a related issue and subsequent PR we can probably safely close this issue @MayaraMacielMatos |
hope it can be resolved soon since this is a simple bug to fix. thanks for pointing the resolution @mikedklein |
+1 |
Thanks for the prompt response and help. I changed the code to 'set_response' myself and everything is resolved. |
For pipenv users, edit Pipfile like:
|
I was also very confused by this @mikedklein , but it looks like the https://github.com/zappa/Zappa/blob/master/setup.py#L10-L21 import os
import sys
from setuptools import setup
from io import open
from zappa import __version__
with open('README.md') as readme_file:
long_description = readme_file.read()
with open(os.path.join(os.path.dirname(__file__), 'requirements.in')) as f:
required = f.read().splitlines()
with open(os.path.join(os.path.dirname(__file__), 'test_requirements.in')) as f:
test_required = f.read().splitlines()
setup(
name='zappa',
version=__version__,
packages=['zappa'],
install_requires=required,
tests_require=test_required,
test_suite='nose.collector',
include_package_data=True,
license='MIT License',
description='Server-less Python Web Services for AWS Lambda and API Gateway',
long_description=long_description,
long_description_content_type='text/markdown',
url='https://github.com/zappa/Zappa',
author='Rich Jones',
author_email='[email protected]',
entry_points={
'console_scripts': [
'zappa=zappa.cli:handle',
'z=zappa.cli:handle',
]
}, And in
@jneves @mcrowson i wonder if there's an opportunity to get rid of the |
Still get this issue. |
@mikedklein If I lock troposphere at 2.7.0, I will get another error which is How did you git rid of this or you didn't run into this issue? |
@clown-0726 , Try to lock troposphere at 2.7.1 |
I installed from master the branch. It's a temporary measured, but solved the issue for me. If you use pipenv, you can add or replace with this line in the [packages] section inside the Pipfile:
|
@luistm Thank you for your advice. But still the same error reappears in my environment.
|
@heukirne It doesn't work for me with 2.7.1 as well. |
Is this library still maintained? Just getting started and coming across a handful of bugs that are just seemingly stale. |
Miserlou/Zappa#2228 Looks like this PR is the fix |
@jottenlips Thanks a lot! |
Note, even if you pin Troposphere to 2.7.0, you'll run into a new issue that looks something like:
TL,DR: you can't install troposphere 2.7 unless you also force setuptools to be <v58 The fix for this issue is already in place on the master branch of Zappa, they just need to push a new release. |
Wrong repo. As per my comment above:
|
a new zappa version was released, including a fix for this: |
Error deploy
self.cf_template.add_description("Automatically generated with Zappa")
AttributeError: 'Template' object has no attribute 'add_description'
The text was updated successfully, but these errors were encountered: