[SOLVED] Right steps to update Home Assistant when support for Python version is being removed?

- DietPi version
dietpi@homeserver:~$ cat /boot/dietpi/.version

- Distro version
dietpi@homeserver:~$ echo $G_DISTRO_NAME $G_RASPBIAN
bullseye 0

- Kernel version
dietpi@homeserver:~$ uname -a
Linux homeserver 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr  3 17:24:16 BST 2023 aarch64 GNU/Linux

- Architecture
dietpi@homeserver:~$ dpkg --print-architecture

- SBC model
dietpi@homeserver:~$ echo $G_HW_MODEL_NAME
RPi 4 Model B (aarch64)

I have read the steps to update Home Assistant:

and several topics related to the update as well and still when is this command really needed?

dietpi-software reinstall 157

As my current Home Assistant version is 2023.07.3

dietpi@homeserver:/mnt/dietpi_userdata/homeassistant$ python3 --version
Python 3.9.2

There’s this message:

Support for Python 3.10.11 is being removed
Support for running Home Assistant in the current used Python version 3.10.11 is deprecated and will be removed in Home Assistant 2023.8. Please upgrade Python to 3.11 to prevent your Home Assistant instance from breaking.
Warning - 26/08/2023

So is this the scenario when the reinstall command should be used?

Thank you in advance!

You would need to update your system to Debian Bookworm Debian Bookworm has been released – DietPi Blog


Thank you! Services back and running :+1:

- Distro version
dietpi@homeserver:~$ echo $G_DISTRO_NAME $G_RASPBIAN
bookworm 0

Additionally: Home Assistant 2023.11.3

Just three doubts, maybe of little importance/impact:

I assume the message below showsbecause there is no NVME storage in my setup:

Installing new version of config file /etc/nvme/discovery.conf ...
Created symlink /etc/systemd/system/default.target.wants/nvmefc-boot-connections.service → /lib/systemd/system/nvmefc-boot-connections.service.
Created symlink /etc/systemd/system/default.target.wants/nvmf-autoconnect.service → /lib/systemd/system/nvmf-autoconnect.service.
nvmf-connect.target is a disabled or a static unit not running, not starting it.
Could not execute systemctl:  at /usr/bin/deb-systemd-invoke line 145.
dietpi@homeserver:~$ sudo systemctl status nvmf-autoconnect.service
× nvmf-autoconnect.service - Connect NVMe-oF subsystems automatically during boot
     Loaded: loaded (/lib/systemd/system/nvmf-autoconnect.service; enabled; preset: enabled)
     Active: failed (Result: exit-code) since Mon 2023-11-27 08:23:51 CET; 44min ago
    Process: 741 ExecStartPre=/sbin/modprobe nvme-fabrics (code=exited, status=1/FAILURE)
        CPU: 12ms

Nov 27 08:23:51 homeserver systemd[1]: Starting nvmf-autoconnect.service - Connect NVMe-oF subsystems automatically during boot...
Nov 27 08:23:51 homeserver modprobe[741]: modprobe: FATAL: Module nvme-fabrics not found in directory /lib/modules/6.1.21-v8+
Nov 27 08:23:51 homeserver systemd[1]: nvmf-autoconnect.service: Control process exited, code=exited, status=1/FAILURE
Nov 27 08:23:51 homeserver systemd[1]: nvmf-autoconnect.service: Failed with result 'exit-code'.
Nov 27 08:23:51 homeserver systemd[1]: Failed to start nvmf-autoconnect.service - Connect NVMe-oF subsystems automatically during boot.

Regarding OpenSSH client, these two error messages might have no real impact - I think I saw in the log a new user was created.

Setting up openssh-client (1:9.2p1-2+deb12u1) ...
configuration error - unknown item 'NONEXISTENT' (notify administrator)
configuration error - unknown item 'PREVENT_NO_AUTH' (notify administrator)

Home Assistant was automatically updated to 2023.11.3 The software is running but during the automated installation of Python I noticed this error. Is the reference Tk toolkit really needed?

[ INFO ] DietPi-Software | Installing Python with Home Assistant module into pyenv, please wait...
Downloading Python-3.11.6.tar.xz...
-> https://www.python.org/ftp/python/3.11.6/Python-3.11.6.tar.xz
Installing Python-3.11.6...
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/homeassistant/.pyenv/versions/3.11.6/lib/python3.11/tkinter/__init__.py", line 38, in <module>
    import _tkinter # If this fails your Python may not be configured for Tk
ModuleNotFoundError: No module named '_tkinter'
WARNING: The Python tkinter extension was not compiled and GUI subsystem has been detected. Missing the Tk toolkit?
Installed Python-3.11.6 to /home/homeassistant/.pyenv/versions/3.11.6

hmm maybe you have something like the nvme-cli package installed? At least I don’t know where that would come from.