grinco / HASS-coral-rest-api

Coral REST API for HASS
Apache License 2.0
85 stars 6 forks source link

Install fails on RPi4 #6

Closed longmover closed 1 year ago

longmover commented 2 years ago

System: Home Assistant 2022.7.7 Supervisor 2022.07.0 Operating System 8.4 Frontend 20220707.1 - latest

This message pops up after a few seconds when attempting to install: failed to create shim: OCI runtime create failed: runc create failed: unable to start container process: exec: "/bin/bash": stat /bin/bash: no such file or directory: unknown

Log: Failed to to call /addons/d44241f3_coral-api/install - failed to create shim: OCI runtime create failed: runc create failed: unable to start container process: exec: "/bin/bash": stat /bin/bash: no such file or directory: unknown

grinco commented 2 years ago

This might be related to the fact that I'm using x86 base image for this container: homeassistant/amd64-base-ubuntu:18.04

I'll need to think of a way to make this platform independent... Will try building it on one of my raspberries.

Gfermoto commented 2 years ago

d44241f3_coral-api - odroid n2+

Levanterman commented 2 years ago

Hi

I have home assistant running on a Rpi4-64, I added the repository ok , but when i try and install it i get an error :-( :

Failed to install add-on The command '/bin/bash -o pipefail -c pip3 install --no-cache-dir -r requirements.txt' returned a non-zero code: 1

TPURest
txprojects88 commented 1 year ago

Hi

I have home assistant running on a Rpi4-64, I added the repository ok , but when i try and install it i get an error :-( :

Failed to install add-on

The command '/bin/bash -o pipefail -c pip3 install --no-cache-dir -r requirements.txt' returned a non-zero code: 1

TPURest

Having same issue :(

grinco commented 1 year ago

It probably has something to do with python 3.9 deprecation that has been announced in 2023.02. This addon uses an older version of https://github.com/robmarkcole/coral-pi-rest-server/. I'll have a look if I can run the latest one - based on guidance here: https://github.com/robmarkcole/coral-pi-rest-server/issues/66

I won't have time to look at it before Thursday however. So if anyone wants to have a look - please do.

grinco commented 1 year ago

Please try now. I was able to build it on my radxa rock 5b, looks like bumping the base image to Ubuntu 20.04 LTS solved it. I haven't done proper testing, though - did what I could from a cell phone while waiting at the gate.

grinco commented 1 year ago

Confirmed working and bumped the release version up: https://github.com/grinco/HASS-coral-rest-api/commit/3644ce7434ae77c5dc4735c6f8fa5e30c33f9fc6