Kodi Community Forum

Full Version: [split] Changes to the python API for Kodi Krypton
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
(2015-12-06, 21:40)ronie Wrote: [ -> ]2015-12-05 PIL replaced with Pillow

we've replaced the PIL module shipped with Kodi with Pillow.
Pillow is fully backward compatible* with PIL, so this change should not cause any issues in your addon.
the script module will still be called script.module.pil

* the only differences are related to supported import methods
  • Pillow does not support 'import Image'. please use 'from PIL import Image' instead.
  • Pillow does not support 'import _imaging'. please use 'from PIL.Image import core as _imaging' instead.


pull request: 8207 (PR) 
Hi, is this info still valid, i.e. that Pillow is available in Kodi, but not PIL?

Assuming it is Pillow, we have an issue within xbmc.plugin.video.nba (NBA League Pass add-on) on Fire TVs with Kodi 18 (not on Windows, not on RPi3).

The log: https://paste.kodi.tv/popeqebaze

I have checked the current state of the https://github.com/python-pillow/Pillow repository, and two lines addressed in the log are not those stated in the log.
Then I checked all commits before that, and found that only one state of the repository matches the lines 833 and 195 from the log - it's this one (dating back in Oct 1, 2015): https://github.com/python-pillow/Pillow/...78c4d31d41.

So, my question is why FireTV's Kodi 18 uses that version instead of something newer?
Note that dependency check says that no updates are available: https://github.com/maxgalbu/xbmc.plugin....-443223188
correct, kodi ships with pillow.
pil/pillow is known to misbehave on android..

i'll move your posts to the android support section.
Why it's using that version? No one simply did any updates.
Any plans for updating it?
Find some one who is interested in doing the work for it Smile
Smile I would like to get some info about that, what is actually needed/expected, how are things done for other devices etc. Eventually maybe I could do it.