docker VersionConflict
See original GitHub issueHi,
I get the following error when trying to run cfn init
Traceback (most recent call last):
File "/home/ec2-user/cfn-cli/lib64/python3.7/site-packages/rpdk/core/cli.py", line 83, in main
init_setup_subparser(subparsers, parents)
File "/home/ec2-user/cfn-cli/lib64/python3.7/site-packages/rpdk/core/init.py", line 166, in setup_subparser
language_setup_subparser()(language_subparsers, [base_subparser])
File "/home/ec2-user/cfn-cli/lib64/python3.7/site-packages/pkg_resources/__init__.py", line 2461, in load
self.require(*args, **kwargs)
File "/home/ec2-user/cfn-cli/lib64/python3.7/site-packages/pkg_resources/__init__.py", line 2484, in require
items = working_set.resolve(reqs, env, installer, extras=self.extras)
File "/home/ec2-user/cfn-cli/lib64/python3.7/site-packages/pkg_resources/__init__.py", line 792, in resolve
raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.VersionConflict: (docker 5.0.0 (/home/ec2-user/cfn-cli/lib/python3.7/site-packages), Requirement.parse('docker<5,>=3.7'))
Installation steps
AMI: amzn2-ami-hvm-2.0.20210326.0-x86_64-gp2
sudo yum install python3 -y
sudo amazon-linux-extras install docker -y
sudo systemctl start docker
sudo systemctl enable docker
sudo usermod -a -G docker ec2-user
wget https://github.com/aws/aws-sam-cli/releases/latest/download/aws-sam-cli-linux-x86_64.zip
unzip aws-sam-cli-linux-x86_64.zip -d sam-installation
sudo ./sam-installation/install
python3 -m venv cfn-cli
source cfn-cli/bin/activate
python -m pip install cloudformation-cli cloudformation-cli-python-plugin
During the python pkg installation it is visible the error ERROR: cloudformation-cli-python-plugin 2.1.2 has requirement docker<5,>=3.7, but you'll have docker 5.0.0 which is incompatible.
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Why am I getting a docker-compose version conflict on a fully ...
So it turns out that, in spite of getting a return for this user's docker-compose --version , it hadn't installed globally?
Read more >'requests' version conflict · Issue #918 · docker/compose · GitHub
docker -compose install the latest requests version (2.5.1) but docker-py expects requests version lower than 2.5.0.
Read more >Setuptools version conflict while installing docker image
I am trying out the docker image by ramonski and wanted to add the senaite.storage addon. For this i tried with a bash...
Read more >Python – VersionConflict: (pip 9.0.2 (/usr/local/lib/python3 ... - iTecNote
I use docker commend docker-compose build and docker-compose up -d. yum install python-35 -y and install packages and I add pip-3.5 install --upgrade...
Read more >FEDORA-2017-3b3bbeecab — enhancement update for ...
This doesn't work I'm afraid, we need python3-docker >= 2.3.0 which only exists ... in resolve raise VersionConflict(dist, req).with_context(dependent_req) ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@PatMyron There is clearly an issue here. Installing cfn-cli per the info in the README file does not work. I’d suggest a fix in the requirements, or on the docs
@PatMyron It might be worth looking at the requirements for cloudformation-cli and the plugins and try to keep them with the same version definition (either limiting cloudformation-cli’s docker to <5.0, or allowing docker >5.0 in the python plugin)