diyhue / hassio-addon

34 stars 11 forks source link

Not loading/reinstalling after switch from RPi to VM on NAS #16

Closed terrorhai closed 10 months ago

terrorhai commented 1 year ago

Hey, first, thanks for the awesome work, I used the add on for a long time on my RPi 4 with Home Assistant! Now I tried to move my Home Assistant from a full backup to my NAS into a Virtual Box VM running Home Assistant OS. Everything works fine, except the diyhue addon. The NAS is an ASUSTOR AS6704T, so plenty of power.

When trying to rebuild or reinstall I get this error: The command '/bin/bash -o pipefail -c curl -J -L -o $diyhue.tar.gz "https://github.com/diyhue/diyHue/archive/refs/heads/master.tar.gz" && tar xzvf $diyhue.tar.gz --strip-components=1 -C diyhue && rm -rf $diyhue.tar.gz && pip3 install -r /diyhue/requirements.txt --no-cache-dir' returned a non-zero code: 1

I don't know what I have to do to fix this error....help ;-)

EDIT: I tried to set up a fresh Home Assistant install and the add on installation gives me the same error.

mariusmotea commented 1 year ago

Unfortunately you have only an exit code there and not the error. What you execute are multiple commands in one line. Try to execute manually every command to see where it fails. The && is the delimiter between the commands.

Bx16 commented 1 year ago

Hello, I got same error in HA, manual install : https://i.imgur.com/C0RumFQ.png

terrorhai commented 1 year ago

Hello, I got same error in HA, manual install : https://i.imgur.com/C0RumFQ.png

Had to manually install python and pip3 because it wasn't installed. I did the manual way too and got the exact same error message.

Edit: Attached log with some more info. Screenshot 2023-07-26 173641

mariusmotea commented 1 year ago

Can you try to install PyYAML version 6.0.1. I notice this is the last version and the error is with this library.

The version is defined in requirements.txt file https://github.com/diyhue/diyHue/blob/master/requirements.txt#L13

https://pypi.org/project/PyYAML/6.0.1/

PyPI
PyYAML
YAML parser and emitter for Python
terrorhai commented 1 year ago

Hey Marius, I made a new setup of home assistant on my NAS yesterday, restored my backup from the Pi and now everything installed successfully. Had no problems with DIYhue at all, it just installed from the backup and everything works fine.