Update to latest, can't install docker-compose

I update in the latest version of dietpi and i try to add docker, portainer and docker-compose.
The docker and the portainer working and installing just fine.
But docker-compose i get an error

Blockquote#### Details:

  • Date | Thu Dec 22 07:09:41 GMT 2022
  • DietPi version | v8.12.1 (MichaIng/master)
  • Image creator | DietPi Core Team
  • Pre-image | from scratch
  • Hardware | RPi 4 Model B (aarch64) (ID=4)
  • Kernel version | Linux DietPi 5.15.76-v8+ #1597 SMP PREEMPT Fri Nov 4 12:16:41 GMT 2022 aarch64 GNU/Linux
  • Distro | bullseye (ID=6,RASPBIAN=0)
  • Command | pip3 uninstall -y docker-compose
  • Exit code | 1
  • Software title | DietPi-Software

Steps to reproduce:

  1. …
  2. …

Expected behaviour:

  • …

Actual behaviour:

  • …

Extra details:

  • …

Additional logs:

Fatal Python error: init_import_site: Failed to import the site module
Python runtime state: initialized
Traceback (most recent call last):
  File "/usr/lib/python3.9/site.py", line 606, in <module>
  File "/usr/lib/python3.9/site.py", line 593, in main
    known_paths = addsitepackages(known_paths)
  File "/usr/lib/python3.9/site.py", line 376, in addsitepackages
    addsitedir(sitedir, known_paths)
  File "/usr/lib/python3.9/site.py", line 214, in addsitedir
    addpackage(sitedir, name, known_paths)
  File "/usr/lib/python3.9/site.py", line 170, in addpackage
    for n, line in enumerate(f):
  File "/usr/lib/python3.9/codecs.py", line 322, in decode
    (result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc5 in position 19: invalid continuation byte


wait…why is the command “uninstall” and not install

I don’t know maybe i change it and see what happeds

We try to clean up old docker-compose installations on new install because docker-compose switched from Python to Go

As workaround, once you hit by the issue, you should get the blue error box. There is an option to change command. Hit that option, replace the given command with true and try again.

BTW: before doing anything. Can you run following command manually

pip3 uninstall -y docker-compose

Does it give same error message? At least on my test system it finished without error, even Python version of docker-compose was not installed before.

I’m not 100% sure but mit might be an issue with the Python environment in general and not related to docker-compose?

1 Like

That works just fine.
Thank you.

Sorry for the hijack. I’m having the same issue in installing docker-compose thru dietpi-software, but with different issue. I can’t even execute docker-compose in CLI. The error prompt is docker-compose: command not found.

Please advise how I may proceed. Thanks.

Yes, maybe better to open a new post if you have different issue. Anyway, I guess you missed latest changes of Docker Compose Docker Compose overview And some more information Evolution of Compose

You should be able to run docker compose instead of docker-compose

1 Like

Yes, you’re the man. Stupid enough that I uninstall it from dietpi-software and apt install docker-compose. :crazy_face: