schumijo / homeassistant-addons

6 stars 3 forks source link

Py3-pip no such package #3

Closed glienart closed 3 years ago

glienart commented 3 years ago

While installing the add-on on HA OS through supervisor I get the following error. I am running the latest version 2021.4.6

21-04-22 03:20:04 INFO (SyncWorker_3) [supervisor.docker.addon] Starting build for c53cd0b5/amd64-addon-somfy-protect-2-mqtt:0.1.2
21-04-22 03:20:17 ERROR (SyncWorker_3) [supervisor.docker.addon] Can't build c53cd0b5/amd64-addon-somfy-protect-2-mqtt:0.1.2: The command '/bin/ash -o pipefail -c apk add --no-cache py3-pip' returned a non-zero code: 1
21-04-22 03:20:17 ERROR (SyncWorker_3) [supervisor.docker.addon] Build log: 
Step 1/21 : ARG BUILD_FROM
Step 2/21 : FROM $BUILD_FROM
 ---> 7f05b4a45489
Step 3/21 : ENV LANG C.UTF-8
 ---> Using cache
 ---> c6a74ba6aeda
Step 4/21 : ARG VERSION=0.1.1
 ---> Using cache
 ---> d0837bafcc4e
Step 5/21 : RUN apk add --no-cache py3-pip
 ---> Running in 82abf568eb11
fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/main/x86_64/APKINDEX.tar.gz
WARNING: 
Ignoring http://dl-cdn.alpinelinux.org/alpine/v3.12/main: temporary error (try again later)

fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/community/x86_64/APKINDEX.tar.gz
WARNING: 
Ignoring http://dl-cdn.alpinelinux.org/alpine/v3.12/community: temporary error (try again later)

ERROR: 
unable to select packages:

  py3-pip (no such package):
    required by: world[py3-pip]
Removing intermediate container 82abf568eb11
schumijo commented 3 years ago

Hi glienart

Really strange. I juste make the same test without any error on same platform : [supervisor.docker.addon] Starting build for local/amd64-addon-somfy-protect-2-mqtt:0.1.0 21-04-26 18:35:12 INFO (SyncWorker_0) [supervisor.docker.addon] Build local/amd64-addon-somfy-protect-2-mqtt:0.1.0 done 21-04-26 18:35:12 INFO (MainThread) [supervisor.addons] Add-on 'local_somfy-protect-2-mqtt' successfully installed

glienart commented 3 years ago

My OS is in a VM might that be a reason? Or what other add-ons do you have that might install the pip package?

schumijo commented 3 years ago

My OS is also a VM. Each addon use is proper container so you can't install pip from an other addon.

Can you try downloading this package manually (copy/paste link) ?

glienart commented 3 years ago

I update the supervisor to supervisor-2021.04.3 and that solved the issue. Don't know why. thank you!