Posts: 81
Joined: Feb 2013
Reputation:
2
I've just checked and I do have a script.module.pil the XBMC directory in Program Files, but trying to import it with "from PIL import Image" fails for some reason. My program operates under Python normally, but doesn't run under XBMC.
Any help appreciated
Posts: 81
Joined: Feb 2013
Reputation:
2
I get a similar error with that. Just did a list of installed modules, and there is no PIL or Image or anything in the available list; I'm guessing that although it has been installed into XBMC, it has not been registered somehow with Python. I don't know how to fix this, though...
Posts: 2,368
Joined: Mar 2010
Reputation:
60
giftie
Skilled Python Coder
Posts: 2,368
2013-05-17, 00:12
(This post was last modified: 2013-05-17, 00:14 by giftie.)
In your c:\Program Files(x86)\XBMC\addons\script.module.pil is there a lib folder?
Also delete your addons database file then restart XBMC.
Posts: 17,859
Joined: Jul 2011
Reputation:
371
2013-05-17, 00:17
(This post was last modified: 2013-05-17, 00:17 by Martijn.)
Remove the crap one you installed from supperrepo. It's useless junk.
Xbmc should already come with an PIL module and you installing the bad one rendered the good one useless.
Please complain at supperrepo that they should remove it at once.
Remove your Addons15.db and reboot.
Posts: 81
Joined: Feb 2013
Reputation:
2
2013-05-17, 00:19
(This post was last modified: 2013-05-17, 00:19 by tom66.)
I decided to delete script.modules.pil, however, upon trying the SuperRepo install zip, it did not come back. Seriously borkeled then, I guess.
I will try your deleting Addons15.db suggestion, if not, I will reinstall XBMC, I haven't got much customisation installed.
Posts: 23
Joined: Nov 2012
Reputation:
0
This is still a problem on Windows; but is working on Darwin. I tested on Both Win 7 and 8.1 Pro and get the import error reported here.
Posts: 23
Joined: Nov 2012
Reputation:
0
font = ImageFont.truetype("C:\Program Files (x86)\XBMC\media\Fonts\arial.ttf", 16)
File "C:\Program Files (x86)\XBMC\addons\script.module.pil\lib\PIL\ImageFont.py", line 218, in truetype
return FreeTypeFont(filename, size, index, encoding)
File "C:\Program Files (x86)\XBMC\addons\script.module.pil\lib\PIL\ImageFont.py", line 134, in __init__
self.font = core.getfont(file, size, index, encoding)
File "C:\Program Files (x86)\XBMC\addons\script.module.pil\lib\PIL\ImageFont.py", line 34, in __getattr__
raise ImportError("The _imagingft C module is not installed")
ImportError: The _imagingft C module is not installed
Posts: 23
Joined: Nov 2012
Reputation:
0
from PIL import Image
from PIL import ImageFont
from PIL import ImageDraw
Is in my code
Posts: 6,684
Joined: Mar 2009
Reputation:
147
phil65
Retired Team-Kodi Member
Posts: 6,684
We are still waiting for a proper debug log + preferrably your addon.xml, both posted on some pastebin-like site...