fl4p / batmon-ha

Add-on for Home Assistant to connect JK, JBD, Daly, ANT, SOK and Supervolt BMS via Bluetooth
MIT License
246 stars 53 forks source link

Installation error #233

Closed candidotsa closed 1 week ago

candidotsa commented 1 month ago

hi.

i'm trying to intall the add-on but i get an error.

The command '/bin/ash -o pipefail -c venv/bin/pip3 install -r requirements.txt' returned a non-zero code: 1

its my home assistant or is the add-on with a bug?

thanks to all



`Supervisor
│ exit code: 128
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

 ---> Removed intermediate container 0dde268b3b09

2024-06-01 14:30:14.142 INFO (MainThread) [supervisor.host.apparmor] Adding/updating AppArmor profile: 2af0a32d_batmon
2024-06-01 14:30:14.256 INFO (MainThread) [supervisor.docker.addon] Starting build for 2af0a32d/aarch64-addon-batmon:1.78
2024-06-01 14:30:18.266 ERROR (MainThread) [supervisor.docker.addon] Can't build 2af0a32d/aarch64-addon-batmon:1.78: The command '/bin/ash -o pipefail -c venv/bin/pip3 install -r requirements.txt' returned a non-zero code: 1
2024-06-01 14:30:18.266 ERROR (MainThread) [supervisor.docker.addon] Build log: 
Step 1/19 : ARG BUILD_FROM

Step 2/19 : FROM $BUILD_FROM

 ---> 3050c2ba69b9

Step 3/19 : WORKDIR /app

 ---> Using cache

 ---> 061cb9a24eef

Step 4/19 : RUN apk add python3

 ---> Using cache

 ---> f2aa61fd73d7

Step 5/19 : RUN apk add bluez

 ---> Using cache

 ---> bacf39c8bef6

Step 6/19 : RUN apk add py-pip

 ---> Using cache

 ---> d3eb93d90f44

Step 7/19 : RUN apk add git

 ---> Using cache

 ---> 0e447a97dc1c

Step 8/19 : COPY . .

 ---> Using cache

 ---> b8fa778e11b3

Step 9/19 : RUN python3 -m venv venv

 ---> Using cache

 ---> ae7a8cb31202

Step 10/19 : RUN venv/bin/pip3 install -r requirements.txt

 ---> Running in 52c17ad0c235

Looking in indexes: https://pypi.org/simple, https://wheels.home-assistant.io/musllinux-index/

Collecting git+https://github.com/jpeters-ml/bleak@feature/windowsPairing (from -r requirements.txt (line 4))

  Cloning https://github.com/jpeters-ml/bleak (to revision feature/windowsPairing) to /tmp/pip-req-build-1v_i8s4e

  Running command git clone --filter=blob:none --quiet https://github.com/jpeters-ml/bleak /tmp/pip-req-build-1v_i8s4e

  fatal: unable to access 'https://github.com/jpeters-ml/bleak/': Could not resolve host: github.com

  error: subprocess-exited-with-error

  × git clone --filter=blob:none --quiet https://github.com/jpeters-ml/bleak /tmp/pip-req-build-1v_i8s4e did not run successfully.
  │ exit code: 128
  ╰─> See above for output.

  note: This error originates from a subprocess, and is likely not a problem with pip.

error: subprocess-exited-with-error

× git clone --filter=blob:none --quiet https://github.com/jpeters-ml/bleak /tmp/pip-req-build-1v_i8s4e did not run successfully.
│ exit code: 128
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

 ---> Removed intermediate container 52c17ad0c235`
END
Goaheadz commented 1 month ago

I have the same issue. Any solution?

candidotsa commented 1 month ago

i think that the problem is a missing "b", but i don't know how to change and test. '/bin/ash -o pipefail /bin/bash -o pipefail

Goaheadz commented 1 month ago

image image

no /bin/ash can be found in files

aleks2910 commented 3 weeks ago

I have the same issue. (( Any solution?

candidotsa commented 1 week ago

hi. its working :) thanks