Hi, in a new launcher addon I need to use PIL in order to automatically create fanarts/posters from DOOM levels. I use this code to include PIL:
Code:
# --- Python standard library ---
from __future__ import unicode_literals
...
from PIL import Image, ImageDraw
In Linux Debian with the packaged Kodi Krypton it works like a charm. However, in Windows I get the following error:
Code:
20:26:33.868 T:5584 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.ImportError'>
Error Contents: No module named PIL
Traceback (most recent call last):
File "C:\Users\jose\AppData\Roaming\Kodi\addons\plugin.program.advanced.DOOM.launcher\addon.py", line 21, in <module>
import resources.main
File "C:\Users\jose\AppData\Roaming\Kodi\addons\plugin.program.advanced.DOOM.launcher\resources\main.py", line 42, in <module>
from disk_IO import *
File "C:\Users\jose\AppData\Roaming\Kodi\addons\plugin.program.advanced.DOOM.launcher\resources\disk_IO.py", line 23, in <module>
from PIL import Image, ImageDraw
ImportError: No module named PIL
-->End of Python script error report<--
According to this post PIL/Pillow should be available in Kodi. I have tested both Krypton 17.0 and 17.1 RC1 and both fail to load Advanced DOOM Launcher. Any ideas? Thanks a lot