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)
- Install Kodi Matrix
- Install Elementum
- Run Elementum
Context
Trying to use Elementum
Your Environment
- Version used: Elementum 0.1.41
- Environment name and version: Kodi Matrix (master https://github.com/xbmc/xbmc/commit/21e550d9e01ee85ec613f62268306e2bcea196f6)
- Operating System and version: Linux
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 1
- Comments: 50 (13 by maintainers)
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.
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
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.