Kodi Community Forum
exact python version shipped with kodi? - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26)
+---- Forum: Python 3 migration (https://forum.kodi.tv/forumdisplay.php?fid=281)
+---- Thread: exact python version shipped with kodi? (/showthread.php?tid=374718)



exact python version shipped with kodi? - sanzoghenzo - 2023-10-15

Hi, I can't find this little, but very important for addons developers, information: what is the exact python version used by kodi, especially on windows?
I've helped with the update of a few addons using python 3.10 syntax, and they work well on Linux and android;
Now a windows user stumbled upon errors related to features introduced in python 3.9.
I don't own windows machines so I can't check which version is shipped, but I think this should be the first piece of info to show in the development guides!


RE: exact python version shipped with kodi? - Fuzzard - 2023-10-15

Windows still ships with 3.8.15 as of v20 and upcoming v21


RE: exact python version shipped with kodi? - sanzoghenzo - 2023-10-15

Thank you @Fuzzard for the info!

I'll keep that in mind for future development.


RE: exact python version shipped with kodi? - izprtxqkft - 2023-10-15

if your code is going to be running at the bleeding edge of python features consider outputting the python version to the debug log so that when a user gives you a debug log you know already

python:
xbmc.log("Python: %s" % sys.version,xbmc.LOGDEBUG)