docker-compose fails to install on Pine A64 on DietPi 7.1.2 Topic is solved

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
tfmeier
Posts: 16
Joined: Sun May 02, 2021 1:48 pm

docker-compose fails to install on Pine A64 on DietPi 7.1.2

Post by tfmeier »

I try to install docker-compose via the UI (i.e. dietpi-software on the command line). After a while I get the error message:

```
- Command: python3 ./get-pip.py
│ - Exit code: 1
│ - DietPi version: v7.1.2 (MichaIng/master) | HW_MODEL: 40 | HW_ARCH: 3 | DISTRO: 4
│ - Image creator: DietPi Core Team
│ - Pre-image: ARMbian
│ - Error log:

│ Hi there!

│ The URL you are using to fetch this script has changed, and this one will no
│ longer work. Please use get-pip.py from the following URL instead:

https://bootstrap.pypa.io/pip/3.5/get-pip.py

│ Sorry if this change causes any inconvenience for you!

│ We don't have a good mechanism to make more gradual changes here, and this
│ renaming is a part of an effort to make it easier to us to update these
│ scripts, when there's a pip release. It's also essential for improving how we
│ handle the `get-pip.py` scripts, when pip drops support for a Python minor
│ version.

│ There are no more renames/URL changes planned, and we don't expect that a need
│ would arise to do this again in the near future.
```

What do I need to do to install this as I'm not sure what to do with this error message.
User avatar
Joulinar
Posts: 4536
Joined: Sat Nov 16, 2019 12:49 am

Re: docker-compose fails to install on Pine A64 on DietPi 7.1.2

Post by Joulinar »

Hi,

thy for your message. Let me have a look. One question: You are running Debian Stretch?

Code: Select all

cat /etc/os-release
Looks like developer for get-pip.py changed something on their side which require an update on the download url
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
MichaIng
Site Admin
Posts: 2924
Joined: Sat Nov 18, 2017 6:21 pm

Re: docker-compose fails to install on Pine A64 on DietPi 7.1.2

Post by MichaIng »

DISTRO: 4, so it's Stretch, yes. Strange only because I thought we implemented the fix already to have the Python 3.5 script pulled there:
https://github.com/MichaIng/DietPi/blob ... 3472-L3474

It seems to have not worked as intended.

I'll try to replicate on VM.
User avatar
MichaIng
Site Admin
Posts: 2924
Joined: Sat Nov 18, 2017 6:21 pm

Re: docker-compose fails to install on Pine A64 on DietPi 7.1.2

Post by MichaIng »

Ah, it's about /pip/ subdirectory, okay that is a new change, all good :).
User avatar
Joulinar
Posts: 4536
Joined: Sat Nov 16, 2019 12:49 am

Re: docker-compose fails to install on Pine A64 on DietPi 7.1.2

Post by Joulinar »

yup took me a while as well to figure out the change :lol:
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
Joulinar
Posts: 4536
Joined: Sat Nov 16, 2019 12:49 am

Re: docker-compose fails to install on Pine A64 on DietPi 7.1.2

Post by Joulinar »

@MichaIng
Do you have a cool sed command to be able to add the missing sub dir? At least that would help the requestor as a quick fix :)
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
MichaIng
Site Admin
Posts: 2924
Joined: Sat Nov 18, 2017 6:21 pm

Re: docker-compose fails to install on Pine A64 on DietPi 7.1.2

Post by MichaIng »

Good idea, worth another MOTD fix as well:

Code: Select all

sed -Ei 's@https://bootstrap\.pypa\.io/(3\.5/|)get-pip\.py@https://bootstrap.pypa.io/pip/\1get-pip.py@' /boot/dietpi/dietpi-software
User avatar
Joulinar
Posts: 4536
Joined: Sat Nov 16, 2019 12:49 am

Re: docker-compose fails to install on Pine A64 on DietPi 7.1.2

Post by Joulinar »

I really need to get grip on sed :P
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
MichaIng
Site Admin
Posts: 2924
Joined: Sat Nov 18, 2017 6:21 pm

Re: docker-compose fails to install on Pine A64 on DietPi 7.1.2

Post by MichaIng »

And regular expressions in general, used with grep, awk, perl, shells, nearly everywhere in Linux/UNIX :): https://de.wikipedia.org/wiki/Regulärer ... der_Praxis
tfmeier
Posts: 16
Joined: Sun May 02, 2021 1:48 pm

Re: docker-compose fails to install on Pine A64 on DietPi 7.1.2

Post by tfmeier »

Joulinar wrote: Sun May 02, 2021 2:15 pm Hi,

thy for your message. Let me have a look. One question: You are running Debian Stretch?

Code: Select all

cat /etc/os-release
Looks like developer for get-pip.py changed something on their side which require an update on the download url
This is my output

Code: Select all

root@DietPi:~# cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 9 (stretch)"
NAME="Debian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
VERSION_CODENAME=stretch
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
I tried to follow the discussion but not sure what to do next. Do I need to create folder and re-run the command?
Post Reply