I see errors related to Python version in my logs.
System: Core 2025.6.1 (on Pi5), Supervisor 2025.05.5, Operating System15.2, Frontend 20250531.3
I did find HA will update Python in their updates, but in terminal I see:
python --version
Python 3.12.9
All updates have been done, so installed version should be higher, according to HA release notes?
No idea what to do or how to update. Any guidance would be appreciated!
Error 1:
Logger: py.warnings
Source: components/cast/init.py:7
Last logged: 15:20:53
/usr/local/lib/python3.13/site-packages/google/init.py:2: UserWarning: pkg_resources is deprecated as an API. See Package Discovery and Resource Access using pkg_resources - setuptools 80.9.0 documentation. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81. import(âpkg_resourcesâ).declare_namespace(name)
Error 2:
Logger: py.warnings
Source: components/apple_tv/init.py:10
Last logged: 15:21:05
/usr/local/lib/python3.13/site-packages/google/protobuf/runtime_version.py:98: UserWarning: Protobuf gencode version 5.28.1 is exactly one major version older than the runtime version 6.31.1 at pyatv/protocols/mrp/protobuf/GetVolumeMessage.proto. Please update the gencode to avoid compatibility violations in the next runtime release. warnings.warn(
HA was updated to 3.13 the end of last year.
Are you running an old version of HA or something?
What installation type are you using. Normally with HAOS these problems are avoided.
@francisp
Thanks. I could not find any relevant info on this, so good to hear.
Taking another look at the logs, I also found this:
Logger: pychromecast.socket_client
Source: /usr/local/lib/python3.13/site-packages/pychromecast/socket_client.py:416
First occurred: 15:20:54 (1 occurrence)
Last logged: 15:20:54
[Eetkamer(a75d4***********************************.local.):8009] Failed to connect to service MDNSServiceInfo(name=âGoogle-Nest-Mini-a********************._googlecast._tcp.local.â), retrying in 5.0s
So it looks like there is also a 3.13 version on the system? I am confused.
Thatâs the bit I couldnât understand when trying to replicate the reported issue on current HAOS + HA + RPi CM5, so I started diggingâŚ
This Terminal & SSH add-on runs in a different container (as all Add-Ons do), but via the web command line, or SSHâing in remotely, the result is the same - python: command not found.