Docker compose script complaining about a python module import

You need to re-install.

Below are the steps that worked for me on Ubuntu 18.04

Re-installation steps:

First remove the installed docker-compose binaries:

sudo rm -r /usr/bin/docker-compose
sudo rm -r /usr/local/bin/docker-compose

Installation:

cd ~/

sudo curl -L "https://github.com/docker/compose/releases/download/1.25.3/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

sudo chmod +x /usr/local/bin/docker-compose

sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose

docker-compose --version

You can read more here: https://docs.docker.com/compose/install/#install-compose


do it by installing urllib3 version 1.22 and uninstall the previous urllib3 verion by executing the following command in the shell

pip uninstall urllib3
pip install urllib3==1.22

Reinstalling docker-compose did the trick for me. You can reinstall by deleting the docker-compose file from /usr/local/bin and installing it again using instructions provided here.