How do i upgrade Python on my RP3 with Hassbian?

I want to upgrade to v3.5 but i cant find how to do it.

This was to v3.6, but the principal should be the same

Hmm sounds easier to start all over with a new clean hassbian image…:joy:

Another way to get Python 3.5 is to upgrade the OS to Raspbian Stretch.

I did this last weekend, and it seems to work fine.

Does It worth to upgrade?

I haven’t found any significant difference in normal operation.

I upgraded because they seem to have changed the bluetooth significantly, and I wanted to see if it had become any more reliable, but I haven’t had a chance to try it out yet.

I cant get the knx component to work after upgrade to 0.53 anymore.

Due to lame multicast support the routing abstraction and the gateway scanner only work with python >=3.5.

I think sooner or later you need python >= 3.5.
https://github.com/home-assistant/home-assistant/issues/9328

See my post here to upgrade to python 3.6 in hassbian:
https://github.com/home-assistant/home-assistant/issues/8342#issuecomment-326918777

1 Like

The newest version of hassbian is now based on stretch:

Just to double check, upgrading the OS to Raspbian Stretch doesn’t break HA (I’m currently on 0.53)? So I can upgrade to Raspbian Stretch and then upgrade to HA 1.3?

You have to recreate the virtual environment, as now you are using Python 3.5. Just move the exisiting one

sudo mv /srv/homeassistant /srv/ha_old

Then create a new environment starting from step 2 here

1 Like

I messed up royally last time using wrong instructions to upgrade my RPi3 Hassbian, ended up reinstalling from scratch.

Still on HA 63.3/python 3.5.3, now getting ready to upgrade, I can safely upgrade to HA 65.x using the official instruction, right?
Otherwise, can someone please point me to the definitive upgrade guide/instruction? Googling alone can be dangerous :sweat_smile:
TIA

why dont you just move you yaml to a safe place just in case

1 Like

Yup, I have daily incremental backup to a separate machine since my last mess-up.

https://home-assistant.io/docs/installation/hassbian/common-tasks/#update-home-assistant

Thanks, I did use that and only have the “Failed building wheel for aiohttp”.
Followed Failed building wheel for aiohttp and all is good.
Pretty painless this time around.

Dear TinusK,
Thanks for your help. I tried yours but found some errors. One occurred during updating (screen shot attached) and some others I saw in hassbian log (see attachments).
PS: I know nothing about coding so I cannot know what happens
Please help
Thank you.
Minh Chau