- No module named 'utils'
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.
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/", line 10, in <module>
                                                from resources.lib.main_service import MainService
                                              File "/kodi/kodi.config/addons/", line 11, in <module>
                                                from utils import log_msg, ADDON_ID, log_exception
                                            ModuleNotFoundError: No module named 'utils'
                                            -->End of Python script error report<--
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
It's a module import path trap gotcha.

scott s.
maintainer of skin  Aeon MQ5 mods for post-Gotham Kodi releases:
Leia see: 304472
(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

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

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