cloudtools / troposphere

troposphere - Python library to create AWS CloudFormation descriptions
BSD 2-Clause "Simplified" License
4.93k stars 1.45k forks source link

Version 4.3.1: ModuleNotFoundError: No module named 'troposphere.type_defs' #2132

Closed ecs-jnguyen closed 1 year ago

ecs-jnguyen commented 1 year ago

Hey guys, I was running into an error ModuleNotFoundError: No module named 'troposphere.type_defs'. I saw that from ..type_defs.compat import Final was added to troposphere/validators/autoscaling.py.

When I pulled down the 4.3.1 package I noticed that the type_defs folder doesn't exist. VS Code is giving also giving me the error Import "..type_defs.compat" could not be resolved.

sbraverman commented 1 year ago

Same here. It was added to ec2.py as well. I locked down to 4.3.0 for now until this is resolved.

markpeek commented 1 year ago

Thank you for the prompt issue and apologies for the breakage. The troposphere.type_defs package should now be included in the just released 4.3.2. I will have to look at improving the release test to ensure it catches this before it gets released.

sbraverman commented 1 year ago

Confirming, 4.3.2 working. Thank you for quick resolution

markpeek commented 1 year ago

Thanks for the confirmation. Closing.