Will Python 2 Add-ons still work with latest Kodi releases - 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: Will Python 2 Add-ons still work with latest Kodi releases (/showthread.php?tid=327556) |
Will Python 2 Add-ons still work with latest Kodi releases - docwra - 2018-01-24 The first, most important question I guess is.... Will my old Python 2 Add-ons still work with recent Kodi releases? If so, why should I migrate? Oh and what to do with dependencies I have no control over? Thanks! RE: Will Python 2 Add-ons still work with latest Kodi releases - ronie - 2018-01-24 sure, they will work fine in any kodi release, including v18 Leia. as of v19 M* (which is going to be released in a far an distant future), addons will need to be py3 compatible. we will ofc make sure all official python libraries in our repo (script.module.*) will be py3 compatible. if there's other deps you're worried about, lmk. RE: Will Python 2 Add-ons still work with latest Kodi releases - docwra - 2018-01-24 Well Plugintools.py is not really a dependency, I just include it with all my Youtube Add-ons. I guess many others do as well https://github.com/zag2me/plugin.video.demoscenehighlights/blob/master/plugintools.py Original source is here: http://www.mimediacenter.info/plugintools so I guess I just need to contact him to port it for the future. RE: Will Python 2 Add-ons still work with latest Kodi releases - TobiX - 2018-01-28 (2018-01-24, 13:32)docwra Wrote: Well Plugintools.py is not really a dependency, I just include it with all my Youtube Add-ons. I guess many others do as wellWell, then "plugintools" should probably be a scripting addon in the future to cut down on copy & paste Hell, kodi-plugin-routing is only 200 lines, so only half the size of this "plugintools" - OTOH, some of the plugintools functions have better alternatives IMHO: - get_params: kodi-plugin-routing - read, read_body_and_headers: requests Regards, Tobias PS: Your addon claims to be licensed as GPL2 (well, the source header says GPL3), which makes the effective license GPL3, since plugintools is GPL3. RE: Will Python 2 Add-ons still work with latest Kodi releases - twilight0 - 2018-01-28 Are you guys thinking what I am thinking? Old "fully-blown" addons will be phazed out with the release of Kodi 19 unless some really competent developers decide to port them to python 3. RE: Will Python 2 Add-ons still work with latest Kodi releases - da-anda - 2018-01-28 no idea what you mean twilight0. Official support for Python 2.7 will end in 2020, which is the reason for us moving towards Python 3. See https://www.python.org/dev/peps/pep-0373/ RE: Will Python 2 Add-ons still work with latest Kodi releases - V8MEM - 2018-01-28 kodi 19 is like 2 years away, by that time almost all current addons will be obsolete anyway. RE: Will Python 2 Add-ons still work with latest Kodi releases - docwra - 2018-01-29 Python 2 to Python 3 porting is actually pretty simple. The format is very similar and the syntax only slightly different as far as I can tell. Basically it should be pretty easy. As a bonus, the porting will mean developers will hopefully look at new features along the way too so its not all bad. RE: Will Python 2 Add-ons still work with latest Kodi releases - twilight0 - 2018-01-30 I mean about pirate addons. RE: Will Python 2 Add-ons still work with latest Kodi releases - docwra - 2018-01-30 (2018-01-30, 10:03)twilight0 Wrote: I mean about pirate addons.I'm guessing all Add-ons are possible to be upgraded, just like everything else. Code is just code at the end of the day, its just up to the developer to do the work. That work, should not be huge, especially with such a long time until it happens. RE: Will Python 2 Add-ons still work with latest Kodi releases - da-anda - 2018-01-30 the bump has nothing to do with us trying to get rid of piracy add-ons. I mean, I would love to see them burn in hell and nobody would port them, but I really doubt that wish will come true. |