Python version in OSMC's Kodi 21: any plans to move past 3.9?

Hi all, I develop a few Kodi add-ons (most recently MetaMender, script.metamender in the official repository) and ran into something on my Vero V that I’d like to understand better.

Setup: Vero V, OSMC 2026.05-2, Kodi 21.3 (vero5-mediacenter-osmc 21.3.0-7), Debian 11.11. Kodi runs the system Python, which is 3.9.2.

What happened: my add-on installed fine but its service failed to start with TypeError: unsupported operand type(s) for |: 'type' and 'NoneType'. The cause was a type alias written as int | None, which Python only supports at runtime from 3.10. The official Kodi 21 builds for Windows, Android and macOS ship Python 3.11 or newer, so the problem only showed up on OSMC. I’ve fixed it on my side and now test against 3.9, so this is not a support request, just a question about where things are heading.

My questions:

  • Is there a plan or a rough timeline for an OSMC release based on a newer Debian (12 ships Python 3.11, 13 ships 3.13), or another way for Kodi on OSMC to get a newer Python?
  • Until then, is it right for add-on developers to treat Python 3.9 as the floor for anything that should run on OSMC, including Kodi 21 and the coming Kodi 22?
  • Does this apply to every OSMC device (Vero V, Vero 4K/4K+, Raspberry Pi), or do some already use a newer Python?

Python 3.9 reached end of life in October 2025, so I expect more add-ons will start using 3.10+ features and break on OSMC in the same way, often with a traceback in the log that users won’t connect to the Python version. Knowing the plan would help me and other developers decide how long to keep 3.9 support.

Thanks for all the work on OSMC and the Vero; it has been a great box.

According to this, i suspect we are going to see an update to Python when Kodi 22 arrives.

Hi,

Yes, we are moving to Python 3.13 (shipped in Debian Trixie).
We plan to just track Python from Debian releases, so there will always be a bit of a lag however.

I appreciate you asking about this and your consideration of OSMC users.

Cheers,

Sam

Hi Sam,
Sorry for asking, and I likely know the answer but will ask it anyhow :smiley:
Any inkling on the ETA of that?

You might have read this in other threads:

”When it’s ready!”

2 Likes