Kodi Community Forum
PIL on a RPI - 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: PIL on a RPI (/showthread.php?tid=192922)



PIL on a RPI - claymic - 2014-04-22

Hi guys,
I created a little add-on that will re -size some movie thumbnails, this is very important to me since i cant tell the Xbmc to re-size a thumbnail before send to me over JSON.
The Add-on is working fine for windows but when i tested on a Raspberry Pi i get this message
Quote:ImportError: No module named PIL
I tried a suggestion that i get on google to install PIL, but donĀ“t work for me
Quote:sudo apt-get install python-imaging

Addon.xml
Quote:import addon="script.module.pil" />

Quote:import PIL
from PIL import Image
thanks in advance
Best regards
Clayton


RE: PIL on a RPI - Karnagious - 2014-04-22

Could you just add it under resources/lib?


RE: PIL on a RPI - claymic - 2014-04-22

Thanks man. I tried already, but only works on Windows, on the Raspbmc i get the same error. I have another plugin that i did this, for Twisted, and works fine. I am trying to fix this for hours already.


RE: PIL on a RPI - giftie - 2014-04-23

From the command line(ie ssh)
Code:
sudo apt-get install python-imaging