plugin.video.elementum: Does not work with Kodi Matrix / Python 3

Expected Behavior

Elementum should work on Kodi Matrix

Current Behavior

When trying to launch the addon by selecting it from the Video Add-Ons list, it does not start, and this information is logged:

2019-10-18 13:50:47.091 T:1239033   DEBUG: StartScript - calling plugin Elementum('plugin://plugin.video.elementum/','5','','resume:false')
2019-10-18 13:50:47.091 T:1239034   DEBUG: Thread LanguageInvoker start, auto delete: false
2019-10-18 13:50:47.091 T:1239034    INFO: initializing python engine.
2019-10-18 13:50:47.091 T:1239034   DEBUG: CPythonInvoker(42, /home/mythtv/.kodi/addons/plugin.video.elementum/navigation.py): start processing
2019-10-18 13:50:47.100 T:1239034   DEBUG: -->Python Interpreter Initialized<--
2019-10-18 13:50:47.100 T:1239034   DEBUG: CPythonInvoker(42, /home/mythtv/.kodi/addons/plugin.video.elementum/navigation.py): the source file to load is "/home/mythtv/.kodi/addons/plugin.video.elementum/navigation.py"
2019-10-18 13:50:47.100 T:1239034   DEBUG: CPythonInvoker(42, /home/mythtv/.kodi/addons/plugin.video.elementum/navigation.py): setting the Python path to /home/mythtv/.kodi/addons/plugin.video.elementum:/home/mythtv:/usr/lib/python37.zip:/usr/lib/python3.7:/usr/lib/python3.7/lib-dynload:/usr/lib/python3.7/site-packages
2019-10-18 13:50:47.100 T:1239034   DEBUG: CPythonInvoker(42, /home/mythtv/.kodi/addons/plugin.video.elementum/navigation.py): entering source directory /home/mythtv/.kodi/addons/plugin.video.elementum
2019-10-18 13:50:47.100 T:1239034   DEBUG: CPythonInvoker(42, /home/mythtv/.kodi/addons/plugin.video.elementum/navigation.py): instantiating addon using automatically obtained id of "plugin.video.elementum" dependent on version 2.24.0 of the xbmc.python api
2019-10-18 13:50:47.126 T:1239034   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 'urllib2'
                                            Traceback (most recent call last):
                                              File "/home/mythtv/.kodi/addons/plugin.video.elementum/navigation.py", line 4, in <module>
                                                from elementum import navigation
                                              File "/home/mythtv/.kodi/addons/plugin.video.elementum/resources/site-packages/elementum/navigation.py", line 4, in <module>
                                                import urllib2
                                            ModuleNotFoundError: No module named 'urllib2'
                                            -->End of Python script error report<--

Possible Solution

Support Python 3; see https://forum.kodi.tv/forumdisplay.php?fid=281 and the merged Python 3 PR at https://github.com/xbmc/xbmc/pull/16116

Steps to Reproduce (for bugs)

  1. Install Kodi Matrix
  2. Install Elementum
  3. Run Elementum

Context

Trying to use Elementum

Your Environment

  • Version used: Elementum 0.1.41
  • Operating System and version: Linux

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 1
  • Comments: 50 (13 by maintainers)

Most upvoted comments

@iz8mbw you can try to use https://github.com/Nemiroff/script.elementum.nova (kind of alternative to burst) but i don’t know if it works with kodi 19 - if not, then you can try to raise an issue in that repo. (you can add new providers in the same way like in burst)

This seems to be only for Russian trackers… Elementum Burst is worldwide.

Also it doesn’t seem to be updated for a long time. Elementum Burst it the best and the most updated for now.

@BTopbas There are users that still use Kodi 18.6 and 17.6 (Like me due to skin issue etc.) And I still want that Elementum will be updated for me also, I think it will be a problem to update both versions. Elementum is working perfect as it is for now and it seems that it will support Kodi 19, except the Burst issue.

Please, try with Elementum 0.1.56.

I can confirm 0.1.56 can install and works with the Matrix. (I tested only client version)

Please, try with Elementum 0.1.56.

@lopezvg it would be great if you just make changes that don’t break Elementum on older Kodi and just post PRs.

18 https://romanvm.github.io/Kodistubs/_autosummary/xbmcgui.html#xbmcgui.ListItem 19 https://codedocs.xyz/xbmc/xbmc/group__python__xbmcgui__listitem.html

iconImage – Deprecated. Use setArt
thumbnailImage – Deprecated. Use setArtpath

so you might want to add call of these functions, otherwise i guess you will mess some images.

@iz8mbw it will work in the next version of Elementum.