Skip to content

Unable to install the addon #72

@kirangp

Description

@kirangp

I had to reinstall the addon and now whenever I try to install, I always get the below error.

image

Thanks

Log

Logger: homeassistant.components.hassio
Source: components/hassio/websocket_api.py:138
Integration: Home Assistant Supervisor (documentation, issues)
First occurred: 21:38:00 (4 occurrences)
Last logged: 22:46:33

Failed to to call /addons/eeb054de_modbus_inverter/install - The command '/bin/ash -o pipefail -c pip install --upgrade pycryptodomex==3.11.0 --no-cache-dir -r requirements.txt' returned a non-zero code: 1
Failed to to call /store/repositories - Can't add https://github.com/MatterVN/HassioAddon, already in the store

Managed to dig up more and see this in Supervisor Logs

23-12-12 23:08:15 INFO (MainThread) [supervisor.host.apparmor] Adding/updating AppArmor profile: eeb054de_modbus_inverter
23-12-12 23:08:15 INFO (MainThread) [supervisor.docker.addon] Starting build for eeb054de/aarch64-addon-modbus_inverter:0.3.8
23-12-12 23:08:25 ERROR (MainThread) [supervisor.docker.addon] Can't build eeb054de/aarch64-addon-modbus_inverter:0.3.8: The command '/bin/ash -o pipefail -c pip install --upgrade pycryptodomex==3.11.0 --no-cache-dir -r requirements.txt' returned a non-zero code: 1
23-12-12 23:08:25 ERROR (MainThread) [supervisor.docker.addon] Build log:
Step 1/23 : ARG BUILD_FROM

Step 2/23 : FROM $BUILD_FROM

---> d524bbcac2d5

Step 3/23 : ENV LANG C.UTF-8

---> Using cache

---> 680ba6cc0009

Step 4/23 : ARG BUILD_VERSION

---> Using cache

---> 1ec1d5293eda

Step 5/23 : ARG BUILD_ARCH

---> Using cache

---> 95be34e1f31a

Step 6/23 : COPY requirements.txt ./

---> Using cache

---> f0adae72b86c

Step 7/23 : RUN apk add --no-cache python3-dev py3-pip g++

---> Using cache

---> 6fd6012fbf33

Step 8/23 : RUN pip install --upgrade pycryptodomex==3.11.0 --no-cache-dir -r requirements.txt

---> Running in e32d095d6563

error: externally-managed-environment

× This environment is externally managed
╰─>
The system-wide python installation should be maintained using the system
package manager (apk) only.

If the package in question is not packaged already (and hence installable via
"apk add py3-somepackage"), please consider installing it inside a virtual
environment, e.g.:

python3 -m venv /path/to/venv
. /path/to/venv/bin/activate
pip install mypackage

To exit the virtual environment, run:

deactivate

The virtual environment is not deleted, and can be re-entered by re-sourcing
the activate file.

To automatically manage virtual environments, consider using pipx (from the
pipx package).

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.

Removing intermediate container e32d095d6563

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions