Kodi Community Forum
xbmc.python prerequisite - 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)
+--- Thread: xbmc.python prerequisite (/showthread.php?tid=374825)



xbmc.python prerequisite - Piero4556 - 2023-10-24

Hello ,

The  'Hello World' addon example has XBMC Python 2.14.0 as a prerequisite

<requires> <import addon="xbmc.python" version="2.14.0"/> </requires>

How to determine the xbmc.python version?
How to update it ?

It probably cannot import that library

My Kodi is Matrix 19.1

Image

Thank you


RE: xbmc.python prerequisite - Piero4556 - 2023-10-24

How to determine the xbmc.python installed version?
Kodi 19.1
Debian 11


RE: xbmc.python prerequisite - pkscout - 2023-10-24

https://kodi.wiki/view/Addon.xml#Dependency_versions


RE: xbmc.python prerequisite - Piero4556 - 2023-10-24

Thank you I assumed that version 3.0 would be compatible with 2.14, considering the higher number
solved


RE: xbmc.python prerequisite - scott967 - 2023-10-25

Solved, but Python 3 in general is not backward compatible with python 2.  For the examples, I think if you go to romanvm github he has updated some of these for Kodi 20.  I also highly recommend his "kodistubs" (pip from pypi) if you use any sort of IDE for python dev.

scott s.
.


RE: xbmc.python prerequisite - Piero4556 - 2023-10-25

I didn't know that was the interpreter Smile 
I thought it was a library
Thanks for the tips


RE: xbmc.python prerequisite - Piero4556 - 2023-10-25

very nice kodistubs