New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ubuntu 16.04 LTS does not have Python 3.5.3 so can not run version 0.65 #13089
Comments
How to upgrade python https://askubuntu.com/questions/865554/how-do-i-install-python-3-6-using-apt-get Why we require python 3.5.3 https://community.home-assistant.io/t/0-65-rename-entities-new-filter-sensor-upcloud-and-channels/46331/16?u=danielhiversen |
@Danielhiversen the linked solution will just install Python 3.6 as One could symlink EDIT: HA fails to start for me with the given solution applied, no relevant logs. |
Create a virtual environment first and specify the python version that should be used for the environment. Then install home assistant inside the environment. Then you don't need to change any system defaults. |
Another challenge is that the suggested PPA (deadsnakes) does not supply pip3 for python3.6 you have to curl some external stuff it seems, but I'm a bit weary that will break other stuff as it's not part of the package, I would execute that outside of a venv (feels like a catch-22). |
That's not my experience. You don't need to install a specific pip3 for Python 3.6 before creating the environment. |
I know this is not the place to solve python venv problems, but this is what happens for me after installing python3.6 from the forementioned PPA:
Found the solution: |
You can use This is a nice guide and overview on python package management for Ubuntu: |
My virtualenv prefix is
Then all I had to do was restart the service (in my case hass is started as |
Thanks trisk - one small change . /opt/homeassistant/activate to . /opt/homeassistant/bin/activate |
Does recreating the virtualenv pose any risk to the existing HA configuration (stored in ~homeassistant/.homeassistant) and other systems that depend on HA (like appdaemon)?
Thanks |
No, it does not affect the HA configuration. |
This is stupid, why would you break usage on the most widely used Linux OS? At least if you're going to do this provide a guide to a workaround for novice users. Worse decision yet. |
@shaun-ba |
@Danielhiversen As 100s of people have said and comment on the forums etc this is not a valid workaround, installing a separate python version that does not replace the existing version is not a workaround, a lot more work is required for a novice user to get this running. You've effectively wiped out 20% of your users, it's not "that I see it that way", it's clear from comments that it was a bad and premature decision to make, the next LTS release is this month if not already. |
what's the point of this discussion? 3.4 support won't come back and Ubuntu is not our primary platform... |
It's not a discussion, as you just say a bad decision was made and it won't now be reverted. This is a great project, but attitudes like this towards novice users mean it won't be adopted as well as it could be. |
I think that novices are expected to go with hass.io, and if you install it
yourself on your system you're not a novice anymore (congrats!). But I
agree, not all architectures have a ppa for Python 3.4. However, I suspect
that the docker version doesn't have this problem because it ships with
python included.
…On Mon, Apr 23, 2018 at 5:19 PM, Shaun G ***@***.***> wrote:
It's not a discussion, as you just say a bad decision was made and it
won't now be reverted.
This is a great project, but attitudes like this towards novice users mean
it won't be adopted as well as it could be.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#13089 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AEDvKvQvYYoJMZNmNa0BFMbXjkFiYWu8ks5treMKgaJpZM4SluEH>
.
|
You dropped support for python 3.4 and have bumped the minimum version to Python 3.5.3
The currently supported long term support version of Ubuntu 16.04 comes with version Python 3.5.2 so I can no longer run home assistant on my up to date operating system.
Can you change the minimum python version down to 3.5.2 for the next few months until the next long term support version is released in one months.
The text was updated successfully, but these errors were encountered: