I’m attempting to upgrade from version 64.2 to 65 on a Ubuntu 16.04 system with a virtual environment… but it throws an error needing minimum Python 3.5.3… I have 3.5.2.
So, I do apt-get install python3.5.3*… and get this for pytango config:
Setting up python3-pytango (8.1.8-1) …
File “/usr/lib/python3/dist-packages/PyTango/tango_gevent.py”, line 56
raise result.error_string, None, result.tb
^
SyntaxError: invalid syntax
Unfortunately the latest version is 3.5.2.
Waiting for Ubuntu 18.04 LTS is not really an option; its release date is 26 April, and a do-release-upgrade usually only works from the following minor release onwards.
I am currently in the process of going down the following path with an unofficial package:
Gave this a try but had to manually install several python packages, something weird with permissions. Gave up and installed ubuntu 17.10 LXC container for HA.
I am also on Ubuntu 16.04, trying to upgrade from 0.64.3 to 0.65.2.
Error: “homeassistant requires Python ‘>=3.5.3’ but the running Python is 3.5.2”
But 3.5.2 is the latest Python for Ubuntu 16.04!
Will stick to 0.64.
(By the way: I am not using a virtual environment)
I just upgraded python to 3.6 on Ubuntu 16.04 and I can confirm it works, but I use virtual environments and I strongly to advise you to make use of that if you want to keep Ubuntu 16.04 as you might break the system when replacing python 3.5.2 by 3.6.
Thanks but still having a problem. I’m assuming it’s due to permissions because HA starts but the front end won’t load and Safari throws a 500 server got itself in trouble error. Ideas?
My original attempt to upgrade the existing virtual environment failed; instead I ended up installing HA into a new directory and copied over my old configuration files.
Edit: Removed the following line from the above which activates Python 3.6 globally and which is not necessary when installing HA in a cirtual environment:
Technically, if you’re using virtual environments, you shouldn’t need to use update-alternatives. To my understanding it might actually even damage your system. Just my 2 cents.
Thanks for this, I’m in the same boat with Ubuntu 16.01.
Just to confirm, do I then need to be explicit for all commands? e.g. python3.6 -m pip install wheel or just python3 -m pip install wheel?
Next time a new Home Assistant version is released, stop the container (includes implicit removal)
docker stop hass
and run the above command again using the new release number. Infact, you can use any release number, so downgrade is easy as well. You could also use homeassistant/home-assistant:latest instead a version number to always get the latest released number.