Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

244
Views
La implementación de Zappa falla con AttributeError: el objeto 'Template' no tiene el atributo 'add_description'

Desde hace unos días falla el deployment de zappa deploy con el siguiente error (versión 0.50.0 de zappa):

 Traceback (most recent call last): File "/root/repo/venv/lib/python3.6/site-packages/zappa/cli.py", line 2785, in handle sys.exit(cli.handle()) File "/root/repo/venv/lib/python3.6/site-packages/zappa/cli.py", line 510, in handle self.dispatch_command(self.command, stage) File "/root/repo/venv/lib/python3.6/site-packages/zappa/cli.py", line 557, in dispatch_command self.update(self.vargs['zip'], self.vargs['no_upload']) File "/root/repo/venv/lib/python3.6/site-packages/zappa/cli.py", line 993, in update endpoint_configuration=self.endpoint_configuration File "/root/repo/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'
over 4 years ago · Santiago Trujillo
2 answers
Answer question

0

Desde la versión 3.0.0 , el paquete troposphere eliminó los métodos Template en desuso (consulte el registro de cambios ).

Cambios importantes: * Python 3.6+ (la compatibilidad con Python 2.x y versiones anteriores de Python 3.x ahora está en desuso debido a Python EOL) * Elimina los métodos de plantilla obsoletos anteriormente.

El problema anterior se puede solucionar agregando troposphere<3 en el archivo de requisitos.

over 4 years ago · Santiago Trujillo Report

0

La respuesta de nbeuchat podría no funcionar para todos, una solución alternativa que podría ayudar sería cambiar la línea en venv/lib/python3.6{o 7,8, etc.}/site-packages/zappa/core.py de add_description() a set_description().

Troposphere actualizó add_description a set_description junto con otros métodos de plantilla obsoletos anteriormente, por lo que ve el problema.

Fuente

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!