What is the right way to update HASSbian?

I tried with
$ pip3 install --upgrade homeassistant
$ pip3 install --upgrade homeassistant -U
and I’m getting a lot of errors,I tried to paste log but is too long.
Any help is appreciated.Thanks

1 Like

I also tried it with sudo … But also didn’t work. I’m also looking for the solution

You need to be inside the virtual environment and it must be activated. The docs for the Installation in Virtualenv could give you directions to do it.

Hasspian does VENV for the HA install? I had asked Ben about it in the comments of his video and he said it wasn’t in there yet. Has this changed in the last few days?

i was just looking at the docs. Perhaps @Landrash knows the current state.

I’m currently not at a computer so typing this from memory
From other device

ssh pi@ip
sudo systemctl stop [email protected]
sudo su -s /bin/bash homeassistant
source /srv/homeassistant/bin/activate
pip3 install --upgrade homeassistant
exit
sudo systemctl start [email protected]

5 Likes

So HASSbian does have HA installed in a venv then?

Yes. Thought I wrote that in the install page. I’ll add it to the list.

1 Like

@Landrash thanks a lot!

@Landrash Thanks, your procedure works like a charm. It would be nice if it was added to the upgrade instructions page.

Wim

Will be asap I’m at a proper computer.