Hello all
I am running HA Core on a RPi 3B+ but the version is about a year old. I am of the opinion if it ain’t broke, don’t fix it. Just recently there was such a break; Life360 changed its servers and the API stopped working, and I thought maybe it’s time to look at bringing HA up to date. Rather than upgrading and risking my system/integrations breaking, I decided to build a new one from scratch and then cut over when I’m happy everything works as expected. I work in an industry which is risk-averse so this seems like the sensible way to go about it.
I can see from the release notes that Python 3.9 (my current release) is no longer supported, and 3.10 won’t be supported for long, so I’d like to go straight to 3.11 and try to future-proof it a bit. The thing is, the latest RPi OS still comes with 3.9 so I have to install 3.11 myself. I have done this a couple of times on a fresh OS install but each time I come to install the venv for HA Core it fails, seemingly looking for a dependency but I am not sure how to find out which dependency it is missing. The error is :
Could not find platform dependent libraries <exec_prefix>
Python path configuration:
PYTHONHOME = (not set)
PYTHONPATH = (not set)
program name = 'python3'
isolated = 0
environment = 1
user site = 1
safe_path = 0
import site = 1
is in build tree = 0
stdlib dir = '/usr/local/lib/python3.11'
sys._base_executable = '/usr/bin/python3'
sys.base_prefix = '/usr/local'
sys.base_exec_prefix = '/usr/local'
sys.platlibdir = 'lib'
sys.executable = '/usr/bin/python3'
sys.prefix = '/usr/local'
sys.exec_prefix = '/usr/local'
sys.path = [
'/usr/local/lib/python311.zip',
'/usr/local/lib/python3.11',
'/usr/local/lib/python3.11/lib-dynload',
]
Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding
Python runtime state: core initialized
LookupError: no codec search functions registered: can't find encoding
Current thread 0x76f1e040 (most recent call first):
<no Python frame>
Sorry if it’s staring me in the face, but I don’t see it!
Thanks