Kodi Community Forum
Python image library runtime error - 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: Python image library runtime error (/showthread.php?tid=8879)



- Ditchwater - 2005-01-07

hi,

i'm new to python development, but have developed a little web-based python interface to nebula's digitv digital recorder. the nebula app, running on a pc on the network, puts out a bmp thumbnail which i want to display on xbmc.
as far as i can tell, i can't display bmps in xbmcgui. so i'm importing the image library and trying to convert the bmps to jpegs using image.save, but this gives me a run time error telling me that the "_imaging c module is not installed"

is it the case that pil is not fully implemented on xbmc, or have i simply not fully installed it? if the latter, how do i go about getting/installing the c module?

is there another way around my problem? can the xbmcgui dlibrary isplay bmps using some technique i don't know about? is there another way to convert bmps to jpegs/gifs? i have tried simply renaming the bmp to jpg/jpeg but it doesn't seem to work.

any help appreciated

john