Home Assistant 2022.12 and Python 3.10 - How to Update?

How i update the Python version to 3.10 and run Home Assistant ?
I try to reinstall Home Assistant etc but there is always the v3.9

Also the pyenv install 3.10 runs - but Home Assistant doenst accept it…

I dont know how to to it cause python is not my friend :slight_smile:
Could somebody help me out ?

Screenshot 2022-12-10 100944

Just sit back and wait on next DietPi release Beta v8.12.0 by MichaIng · Pull Request #5952 · MichaIng/DietPi · GitHub

1 Like

Thx - that will save my weekend :slight_smile: :star_struck:

EDIT:
8.12 released - i cant see any changes.
So i think it will be fixed sometime in december.

Nasty, I cannot get it built on any of Buster, Bullseye and Bookworm, tested on 32-bit RPi in container. It always fails with either segmentation fault or a missing/wrong function reference at different stages (without indicating that a dependency is missing, as if source were broken or incompatible). I cannot test on real hardware until January. If someone finds time to test with DietPi beta v8.12, that would be great: Open Beta v8.12 | Please help testing and hardening our upcoming release · Issue #5969 · MichaIng/DietPi · GitHub

So far it’s in beta only.

Tested installation with DietPi v.8.12 BETA and it is working fine on 64bit NanoPi R5S + 32bit RPI 3B+

16101 homeassis  176M   0  0.0  0:52.40 └─ /home/homeassistant/.pyenv/versions/3.10.9/bin/python3.10 /home/homeassistant/.pyenv/versions/3.10.9/bin/hass -c /mnt/dietpi_userdata/h
1 Like

Okay great, many thanks for testing. Then it must be an issue within the container, or insufficient RAM + issues with swap usage.

did u do a fresh install or a simple update ?
I´ve installed 8.12 Beta and my Home Assistant is in Python-Version 3.9.15

@MichaIng

found following on 32bit. Seems an issue with numpy

Dec 11 16:10:30 DietPi3 Home Assistant[473]:       creating build
Dec 11 16:10:30 DietPi3 Home Assistant[473]:       creating build/src.linux-armv7l-3.10
Dec 11 16:10:30 DietPi3 Home Assistant[473]:       creating build/src.linux-armv7l-3.10/numpy
Dec 11 16:10:30 DietPi3 Home Assistant[473]:       creating build/src.linux-armv7l-3.10/numpy/distutils
Dec 11 16:10:30 DietPi3 Home Assistant[473]:       INFO: building library "npymath" sources
Dec 11 16:10:30 DietPi3 Home Assistant[473]:
Dec 11 16:10:30 DietPi3 Home Assistant[473]:
Dec 11 16:10:30 DietPi3 Home Assistant[473]:       [Errno 2] No such file or directory: 'g++'

You need to reinstall HA

Okay, but will my settings be imported from the old HA Installation? or will everything be reset?
U mean “dietpi-software reinstall 157” right ?

Strange, numpy it has a few C++ source files indeed: Search · · GitHub
But it never failed to compile without C++ compiler :thinking:. I build configuration steps there are usually checks for g++ included. Probably optional features are disabled if it’s missing.

So, i reinstall Home Assistant and everything works fine. All my Settings are there and working.
Great work. Now i´m waiting for the day that we will get Supervisor running :stuck_out_tongue:

image

It’s working if you install manually. But we will not implement it into dietpi-software as it has conflicting requirements with our network stack implementation.

1 Like