Skip to content
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

Upgrade Home assistant python 3.9 #4500

Closed
maury77 opened this issue Jun 21, 2021 · 11 comments
Closed

Upgrade Home assistant python 3.9 #4500

maury77 opened this issue Jun 21, 2021 · 11 comments

Comments

@maury77
Copy link

maury77 commented Jun 21, 2021

what is the procedurre for this upgrade?

@MichaIng
Copy link
Owner

Many thanks for your question.

Do you mean upgrading Home Assistent or the underlying Python version?

For upgrading Home Assistent, you can use the update script: /home/homeassistant/homeassistant-update.sh
If you need to upgrade or install Python modules into the environment:

sudo -u homeassistant bash
. /home/homeassistant/pyenv-activate.sh
pip3 install -U <module>

Check out the docs about this as well: https://dietpi.com/docs/software/home_automation/#home-assistant

If you want to upgrade the underlying Python version, you need to do a reinstall: dietpi-software reintsall 157

@maury77
Copy link
Author

maury77 commented Jun 21, 2021

I have the last version 2021.6.5 with python 3.8.5 on dietpi , but I have a problem with an integration & dietpi and I suppose the issue is related to python version

the process is blockend on this istruction await hass.async_add_executor_job. with no logs of errors

In other distribution the problem is not exists.

@MichaIng
Copy link
Owner

A reinstall will compile Python 3.8.10 currently. The last time I checked, Home Assistant stated compatibility with Python 3.8 but not Python 3.9 yet.

@MichaIng
Copy link
Owner

Did the reinstall help?

@maury77
Copy link
Author

maury77 commented Jul 4, 2021

in the end I haven't reinstalled yet.

I don't understand why on my installation the landroid cloud plugin (https://github.com/MTrab/landroid_cloud/blob/master/README.md)

stops on this instruction

hass.async_add_executor_job(client[dev].connect, device, False)

and then timeout connection in other installation this problem is not present, in the log no information or error

@MichaIng
Copy link
Owner

I mark this as closed. Feel free to reopen if required.

@PrzemekSkw
Copy link

sudo -u homeassistant bash
. /home/homeassistant/pyenv-activate.sh
pip3 install -U <module>

Hello, I have last HA version and have notification to upgrade python to 3.9. Can You tell me what to put in to upgrade python?
Regards.

@Joulinar
Copy link
Collaborator

Joulinar commented Nov 4, 2021

usually a reinstall of HA should do this.

@MichaIng
Copy link
Owner

MichaIng commented Nov 4, 2021

If you do not run a Stretch or Buster Raspberry Pi ARMv6 or ARMv7 system, simply reinstall it:

dietpi-software reinstall 157

If you runs such a system, wait with the reinstall until we fixed: #4928

@PrzemekSkw
Copy link

PrzemekSkw commented Nov 5, 2021

@MichaIng I install Dietpi (upgraded to Bullseye) on intel MiniPC x64. Can I just reinstall HA to have that python upgrade?
Regards.

@MichaIng
Copy link
Owner

MichaIng commented Nov 5, 2021

Yes exactly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants