aws-cloudformation / cloudformation-cli-python-plugin

The CloudFormation Provider Development Toolkit Python Plugin allows you to autogenerate Python code based on an input schema.
Apache License 2.0
108 stars 47 forks source link

Plugin dependencies incompatible with latest version of AWS SAM CLI #264

Open corey-cole opened 1 year ago

corey-cole commented 1 year ago

If the latest AWS SAM CLI and the plugin are both installed into the same Python (virtual) environment, there are a pair of dependency conflicts:

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
aws-sam-cli 1.97.0 requires cfn-lint~=0.79.7, but you have cfn-lint 0.72.10 which is incompatible.
aws-sam-cli 1.97.0 requires PyYAML>=6.0.1,~=6.0, but you have pyyaml 5.4.1 which is incompatible.
corey-cole commented 1 year ago

Side note if anyone else is following along: SAM 1.92.0 is the latest version with a compatible PyYAML, and SAM 1.69.0 is the latest with a compatible cfn-lint. Unfortunately, reverting to such an old version with the latest plugin surfaces new dependency issues:

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
cloudformation-cli 0.2.32 requires docker>=4.3.1, but you have docker 4.2.2 which is incompatible.
cloudformation-cli 0.2.32 requires Werkzeug>=2.2.0, but you have werkzeug 2.0.3 which is incompatible.