Kodi Community Forum

Full Version: skin helper service
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
(2021-03-31, 21:42)Angelinas Wrote: [ -> ]
(2021-03-31, 20:45)mardukL Wrote: [ -> ]unsure if that helps and related to the pil ~ pillow 'issue'

but may worth put in here,
https://forum.kodi.tv/showthread.php?tid...pid2179879

edit: also unsure if thread needs splitted to differ the skinhelper addons
(service , widgets, backgrounds, colorpicker ...)

edit2: by reading "no module named 'image' , may there is an issue with unescaped paths / parenthesis , but unsure....
Image

In win10 I have module Image.py , but stil wall images dosen't work.
I will remove all problematic code including Pil from wallimages.py in script.skin.helper.backgrounds/

What platform are you having these PIL issues on? Can you, or anyone else, provide a full debug log?
@Angelinas @mardukL 

I discovered a mistake in the repository in the folder "olderversions"

In the files:
"script.skin.helper.service-1.1.31.zip" and "addons.xml"

must be changed the following line

Code:
<import addon = "script.module.cherrypy" version = "17.0.0" />

Please change in

Code:
<import addon = "script.module.cherrypy" version = "12.0.0" />

I tested it on Kodi 18 with "skin.titan.mod.beta.leia".
Except for script.module.Cherrypy, which I manually installed and rename, all dependency have been automatically installed.

At Kodi 19, I found the following problem. If the scripts and the skin are on the same repository or on the Kodi Add-on Repository, becomes the skin automatically installs. (Tested with a repo on my home server)
"Only Then".  

That would mean one can not use another repository for his skin.
This does not seem meaningful to me
Could that be a bug of Kodi 19?
(2021-04-01, 07:57)Fuzzard Wrote: [ -> ]What platform are you having these PIL issues on? Can you, or anyone else, provide a full debug log?
I use win!0, and don't have problem with Images in PIL.(I write that I can't build wall images in module to work wallimages.py is down in script.skin.helper.backgrounds)
Can't build wall images, stuck in this line.
https://github.com/kodi-community-addons...es.py#L194

Android version have issues with Pil.This module missing in Kodi Python or renamed to Pillow, some user write this PR as now for Android os
https://github.com/xbmc/xbmc/pull/8207
That changes are for python 2.7.10 now is 3.0.0...I don't know

just snippet log 
Code:
2021-04-01 22:52:47.496 T:12136   DEBUG <general>: CurlFile::Open(0x24653ef7af0) https://assets.fanart.tv/fanart/movies/388/movieposter/inside-man-5222b77e63219.jpg
2021-04-01 22:52:47.671 T:12136    INFO <general>: Skin Helper Backgrounds --> Invalid image file found! --> https://assets.fanart.tv/fanart/movies/388/movieposter/inside-man-5222b77e63219.jpg
2021-04-01 22:52:47.683 T:12136   DEBUG <general>: CurlFile::Open(0x24653ef7af0) https://image.tmdb.org/t/p/original/zC0MftjGSMUuHFFzZnHnaYWC4gf.jpg
2021-04-01 22:52:48.017 T:12136    INFO <general>: Skin Helper Backgrounds --> Bane1: <PIL.Image.Image image mode=RGB size=1920x1080 at 0x24658994610>
2021-04-01 22:52:48.969 T:12136   DEBUG <general>: CurlFile::Open(0x24653ef7af0) https://assets.fanart.tv/fanart/movies/254302/movieposter/high-rise-5dacf611776ec.jpg
2021-04-01 22:52:49.039 T:12136    INFO <general>: Skin Helper Backgrounds --> Invalid image file found! --> https://assets.fanart.tv/fanart/movies/254302/movieposter/high-rise-5dacf611776ec.jpg
2021-04-01 22:52:49.104 T:12136    INFO <general>: Skin Helper Backgrounds --> Bane1: <PIL.Image.Image image mode=RGB size=1920x1080 at 0x24658994610>
.
.
.

2021-04-01 22:52:50.960 T:12136   DEBUG <general>: CurlFile::Open(0x24653ef7af0) https://image.tmdb.org/t/p/original/8wpDiTuH242HdUUPp8U8OYiXFJk.jpg
2021-04-01 22:52:51.906 T:12136    INFO <general>: Skin Helper Backgrounds --> Bane1: <PIL.Image.Image image mode=RGB size=1920x1080 at 0x24658994610>
2021-04-01 22:52:52.121 T:12136    INFO <general>: Skin Helper Backgrounds --> Building Wall background SkinHelper.AllMoviesBackground.Poster.Wall DONE
(2021-04-01, 20:05)Fuchs2468 Wrote: [ -> ]Except for script.module.Cherrypy, which I manually installed and rename, all dependency have been automatically installed.
Fixed on repo....tnx
Pil works for me on Kodi v19 final on android aarch64/armv8. If someone is having issues, please have them provide a log so I can attempt to fix it. I've been the one dealing with the pillow build dependencies for Android/apple

That pr you link isn't relevant. Pillow has been updated for the py3 migration of Kodi.
(2021-04-01, 23:04)Angelinas Wrote: [ -> ]Fixed on repo....tnx

Thanks for the fast update The repo now works perfectly with Kodi 18 (Leia).

Now just the question of Kodi 19 (Matrix) remains why it does not work ??

Bug or not Bug. That is the question.
(2021-04-02, 04:50)Fuchs2468 Wrote: [ -> ]
(2021-04-01, 23:04)Angelinas Wrote: [ -> ]Fixed on repo....tnx

Thanks for the fast update The repo now works perfectly with Kodi 18 (Leia).

Now just the question of Kodi 19 (Matrix) remains why it does not work ??

Bug or not Bug. That is the question.

didn t found the forum source...
but its related to this
https://kodi.tv/article/refactoring-add-subsystem


so i understand it that way that if a dependencie is installed from unoficial repo it just get updated from that repo, not from the official one.

edit:

but for that case there is a new kodi setting
in the 'service->addons' section, which should be used for that case.

<setting id="addons.updatemode">1</setting>
(2021-04-02, 11:47)mardukL Wrote: [ -> ]but for that case there is a new kodi setting
in the 'service->addons' section, which should be used for that case.

<setting id="addons.updatemode">1</setting>
don't update anyway
Hi, i become under LibreElec 9.26 a Error Message that it give a error with skin.helper.service.
Here is the Log 
Code:
2021-04-11 20:03:09.079 T:140358525872256  NOTICE: ADDON: script.skin.helper.service v1.1.32 installed
2021-04-11 20:03:36.962 T:140355598415616   ERROR: script.module.metadatautils --> ERROR in helpers.utils ! --> Expecting value: line 1 column 1 (char 0)
2021-04-11 20:03:37.234 T:140355598415616 WARNING: Skin Helper Service --> Traceback (most recent call last):
                                              File "/storage/.kodi/addons/script.skin.helper.service/resources/lib/listitem_monitor.py", line 370, in set_listitem_details
                                                details["imdbnumber"]))
                                              File "/storage/.kodi/addons/script.module.metadatautils/lib/metadatautils.py", line 169, in get_animated_artwork
                                                imdb_id, manual_select=manual_select, ignore_cache=ignore_cache)
                                              File "/storage/.kodi/addons/script.module.simplecache/lib/simplecache.py", line 305, in decorated
                                                result = func(*args, **kwargs)
                                              File "/storage/.kodi/addons/script.module.metadatautils/lib/helpers/animatedart.py", line 46, in get_animated_artwork
                                                "animatedposter": self.poster(imdb_id, manual_select),
                                              File "/storage/.kodi/addons/script.module.metadatautils/lib/helpers/animatedart.py", line 56, in poster
                                                img = self.select_art(self.posters(imdb_id), manual_select, "poster")
                                              File "/storage/.kodi/addons/script.module.metadatautils/lib/helpers/animatedart.py", line 66, in posters
                                                return self.get_art(imdb_id, "posters")
                                              File "/storage/.kodi/addons/script.module.metadatautils/lib/helpers/animatedart.py", line 74, in get_art
                                                art_db = self.get_animatedart_db()
                                              File "/storage/.kodi/addons/script.module.metadatautils/lib/helpers/animatedart.py", line 88, in get_animatedart_db
                                                base_url = data.get("baseURL", "")
                                            AttributeError: 'NoneType' object has no attribute 'get'
2021-04-11 20:03:37.234 T:140355598415616   ERROR: Skin Helper Service --> Exception in resources.lib.listitem_monitor ! --> 'NoneType' object has no attribute 'get'
021-04-11 20:04:09.299 T:140358525872256  NOTICE: GL: Using GL_ARB_pixel_buffer_object
2021-04-11 20:04:11.536 T:140355476592384 WARNING: script.module.metadatautils --> Traceback (most recent call last):
                                              File "/storage/.kodi/addons/script.module.metadatautils/lib/helpers/utils.py", line 117, in get_json
                                                result = json.loads(response.content.decode('utf-8', 'replace'))
                                              File "/storage/.kodi/addons/script.module.simplejson/lib/simplejson/__init__.py", line 538, in loads
                                                return _default_decoder.decode(s)
                                              File "/storage/.kodi/addons/script.module.simplejson/lib/simplejson/decoder.py", line 370, in decode
                                                obj, end = self.raw_decode(s)
                                              File "/storage/.kodi/addons/script.module.simplejson/lib/simplejson/decoder.py", line 400, in raw_decode
                                                return self.scan_once(s, idx=_w(s, idx).end())
                                              File "/storage/.kodi/addons/script.module.simplejson/lib/simplejson/scanner.py", line 79, in scan_once
                                                return _scan_once(string, idx)
                                              File "/storage/.kodi/addons/script.module.simplejson/lib/simplejson/scanner.py", line 70, in _scan_once
                                                raise JSONDecodeError(errmsg, string, idx)
                                            JSONDecodeError: Expecting value: line 1 column 1 (char 0)
2021-04-11 20:04:11.536 T:140355476592384   ERROR: script.module.metadatautils --> ERROR in helpers.utils ! --> Expecting value: line 1 column 1 (char 0)
2021-04-11 20:04:11.537 T:140355476592384 WARNING: Skin Helper Service --> Traceback (most recent call last):
                                              File "/storage/.kodi/addons/script.skin.helper.service/resources/lib/listitem_monitor.py", line 370, in set_listitem_details
                                                details["imdbnumber"]))
                                              File "/storage/.kodi/addons/script.module.metadatautils/lib/metadatautils.py", line 169, in get_animated_artwork
                                                imdb_id, manual_select=manual_select, ignore_cache=ignore_cache)
                                              File "/storage/.kodi/addons/script.module.simplecache/lib/simplecache.py", line 305, in decorated
                                                result = func(*args, **kwargs)
                                              File "/storage/.kodi/addons/script.module.metadatautils/lib/helpers/animatedart.py", line 46, in get_animated_artwork
                                                "animatedposter": self.poster(imdb_id, manual_select),
                                              File "/storage/.kodi/addons/script.module.metadatautils/lib/helpers/animatedart.py", line 56, in poster
                                                img = self.select_art(self.posters(imdb_id), manual_select, "poster")
                                              File "/storage/.kodi/addons/script.module.metadatautils/lib/helpers/animatedart.py", line 66, in posters
                                                return self.get_art(imdb_id, "posters")
                                              File "/storage/.kodi/addons/script.module.metadatautils/lib/helpers/animatedart.py", line 74, in get_art
                                                art_db = self.get_animatedart_db()
                                              File "/storage/.kodi/addons/script.module.metadatautils/lib/helpers/animatedart.py", line 88, in get_animatedart_db
                                                base_url = data.get("baseURL", "")
                                            AttributeError: 'NoneType' object has no attribute 'get'
2021-04-11 20:04:11.537 T:140355476592384   ERROR: Skin Helper Service --> Exception in resources.lib.listitem_monitor ! --> 'NoneType' object has no attribute 'get'
2021-04-11 20:04:15.096 T:140358525872256  NOTICE: GL: Selecting YUV 2 RGB shader
2021-04-11 20:04:15.097 T:140358525872256  NOTICE: GL: NPOT texture support detected
2021-04-11 20:04:15.097 T:140358525872256  NOTICE: GL: Using GL_ARB_pixel_buffer_object
2021-04-11 20:04:15.509 T:140355506964224 WARNING: script.module.metadatautils --> Traceback (most recent call last):
                                              File "/storage/.kodi/addons/script.module.metadatautils/lib/helpers/utils.py", line 117, in get_json
                                                result = json.loads(response.content.decode('utf-8', 'replace'))
                                              File "/storage/.kodi/addons/script.module.simplejson/lib/simplejson/__init__.py", line 538, in loads
                                                return _default_decoder.decode(s)
                                              File "/storage/.kodi/addons/script.module.simplejson/lib/simplejson/decoder.py", line 370, in decode
                                                obj, end = self.raw_decode(s)
                                              File "/storage/.kodi/addons/script.module.simplejson/lib/simplejson/decoder.py", line 400, in raw_decode
                                                return self.scan_once(s, idx=_w(s, idx).end())
                                              File "/storage/.kodi/addons/script.module.simplejson/lib/simplejson/scanner.py", line 79, in scan_once
                                                return _scan_once(string, idx)
                                              File "/storage/.kodi/addons/script.module.simplejson/lib/simplejson/scanner.py", line 70, in _scan_once
                                                raise JSONDecodeError(errmsg, string, idx)
                                            JSONDecodeError: Expecting value: line 1 column 1 (char 0)
2021-04-11 20:04:15.510 T:140355506964224   ERROR: script.module.metadatautils --> ERROR in helpers.utils ! --> Expecting value: line 1 column 1 (char 0)
2021-04-11 20:04:15.533 T:140355506964224 WARNING: Skin Helper Service --> Traceback (most recent call last):
                                              File "/storage/.kodi/addons/script.skin.helper.service/resources/lib/listitem_monitor.py", line 370, in set_listitem_details
                                                details["imdbnumber"]))
                                              File "/storage/.kodi/addons/script.module.metadatautils/lib/metadatautils.py", line 169, in get_animated_artwork
                                                imdb_id, manual_select=manual_select, ignore_cache=ignore_cache)
                                              File "/storage/.kodi/addons/script.module.simplecache/lib/simplecache.py", line 305, in decorated
                                                result = func(*args, **kwargs)
                                              File "/storage/.kodi/addons/script.module.metadatautils/lib/helpers/animatedart.py", line 46, in get_animated_artwork
                                                "animatedposter": self.poster(imdb_id, manual_select),
                                              File "/storage/.kodi/addons/script.module.metadatautils/lib/helpers/animatedart.py", line 56, in poster
                                                img = self.select_art(self.posters(imdb_id), manual_select, "poster")
                                              File "/storage/.kodi/addons/script.module.metadatautils/lib/helpers/animatedart.py", line 66, in posters
                                                return self.get_art(imdb_id, "posters")
                                              File "/storage/.kodi/addons/script.module.metadatautils/lib/helpers/animatedart.py", line 74, in get_art
                                                art_db = self.get_animatedart_db()
                                              File "/storage/.kodi/addons/script.module.metadatautils/lib/helpers/animatedart.py", line 88, in get_animatedart_db
                                                base_url = data.get("baseURL", "")
                                            AttributeError: 'NoneType' object has no attribute 'get'
2021-04-11 20:04:15.533 T:140355506964224   ERROR: Skin Helper Service --> Exception in resources.lib.listitem_monitor ! --> 'NoneType' object has no attribute 'get'
(2021-04-12, 20:40)Angelinas Wrote: [ -> ]@Coolzero
Fixed....before 4 hours Smile
https://github.com/kodi-community-addons...28fafd9ea4

Hi, thank you for your fix, but i have already the error message and a error in the Kodi Log, 

Code:
021-04-16 18:00:52.823 T:139875632002816  NOTICE: ADDON: script.skin.helper.service v1.1.3 installed
2021-04-16 18:00:52.823 T:139875632002816  NOTICE: ADDON: script.skin.helper.skinbackup v1.0.12 installed
2021-04-16 18:00:52.823 T:139875632002816  NOTICE: ADDON: script.skin.helper.widgets v1.0.22 installed
2021-04-16 18:00:52.823 T:139875632002816  NOTICE: ADDON: script.tv.show.next.aired v6.0.15 installed
2021-04-16 18:00:52.823 T:139875632002816  NOTICE: ADDON: script.user.rating v1.0.3 installed
2021-04-16 18:00:52.823 T:139875632002816  NOTICE: ADDON: service.fritzbox.callmonitor v2.0.27 installed
2021-04-16 18:00:52.823 T:139875632002816  NOTICE: ADDON: service.libreelec.settings v9.0.0 installed
2021-04-16 18:00:52.823 T:139875632002816  NOTICE: ADDON: service.tvheadend42 v9.2.0.444 installed
2021-04-16 18:00:52.823 T:139875632002816  NOTICE: ADDON: service.upnext v1.1.5 installed
2021-04-16 18:00:52.823 T:139875632002816  NOTICE: ADDON: skin.estuary v2.0.27 installed
2021-04-16 18:00:52.823 T:139875632002816  NOTICE: ADDON: skin.rapier v11.2.60 installed
2021-04-16 18:00:52.823 T:139875632002816  NOTICE: ADDON: visualization.fishbmc v5.1.3.1 installed
2021-04-16 18:00:52.823 T:139875632002816  NOTICE: ADDON: visualization.pictureit v3.0.2.1 installed
2021-04-16 18:00:52.823 T:139875632002816  NOTICE: ADDON: visualization.projectm v2.3.5.3 installed
2021-04-16 18:00:52.823 T:139875632002816  NOTICE: ADDON: weather.weatherbit.io v0.0.20 installed
2021-04-16 18:00:52.823 T:139875632002816  NOTICE: ADDON: weather.yahoo v5.1.0 installed
2021-04-16 18:00:52.823 T:139875632002816  NOTICE: ADDON: webinterface.default v18.x-2.4.6 installed
2021-04-16 18:00:52.823 T:139875632002816  NOTICE: ADDON: xbmc.addon v18.9 installed
2021-04-16 18:00:52.823 T:139875632002816  NOTICE: ADDON: xbmc.core v0.1.0 installed
2021-04-16 18:00:52.823 T:139875632002816  NOTICE: ADDON: xbmc.gui v5.14.0 installed
2021-04-16 18:00:52.823 T:139875632002816  NOTICE: ADDON: xbmc.json v10.3.0 installed
2021-04-16 18:00:52.823 T:139875632002816  NOTICE: ADDON: xbmc.metadata v2.1.0 installed
2021-04-16 18:00:52.823 T:139875632002816  NOTICE: ADDON: xbmc.python v2.26.0 installed
2021-04-16 18:00:52.823 T:139875632002816  NOTICE: ADDON: xbmc.webinterface v1.0.0 installed
2021-04-16 18:00:53.164 T:139875539425024   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: cannot import name extend_dict
                                            Traceback (most recent call last):
                                              File "/storage/.kodi/addons/script.skin.helper.service/service.py", line 10, in <module>
                                                from resources.lib.main_service import MainService
                                              File "/storage/.kodi/addons/script.skin.helper.service/resources/lib/main_service.py", line 13, in <module>
                                                from listitem_monitor import ListItemMonitor
                                              File "/storage/.kodi/addons/script.skin.helper.service/resources/lib/listitem_monitor.py", line 13, in <module>
                                                from metadatautils import extend_dict, process_method_on_list
                                            ImportError: cannot import name extend_dict
                                            -->End of Python script error report<--
2021-04-16 18:01:02.512 T:139875514246912   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: cannot import name process_method_on_list
                                            Traceback (most recent call last):
                                              File "/storage/.kodi/addons/script.skin.helper.widgets/plugin.py", line 9, in <module>
                                                import main
                                              File "/storage/.kodi/addons/script.skin.helper.widgets/resources/lib/main.py", line 18, in <module>
                                                from metadatautils import MetadataUtils, process_method_on_list
                                            ImportError: cannot import name process_method_on_list
                                            -->End of Python script error report<--
2021-04-16 18:01:02.526 T:139875522639616   ERROR: GetDirectory - Error getting plugin://script.skin.helper.widgets/?mediatype=favourites&reload=20210416160058
2021-04-16 18:01:11.471 T:139878439000192   ERROR: CGUIWindowSettingsCategory: failed to set focus. unknown category/setting id 'replace'.
2021-04-16 18:01:15.262 T:139878439000192  NOTICE: Log level changed to "LOG_LEVEL_DEBUG_FREEMEM"
2021-04-16 18:01:15.263 T:139878439000192  NOTICE: Enabled debug logging due to GUI setting. Level 2.
(2021-04-16, 18:06)Coolzero Wrote: [ -> ]                                              File "/storage/.kodi/addons/script.skin.helper.widgets/resources/lib/main.py", line 18, in <module>
                                                from metadatautils import MetadataUtils, process_method_on_list
You use very old script ....
Install marcel repo and Update SHS version...
https://github.com/kodi-community-addons...-1.0.3.zip
(2021-04-16, 18:17)Angelinas Wrote: [ -> ]
(2021-04-16, 18:06)Coolzero Wrote: [ -> ]                                              File "/storage/.kodi/addons/script.skin.helper.widgets/resources/lib/main.py", line 18, in <module>
                                                from metadatautils import MetadataUtils, process_method_on_list
You use very old script ....
Install marcel repo and Update SHS version...
https://github.com/kodi-community-addons...-1.0.3.zip

Thats it, Thank you
@Fuzzard
One question for PIL Images,
I have success to made this script to build Wallpapers from "videodb://movies/titles/", "fanart"...
This working for sources:
local images,
https://image.tmdb.org,
https://thetvdb.com

Only not working with https://assets.fanart.tv, have you some sugestion how to make this work ?
https://github.com/kodi-community-addons...es.py#L191

Image

Background wallimage-poster, all sources are from local or tmdb ...looks Nice Smile
Image

Image
I am getting an error on Skin Helper when my system boots up. I've made absolutely no changes to my system. This error only stared today. My full log is linked below.

Log: https://paste.kodi.tv/ebiwomemuk.kodi

Thanks in advance for any help here.

Regards,

Shedrock
Code:
2021-04-20 17:26:55.050 T:140070581390656 NOTICE: ADDON: script.module.cherrypy v17.4.2-2 installed
please use for Leia version this https://github.com/kodi-community-addons....

This version isn't from Marcel repo, and Shs doesent use module named selectors2.
https://github.com/kodi-community-addons...e.cherrypy