Docker compose script complaining about a python module import Docker compose script complaining about a python module import python python

Docker compose script complaining about a python module import


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

pip uninstall urllib3pip 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.


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-composesudo 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-composesudo chmod +x /usr/local/bin/docker-composesudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-composedocker-compose --version

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