bohdan-s / hassio-repository

Home Assistant Add-ons
GNU General Public License v3.0
17 stars 14 forks source link

Can't install Addon in Home assistant #5

Open InFlames82 opened 7 months ago

InFlames82 commented 7 months ago

If i try to install the addon in home assistant I get the following error: The command '/bin/ash -o pipefail -c pip install --no-cache-dir --upgrade pycryptodomex==3.11.0 -r requirements.txt' returned a non-zero code: 1

I'm on: Core 2023.12.1 Supervisor 2023.11.6 Operating System 11.2 Frontend 20231208.2

gamer123 commented 7 months ago

Same for me trying to setup an SH15RT I am on:

Core 2023.12.1 Supervisor 2023.11.6 Operating System 11.2 Frontend 20231208.2

bohdan-s commented 7 months ago

Issue will be one of the required packages failing. hopefully I’ll get some time in the next few days to trouble shoot and push an update.

gamer123 commented 7 months ago

ok great

sebastian-tennant commented 7 months ago

This is the error I receive when attempting to install

Logger: homeassistant.components.hassio
Source: components/hassio/websocket_api.py:138
Integration: Home Assistant Supervisor (documentation, issues)
First occurred: 10:36:57 AM (1 occurrences)
Last logged: 10:36:57 AM

Failed to to call /addons/7b536ee6_sungather/install - The command '/bin/ash -o pipefail -c pip install --no-cache-dir --upgrade pycryptodomex==3.11.0 -r requirements.txt' returned a non-zero code: 1

I note the same error being asked about over at https://github.com/MatterVN/ModbusTCP2MQTT/issues/65 which looks very similar in scope to this project (and seems to use @bohdan-s 's sungather repo anyway) but there was a change in requirements.txt a month ago which reportedly has helped https://github.com/MatterVN/ModbusTCP2MQTT/issues/65#issuecomment-1826089270 https://github.com/MatterVN/ModbusTCP2MQTT/commit/0f0a9c7b07c1c37350dfb3914f64aeedc3a0d441

alangibson commented 6 months ago

I've created an HA integration based off of SunGather that can be installed with HACS. You can find it here: https://github.com/alangibson/homeassistant-sungrow

If others can confirm it works, then I will create a PR for this repo.

AlexanderLanin commented 6 months ago

Tested with fresh Home Assistant Operating System in Virtual Box.

Defaults/explanations could be better:

Upon adding the connection nothing happens?! What is supposed to happen? It's listed under devices, but I cannot do anything there. No new entities.

Note: adding connection with invalid IP fails :-)

alangibson commented 6 months ago

Defaults/explanations could be better:

Can you open an issue here for these: https://github.com/alangibson/homeassistant-sungrow/issues

Upon adding the connection nothing happens?! What is supposed to happen?

Are you getting this error? https://github.com/alangibson/homeassistant-sungrow/issues/2

Or is literally nothing happening? Do you see a Sungrow Inverter device in the UI at /config/integrations/dashboard?

EDIT: Please open a second issue for this error at the issue tracker I linked above. We should avoid junking up an unrelated issue.

bohdan-s commented 6 months ago

don’t worry. Misread.

AlexanderLanin commented 6 months ago

EDIT: Please open a second issue for this error at the issue tracker I linked above. We should avoid junking up an unrelated issue.

Oh I guess that's my fault. Kind of ;-)

Logger: custom_components.sungrow.SunGather.inverter
Source: custom_components/sungrow/SunGather/inverter.py:111
Integration: Sungrow ([documentation](https://github.com/alangibson/homeassistant-sungrow))
First occurred: 12:06:30 AM (2 occurrences)
Last logged: 12:06:30 AM
Unknown Type Code Detected: 3602

It's an SH8.0RT-20, see https://github.com/mkaiser/Sungrow-SHx-Inverter-Modbus-Home-Assistant/blob/c42255c9f841b0cc275b5bcec7918687b5c6cc61/modbus_sungrow.yaml#L1970

I've created a separate issue: https://github.com/bohdan-s/SunGather/issues/157

FHoevi commented 6 months ago

Any update on this one? I just started a Home Assiatant installation today and wanted to use this addon after successfully testing the bare Python code with my inverter.

rmcastelao commented 6 months ago

I'm also getting the same error: /bin/ash -o pipefail -c pip install --no-cache-dir --upgrade pycryptodomex==3.11.0 -r requirements.txt

Any progress on this? Thanks!

alangibson commented 6 months ago

@FHoevi @rmcastelao Check out the integration (i.e. not add-on) that we're working on here: https://github.com/alangibson/homeassistant-sungrow

FHoevi commented 6 months ago

@alangibson As already written there your integration is already running on my home assistant RPi. But some sensor values are missing though...

dixonte commented 6 months ago

I hate to be a 'me too' but I just migrated my HAOS to a new machine and am unable to restore or install SunGather due to this exact error message.

nox1986 commented 5 months ago

Bei mir das gleiche Problem. Fehler: The command '/bin/ash -o pipefail -c pip install --no-cache-dir --upgrade pycryptodomex==3.11.0 -r requirements.txt' returned a non-zero code: 1 Ist das ein größeres Problem??

illuzn commented 5 months ago

Seems to be an issue with pycryptodomex==3.11.0

That fails with the following error:

gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPYCRYPTO_LITTLE_ENDIAN -DSYS_BITS=64 -DLTC_NO_ASM -Isrc/ -I/usr/include/python3.11 -c src/MD2.c -o build/temp.linux-aarch64-cpython-311/src/MD2.o                                               
error: command 'gcc' failed: No such file or directory                                                                                                                                                                                                   
[end of output]

I ran the following manually and it works:

pip install --no-cache-dir --upgrade pycryptodomex -r requirements.txt

This installs cryptodomex==3.20.0 but not sure if there will be any compatibility issues with your addon.

bohdan-s commented 5 months ago

Correct. This will stop the “sungrow” connection used by some older models from working. if you don’t use that connection type you won’t see any crashes.

andylitt commented 5 months ago

Hi, I also cannot reinstall Sungather in HA after server upgrade. I get the same pycryptodomex error. I'm on: Core 2024.2.0b7 Supervisor 2024.01.1 Operating System 11.4 Frontend 20240202.0

As an aside, is there any progress on the dual inverter version of Sungather HA Addon? Thanks

StMond commented 4 months ago

Hi, adding --break-system-packages to pip install in Dockerfile helps. Installaing Python modules to a containers OS causes no issues.

#RUN pip install --break-system-packages --no-cache-dir --upgrade -r requirements.txt
RUN pip install --break-system-packages --no-cache-dir --upgrade pycryptodomex==3.11.0 -r requirements.txt

Greetings Stephan

cartman10 commented 4 months ago

Hi, I'm having the same issue after upgrading ... core 2024.2.3 supervisor 2024.02.0 OS 11.5 Any update or workaround on this issue ? Thanks, Cartman

cartman10 commented 4 months ago

Hi, adding --break-system-packages to pip install in Dockerfile helps. Installaing Python modules to a containers OS causes no issues.

#RUN pip install --break-system-packages --no-cache-dir --upgrade -r requirements.txt
RUN pip install --break-system-packages --no-cache-dir --upgrade pycryptodomex==3.11.0 -r requirements.txt

Greetings Stephan

Tried to follow your advice but it didn't work for me. Any idea what went wrong?

EvoSems commented 4 months ago

Requirementstxt PyYAML requests paho-mqtt==1.6.1 pycryptodomex SungrowClient

Docket file. dockerfile: RUN pip install --no-cache-dir --upgrade -r requirements.txt --break-system-packages

Works for me. On an Haos addon.

I believe an official update is coming very soon from dev.

derlbear commented 4 months ago

The latest Home Assistant update 2024.3.1 crashed the addon for me. It stopped working. I'm not able to rebuild it, also reinstalling doesn't work.

The command '/bin/ash -o pipefail -c pip install --no-cache-dir --upgrade pycryptodomex==3.11.0 -r requirements.txt' returned a non-zero code: 1

brononius commented 3 months ago

Is working for a Sungrow SG4.0RS (no batteries, just inverter).

Just be aware that you install it in HACS, and not in default addon (was my mistake, and had the same error).

EvoSems commented 3 months ago

Is working for a Sungrow SG4.0RS (no batteries, just inverter).

Just be aware that you install it in HACS, and not in default addon (was my mistake, and had the same error).

There is a HACS repo? can you link?

I can get it installed as a custom add on through supervisor.

brononius commented 3 months ago

Is working for a Sungrow SG4.0RS (no batteries, just inverter). Just be aware that you install it in HACS, and not in default addon (was my mistake, and had the same error).

There is a HACS repo? can you link?

I've installed this one: https://github.com/alangibson/homeassistant-sungrow under HACS as integration.

image.

Afterwards, you can add it as integration image

EvoSems commented 3 months ago

But you are using the wifi dongle? (requires internal lan port) this doesn't work with mine. I have encrypted modbus.

brononius commented 3 months ago

I'm using WIFI on the inverter.

EvoSems commented 3 months ago

interesting. I have never seen this repo before. I had an alpha version of another repo which I mistook for the one you have presented.

andylitt commented 3 months ago

Got the HACS repo one above working on my dual SG5K-D's (in Master Slave config. I had been waiting for bohdan to release a dual inverter addon version). Still testing this one to see which sensors are reporting the info I need. Just haven't been home in daylight the past couple of days.

andylitt commented 3 months ago

New Sungather 1.4 installed ok. Thanks for the fix. Now for the dual inverter version!

matthewbayard commented 3 days ago

I can't load my inverter into the app. any help?