hassio-addons / addon-base-python

Docker Python base images (Alpine) - Home Assistant Community Add-ons
https://addons.community
MIT License
16 stars 7 forks source link

Error 31 at install on Raspberry Pi4 #112

Closed corneel27 closed 2 years ago

corneel27 commented 2 years ago

Problem/Motivation

Error 31 at install I get error31 when I install this addon. This mean: 31 = Too many links

Expected behavior

A normal install and no error

Actual behavior

I get the following error message:

The command '/bin/bash -o pipefail -c apk add --no-cache --virtual .build-dependencies bzip2-dev=1.0.8-r1 dpkg-dev=1.20.9-r0 dpkg=1.20.9-r0 expat-dev=2.4.7-r0 findutils=4.8.0-r1 gcc=10.3.1_git20211027-r0 gdbm-dev=1.22-r0 gnupg=2.2.31-r1 libc-dev=0.7.2-r3 libffi-dev=3.4.2-r1 libnsl-dev=1.3.0-r0 libtirpc-dev=1.3.2-r0 linux-headers=5.10.41-r0 make=4.3-r0 ncurses-dev=6.3_p20211120-r0 openssl-dev=1.1.1n-r0 pax-utils=1.3.3-r0 readline-dev=8.1.1-r0 sqlite-dev=3.36.0-r0 tar=1.34-r0 tcl-dev=8.6.11-r0 tk-dev=8.6.11-r0 tk=8.6.11-r0 util-linux-dev=2.37.4-r0 xz-dev=5.2.5-r0 xz=5.2.5-r0 zlib-dev=1.2.11-r3 && curl -J -L -o /tmp/python.tar.xz "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz" && curl -J -L -o /tmp/python.tar.xz.asc "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.asc" && export GNUPGHOME="$(mktemp -d)" && gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys "$GPG_KEY" && gpg --batch --verify /tmp/python.tar.xz.asc /tmp/python.tar.xz && { command -v gpgconf > /dev/null && gpgconf --kill all || :; } && mkdir -p /usr/src/python && tar -xJC /usr/src/python --strip-components=1 -f /tmp/python.tar.xz && cd /usr/src/python && gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" && ./configure --build="$gnuArch" --enable-loadable-sqlite-extensions --enable-optimizations --enable-option-checking=fatal --enable-shared --with-system-expat --with-system-ffi --without-ensurepip && make -j "$(nproc)" EXTRA_CFLAGS="-DTHREAD_STACK_SIZE=0x100000" && make install && find /usr/local -type f -executable -not \( -name '*tkinter*' \) -exec scanelf --needed --nobanner --format '%n#p' '{}' ';' | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | xargs -rt apk add --no-cache --virtual .python-rundeps && find /usr/local -depth \( \( -type d -a \( -name test -o -name tests \) \) -o \( -type f -a \( -name '*.pyc' -o -name '*.pyo' \) \) \) -exec rm -rf '{}' + && cd /usr/local/bin && ln -s idle3 idle && ln -s pydoc3 pydoc && ln -s python3 python && ln -s python3-config python-config && curl -J -L -o /tmp/get-pip.py 'https://bootstrap.pypa.io/get-pip.py' && python /tmp/get-pip.py --disable-pip-version-check --no-cache-dir "pip==$PYTHON_PIP_VERSION" && apk del --no-cache --purge .build-dependencies && rm -f -r /usr/src "$GNUPGHOME" /tmp/* && python3 --version && pip3 --version && find /usr/local -depth \( \( -type d -a \( -name test -o -name tests \) \) -o \( -type f -a \( -name '*.pyc' -o -name '*.pyo' \) \) \) -exec rm -rf '{}' +' returned a non-zero code: 31

Steps to reproduce

On a Home Assistant installation on a Raspberry Pi4


Home Assistant OS 8.0
supervisor-2022.05.2
Docker versie  20.10.14
Totale schijfruimte : 457.7 GB
Gebruikte schijfruimte : 13.4 GB
Gezond : true```
Copy the files from this addon (Dockerfile, build.yaml, config,yaml) to a directory named "day_ahead"
Install from "local addons"

## Proposed changes
Perhaps the long command can be cut in two or three pieces
sinclairpaul commented 2 years ago

This is a base image designed to be used by other containers.

I would recommend you use the docker command line to build, rather than the HA UI, as you will see the actual error (which I am guessing is likely a dependency update).

frenck commented 2 years ago

I get error31 when I install this addon.

This is not an add-on by itself. See our README for more information.