Python 3.13 deprecated? HA

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(

Hello Gronaldo

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.

2 Likes

Thnx , @Sir_Goodenough
I have HAOS on a Pi5, Core 2025.6.1, Supervisor 2025.05.5, Operating System15.2, Frontend 20250531.3

All updated performed, as far as I am aware. At least nothing no to update now.

I found the 2024.12 update you referring to. Hense I’am surprised I have old version.

1 Like

These errors are known, nothing to worry about. Will be fixed in some future release

@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.

HA OS 15.2 → in the Core 2025.6.x docker Python 3.13 is included

Okay, but would you expect the comment “python --version”, to report
“Python 3.12.9”?

If you type that in one of the SSH add-ons, you are in a different docker

2 Likes

Ok, thanks!
I will just trust your insights and wait for future release to fix issues.
Rgds.

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.

The Advanced SSH & Web Terminal doesn’t list Python in the docs, but the release notes show:

Update Python to v3.12.9-r0

Mystery solved!

It’s not the HA Python version, but that of the Advanced SSH & Web Terminal which is a separate container.