dekiesel / wyoming-vosk-standalone

wyoming-vosk standalone container
2 stars 0 forks source link

Issue when run on a raspberry pi 5 #2

Open Corrado-possieri opened 3 days ago

Corrado-possieri commented 3 days ago

Hello, I have tried running the container following the instructions, but when I execute bash build.sh I get the following error

[+] Building 1.1s (7/8)                                                                                                                       docker:default
 => [internal] load build definition from Dockerfile                                                                                                    0.0s
 => => transferring dockerfile: 921B                                                                                                                    0.0s
 => WARN: InvalidDefaultArgInFrom: Default value for ARG ${BUILD_FROM} results in empty or invalid base image name (line 2)                             0.0s
 => [internal] load metadata for ghcr.io/home-assistant/amd64-base-debian:bookworm                                                                      0.5s
 => [internal] load .dockerignore                                                                                                                       0.0s
 => => transferring context: 2B                                                                                                                         0.0s
 => [internal] load build context                                                                                                                       0.1s
 => => transferring context: 136B                                                                                                                       0.0s
 => [1/5] FROM ghcr.io/home-assistant/amd64-base-debian:bookworm@sha256:c0e13c9f289ac939d805799e7e9f2ef56a2b7b8a4f2d2d1db2a2b76fcca84730                0.0s
 => CACHED [2/5] WORKDIR /usr/src                                                                                                                       0.0s
 => ERROR [3/5] RUN     apt-get update     && apt-get install -y --no-install-recommends         netcat-traditional         python3         python3-pi  0.4s
------                                                                                                                                                       
 > [3/5] RUN     apt-get update     && apt-get install -y --no-install-recommends         netcat-traditional         python3         python3-pip         libatomic1     && pip3 install --no-cache-dir -U         setuptools         wheel     && pip3 install --no-cache-dir         --extra-index-url https://www.piwheels.org/simple         -f .         "wyoming-vosk[limited] @ https://github.com/rhasspy/wyoming-vosk/archive/refs/tags/v1.5.0.tar.gz"     && rm -rf /var/lib/apt/lists/*:
0.289 exec /bin/bash: exec format error
------

 2 warnings found (use docker --debug to expand):
 - InvalidDefaultArgInFrom: Default value for ARG ${BUILD_FROM} results in empty or invalid base image name (line 2)
 - InvalidBaseImagePlatform: Base image ghcr.io/home-assistant/amd64-base-debian:bookworm was pulled with platform "linux/amd64", expected "linux/arm64" for current build (line 2)
Dockerfile:12
--------------------
  11 |     
  12 | >>> RUN \
  13 | >>>     apt-get update \
  14 | >>>     && apt-get install -y --no-install-recommends \
  15 | >>>         netcat-traditional \
  16 | >>>         python3 \
  17 | >>>         python3-pip \
  18 | >>>         libatomic1 \
  19 | >>>     && pip3 install --no-cache-dir -U \
  20 | >>>         setuptools \
  21 | >>>         wheel \
  22 | >>>     && pip3 install --no-cache-dir \
  23 | >>>         --extra-index-url https://www.piwheels.org/simple \
  24 | >>>         -f . \
  25 | >>>         "wyoming-vosk[limited] @ https://github.com/rhasspy/wyoming-vosk/archive/refs/tags/v${WYOMING_VOSK_VERSION}.tar.gz" \
  26 | >>>     && rm -rf /var/lib/apt/lists/*
  27 |     
--------------------
ERROR: failed to solve: process "/bin/bash -o pipefail -c apt-get update     && apt-get install -y --no-install-recommends         netcat-traditional         python3         python3-pip         libatomic1     && pip3 install --no-cache-dir -U         setuptools         wheel     && pip3 install --no-cache-dir         --extra-index-url https://www.piwheels.org/simple         -f .         \"wyoming-vosk[limited] @ https://github.com/rhasspy/wyoming-vosk/archive/refs/tags/v${WYOMING_VOSK_VERSION}.tar.gz\"     && rm -rf /var/lib/apt/lists/*" did not complete successfully: exit code: 1

I am wondering if it was possible to run the container using just docker compose, without pre-building the container. Thank you

dekiesel commented 3 days ago

Which os are you running the script on? Is it amd64

If not you probably need to find an image for your architecture here.

https://github.com/home-assistant/docker-base

Docker compose starts images, but you need to either build them first or get them from somewhere.

Corrado-possieri commented 3 days ago

Perfect, thanks for the explanation!

The architecture is aarch64, so it should suffice to substitute amd64-base with aarch64-base, correct?

dekiesel commented 3 days ago

Yes :)