Posts: 7
Joined: Sep 2017
Reputation:
0
2017-10-08, 14:53
(This post was last modified: 2017-10-08, 16:34 by Klojum.)
I recently installed Kodi 17.4 and only added Security Shield. Every time I open Kodi there is a Toolbox error message at the top of the main screen. The Kodi Log error says: PythonToCppException, import error: dlopen failed:library”./-imaging.so”not found .
How do I remove this error message? Thank you.
Posts: 7
Joined: Jul 2016
Reputation:
0
I had the same error. It seems that the internal script.module.pil AddOn can not load the Python PIL libraries correctly on Android devices. This is really bad, as a lot of AddOns (e.g. ExtendedInfo Script) and skins (e.g. Madnox, Aeon Nox Silvo Mod) use the script.module.pil AddOn and are not working well without it.
I managed to workaround the problem, by doing the following procedure. But you need root access to your android device (I am using a Zidoo X10 btw):
1. Exit Kodi.
2. Extract the following library files from the Kodi APK of the version you are currently using (use 7zip to open the APK):
Source Path (within the APK) : lib\armeabi-v7a\
Files to extract:
lib_imaging.so
lib_imagingft.so
lib_imagingmath.so
lib_imagingmorph.so
3. Remove the "lib" prefix from all file names, so that all file names start with "_".
4. Copy the renamed files to the following directory on your android device (NOTE: You need root access!)
/data/user/0/org.xmbc.kodi/cache/apk/assets/addons/script.module.pil/lib/PIL
(I am not sure, but I could imagine that the "0" in the path might be different on other devices)
5. THIS MIGHT NOT BE NECESSARY, but I did it nonetheless): Copy the renamed files also to the following directory on your android device (NOTE: You need root access!)
/data/data/org.xmbc.kodi/lib
6. Restart ZDMC/Kodi. the errors should be gone now. :-)
Now script.module.pil can find the libraries and can use them. I know that this is not perfect, but it works for me. Perhaps editing the Python scripts within the script.module.pil AddOn would be the "cleaner" way (perhaps this AddOn will be fixed...), but I didn't want to change existing files.
Posts: 1,015
Joined: Oct 2015
Reputation:
48
2017-10-24, 13:22
17.5 is out and still same issues
Posts: 13
Joined: Oct 2011
Reputation:
0
Nici
Junior Member
Posts: 13
For me the same as "jdig4240".
Posts: 20,222
Joined: Apr 2017
Reputation:
1,341
That is interesting, you give us a link to somebody else's log? Not seen that before.
Do you really expect the developers to waste their time on a log that might or might not show the same problem as described in this thread?
Posts: 13
Joined: Oct 2011
Reputation:
0
Nici
Junior Member
Posts: 13
He does not want to understand and only rules on you. Completely incomprehensible.