Addon/python errors since last update

A couple of addons are throwing errors after the last update. Anybody seen these or knows how to fix them?

20:56:12.402 T:3867644912   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 DependencyWarning
                                            Traceback (most recent call last):
                                              File "/home/osmc/.kodi/addons/script.skin.helper.backgrounds/service.py", line 9, in <module>
                                                from resources.lib.backgrounds_updater import BackgroundsUpdater
                                              File "/home/osmc/.kodi/addons/script.skin.helper.backgrounds/resources/lib/backgrounds_updater.py", line 20, in <module>
                                                from smartshortcuts import SmartShortCuts
                                              File "/home/osmc/.kodi/addons/script.skin.helper.backgrounds/resources/lib/smartshortcuts.py", line 15, in <module>
                                                from metadatautils import detect_plugin_content, KodiDb
                                              File "/home/osmc/.kodi/addons/script.module.metadatautils/lib/metadatautils.py", line 9, in <module>
                                                from helpers.animatedart import AnimatedArt
                                              File "/home/osmc/.kodi/addons/script.module.metadatautils/lib/helpers/animatedart.py", line 6, in <module>
                                                from utils import get_json, DialogSelect, log_msg, ADDON_ID
                                              File "/home/osmc/.kodi/addons/script.module.metadatautils/lib/helpers/utils.py", line 11, in <module>
                                                import requests
                                              File "/home/osmc/.kodi/addons/script.module.requests/lib/requests/__init__.py", line 90, in <module>
                                                from urllib3.exceptions import DependencyWarning
                                            ImportError: cannot import name DependencyWarning
                                            -->End of Python script error report<--
20:56:17.187 T:3909587952   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 DependencyWarning
                                            Traceback (most recent call last):
                                              File "/home/osmc/.kodi/addons/script.trakt/default.py", line 6, in <module>
                                                from resources.lib.service import traktService
                                              File "/home/osmc/.kodi/addons/script.trakt/resources/lib/service.py", line 19, in <module>
                                                from resources.lib.traktapi import traktAPI
                                              File "/home/osmc/.kodi/addons/script.trakt/resources/lib/traktapi.py", line 8, in <module>
                                                from trakt import Trakt
                                              File "/home/osmc/.kodi/addons/script.module.trakt/lib/trakt/__init__.py", line 3, in <module>
                                                from trakt.client import TraktClient
                                              File "/home/osmc/.kodi/addons/script.module.trakt/lib/trakt/client.py", line 5, in <module>
                                                from trakt.core.http import HttpClient
                                              File "/home/osmc/.kodi/addons/script.module.trakt/lib/trakt/core/http.py", line 8, in <module>
                                                from trakt.core.request import TraktRequest
                                              File "/home/osmc/.kodi/addons/script.module.trakt/lib/trakt/core/request.py", line 3, in <module>
                                                from requests import Request
                                              File "/home/osmc/.kodi/addons/script.module.requests/lib/requests/__init__.py", line 90, in <module>
                                                from urllib3.exceptions import DependencyWarning
                                            ImportError: cannot import name DependencyWarning
                                            -->End of Python script error report<--
20:56:18.995 T:3783758832   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 DependencyWarning
                                            Traceback (most recent call last):
                                              File "/home/osmc/.kodi/addons/service.stinger.notification/service.py", line 6, in <module>
                                                from lib.chapters import ChaptersFile
                                              File "/home/osmc/.kodi/addons/service.stinger.notification/lib/chapters.py", line 6, in <module>
                                                from thechapterdb import TheChapterDB
                                              File "/home/osmc/.kodi/addons/service.stinger.notification/lib/thechapterdb.py", line 2, in <module>
                                                import requests
                                              File "/home/osmc/.kodi/addons/script.module.requests/lib/requests/__init__.py", line 90, in <module>
                                                from urllib3.exceptions import DependencyWarning
                                            ImportError: cannot import name DependencyWarning
                                            -->End of Python script error report<--
20:56:19.061 T:3918238704   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 DependencyWarning
                                            Traceback (most recent call last):
                                              File "/home/osmc/.kodi/addons/script.skin.helper.service/service.py", line 10, in <module>
                                                from resources.lib.main_service import MainService
                                              File "/home/osmc/.kodi/addons/script.skin.helper.service/resources/lib/main_service.py", line 13, in <module>
                                                from listitem_monitor import ListItemMonitor
                                              File "/home/osmc/.kodi/addons/script.skin.helper.service/resources/lib/listitem_monitor.py", line 13, in <module>
                                                from metadatautils import extend_dict, process_method_on_list
                                              File "/home/osmc/.kodi/addons/script.module.metadatautils/lib/metadatautils.py", line 9, in <module>
                                                from helpers.animatedart import AnimatedArt
                                              File "/home/osmc/.kodi/addons/script.module.metadatautils/lib/helpers/animatedart.py", line 6, in <module>
                                                from utils import get_json, DialogSelect, log_msg, ADDON_ID
                                              File "/home/osmc/.kodi/addons/script.module.metadatautils/lib/helpers/utils.py", line 11, in <module>
                                                import requests
                                              File "/home/osmc/.kodi/addons/script.module.requests/lib/requests/__init__.py", line 90, in <module>
                                                from urllib3.exceptions import DependencyWarning
                                            ImportError: cannot import name DependencyWarning
                                            -->End of Python script error report<--

Try reinstalling those addons.

Thanks, just running update and re-installing the same version fixed it. Maybe some code needed to be recompiled to bytecode.

Having the same issue here. A bunch of addon aren’t working anymore, Food Network, NASA, etc. No updates are available and I tried completely removing and reinstalling the addons. No luck. Any other ideas?

Not sure if this helps at all, tried to get a screenshot on my iPhone of the OSMC log.

Please provide proper logs. We’ve provided simple instructions.

https://osmc.tv/wiki/general/how-to-submit-a-useful-support-request/