script.skin.helper.service - No module named 'utils'
#1
I'm guessing the following error is a result of the switch to python3. If so, does anyone have a fixed version? I'm testing the current Kodi git and this is the only logged error I haven't found a fix for.
Code:
2019-11-05 07:27:48.736 T:11868   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <class 'ModuleNotFoundError'>
                                            Error Contents: No module named 'utils'
                                            Traceback (most recent call last):
                                              File "/kodi/kodi.config/addons/script.skin.helper.service/service.py", line 10, in <module>
                                                from resources.lib.main_service import MainService
                                              File "/kodi/kodi.config/addons/script.skin.helper.service/resources/lib/main_service.py", line 11, in <module>
                                                from utils import log_msg, ADDON_ID, log_exception
                                            ModuleNotFoundError: No module named 'utils'
                                            -->End of Python script error report<--
Reply
#2
Thread moved to the skin helper addons section
|Banned add-ons (wiki) Forum rules (wiki)|VPN policy (wiki)|First time user (wiki)|FAQs (wiki) Troubleshooting (wiki)|Add-ons (wiki)|Free content (wiki)|Debug Log (wiki)|

My Blog Posts
Reply
#3
It's a module import path trap gotcha.

scott s.
.
maintainer of skin  Aeon MQ5 mods for post-Gotham Kodi releases:
Matrix
Leia see: 304472
Reply
#4
(2019-11-05, 19:42)scott967 Wrote: It's a module import path trap gotcha.

scott s.
.
An old thread, but for info, this worked for me in a Matrix version of main_service.py.

import os, sys
from resources.lib.utils import log_msg, ADDON_ID, log_exception, try_decode
from resources.lib.skinsettings import SkinSettings
from resources.lib.listitem_monitor import ListItemMonitor
from resources.lib.kodi_monitor import KodiMonitor
from resources.lib.webservice import WebService
from metadatautils import MetadataUtils
import xbmc
import xbmcaddon
import xbmcgui
Reply



Logout Mark Read Team Forum Stats Members Help
script.skin.helper.service - No module named 'utils'0
This forum uses Lukasz Tkacz MyBB addons.