aws-cloudformation / aws-cloudformation/cloudformation-cli

Codebuild failed: incompatible dependency versions

Open
#782 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
336
Forks
172
Avg merge
3d 5m
Merged PRs (30d)
3

Description

I was able to build locally. But when submit PR into the repo the Codebuild check failed and the build failed as well.

I have tried to use the fix from [Issue](https://github.com/aws-cloudformation/cloudformation-cli/issues/676) by adding the `pip install --upgrade 'six==1.15.0'` into the buildspec.yml but still failed. There are still some incompatible error in the build

```
ERROR: aws-sam-cli 0.48.0 has requirement aws-sam-translator==1.22.0, but you'll have aws-sam-translator 1.36.0 which is incompatible.
ERROR: aws-sam-cli 0.48.0 has requirement docker~=4.0, but you'll have docker 5.0.0 which is incompatible.
ERROR: cfn-lint 0.50.0 has requirement pyyaml>=5.4; python_version != "3.4" and python_version != "3.5", but you'll have pyyaml 5.1.2 which is incompatible.
```
Here is the CodeBuild log [CodeBuild IsenLog](https://console.aws.amazon.com/codesuite/codebuild/485432771924/projects/aws-cloudformation-resource-providers-lookoutequipment-ci/build/aws-cloudformation-resource-providers-lookoutequipment-ci%3Ab392f34e-1f63-41a1-b687-c594793e68a1/?region=us-east-1)

Here is snapshot for the error

![34](https://user-images.githubusercontent.com/84996337/121758612-f0ff3000-cad6-11eb-940b-6e94688c339e.jpg)
![23](https://user-images.githubusercontent.com/84996337/121758615-f3618a00-cad6-11eb-87c3-11d5429b1234.jpg)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.