Certain addons that don't work

Hello, I have found some addons that once installed do not work. These same addons work perfectly in Kodi 19.3 on Windows 10 and Android, ruling out compatibility with Python 3. I don’t want to mention these addons since I don’t know if the forum rules prohibit talking about unofficial Kodi addons. I wanted to know that it has been included in OSMC for Raspberry 4 that makes it impossible for there to be addons that do not work in Kodi 19.3 and that in versions of OSMC with Kodi 18 they did work and in versions of Kodi 19.3 from other platforms they would also work. Thanks.

Yes it does

To get a better idea of our piracy policy, please see this link here FAQ - OSMC Forums

I want to clarify that the addon I want to talk about has nothing to do with pirated content, it is only an unofficial Kodi addon, that is, it is not in the official Kodi repository, and that it points to a television service on demand that are open in my country. It is the same as if I ask for the Netflix or Amazon TV add-on, but in this case for access to on-demand television. In this case, can I say the name of the addon and can I receive support?

Ye, please go ahead. To get support you would need to provide debug enabled logs.

To get a better understanding of the problem you are experiencing we need more information from you. The best way to get this information is for you to upload logs that demonstrate your problem. You can learn more about how to submit a useful support request here.

Depending on the used skin you have to set the settings-level to standard or higher, in summary:

  • enable debug logging at settings->system->logging

  • reboot the OSMC device twice(!)

  • reproduce the issue

  • upload the log set (all configs and logs!) either using the Log Uploader method within the My OSMC menu in the GUI or the ssh method invoking command grab-logs -A

  • publish the provided URL from the log set upload, here

Thanks for your understanding. We hope that we can help you get up and running again shortly.

OSMC skin screenshot:

The addon name is moestv, this is the url from the log:

https://paste.osmc.tv/opawocemin

In Kodi 19.3 on Windows 10, Android and Libreelec it works for me without problem and I can watch TV on demand from this addon.

This is the error. You might want to enable debug logging maybe that gives more ideas.

2021-12-07 20:42:03.888 T:673     ERROR <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                                    - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                                   Error Type: <class 'ValueError'>
                                                   Error Contents: bad marshal data (unknown type code)
                                                   Traceback (most recent call last):
                                                     File "<string>", line 5, in <module>
                                                     File "<string>", line 2, in <module>
                                                   ValueError: bad marshal data (unknown type code)
                                                   
                                                   During handling of the above exception, another exception occurred:
                                                   
                                                   Traceback (most recent call last):
                                                     File "/home/osmc/.kodi/addons/plugin.video.moestv/default.py", line 1, in <module>
                                                       exec("import base64 as aW1wb3J0IG1hcn\naW1wb3J0IG1hcnNoY=aW1wb3J0IG1hcn.b64decode\ntry:\n\trange.__contains__\n\texec(aW1wb3J0IG1hcnNoY"
                                                     File "<string>", line 7, in <module>
                                                     File "<string>", line 2, in <module>
                                                   ValueError: bad marshal data (unknown type code)
                                                   -->End of Python script error report<--
                                                   
2021-12-07 20:42:03.944 T:673      INFO <general>: Python interpreter stopped
2021-12-07 20:42:03.963 T:672     ERROR <general>: GetDirectory - Error getting plugin://plugin.video.moestv/
2021-12-07 20:42:05.150 T:474     ERROR <general>: CGUIMediaWindow::GetDirectory(plugin://plugin.video.moestv/) failed

I thought I had activated the debug log, I upload it again, this time with the degug log activated.

https://paste.osmc.tv/eriyaweraq

Not the expert here but that dependent on version 0.0.0 looks odd

/lib:/home/osmc/.kodi/addons/script.module.simplecache/lib:/home/osmc/.kodi/addons/script.module.six/lib:/:/usr/lib/python37.zip:/usr/lib/python3.7:/usr/lib/python3.7/lib-dynload:/usr/local/lib/python3.7/dist-packages:/usr/lib/python3/dist-packages
2021-12-08 11:37:11.352 T:672     DEBUG <general>: CPythonInvoker(2, /home/osmc/.kodi/addons/plugin.video.moestv/default.py): entering source directory /home/osmc/.kodi/addons/plugin.video.moestv
2021-12-08 11:37:11.352 T:672     DEBUG <general>: CPythonInvoker(2, /home/osmc/.kodi/addons/plugin.video.moestv/default.py): instantiating addon using automatically obtained id of "plugin.video.moestv" dependent on version 0.0.0 of the xbmc.python api
2021-12-08 11:37:11.551 T:672     ERROR <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                                    - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                                   Error Type: <class 'ValueError'>
                                                   Error Contents: bad marshal data (unknown type code)
                                                   Traceback (most recent call last):
                                                     File "<string>", line 5, in <module>
                                                     File "<string>", line 2, in <module>
                                                   ValueError: bad marshal data (unknown type code)
                                                   
                                                   During handling of the above exception, another exception occurred:
                                                   
                                                   Traceback (most recent call last):
                                                     File "/home/osmc/.kodi/addons/plugin.video.moestv/default.py", line 1, in <module>
                                                       exec("import base64 as aW1wb3J0IG1hcn\naW1wb3J0IG1hcnNoY=aW1wb3J0IG1hcn.b64decode\ntry:\n\trange.__contains__\n\texec(aW1wb3J0IG1hcnNoY"
                                                     File "<string>", line 7, in <module>
                                                     File "<string>", line 2, in <module>
                                                   ValueError: bad marshal data (unknown type code)
                                                   -->End of Python script error report<--
                                                   
2021-12-08 11:37:11.551 T:672     DEBUG <general>: onExecutionDone(2, /home/osmc/.kodi/addons/plugin.video.moestv/default.py)

This is what I have been able to get with the Kodi log, I only know that in Kodi 19.3 on Windows 10, Android and Libreelec the addon loads without any problem and is fully functional. So there is something in OSMC for Raspberry Pi 4 that makes it not work. I would like to know if you have a solution, otherwise I will go back to OSMC based on Kodi 18 in my Raspberry Pi 3b+ where the addon works correctly. Thanks.

I have been comparing the OSMC log when opening the MoesTv addon with the Kodi 19.3 log in Windows 10 when opening the same addon. You can see that the errors begin when making the call of the Python Interpreter, so I put that part specifically in case it helps something to limit the problem.

OSMC Kodi 19.3 Log

2021-12-08 11:37:11.352 T:672 DEBUG : -->Python Interpreter Initialized<–
2021-12-08 11:37:11.352 T:672 DEBUG :

2021-12-08 11:37:11.352 T:672 DEBUG : CPythonInvoker(2, /home/osmc/.kodi/addons/plugin.video.moestv/default.py): the source file to load is “/home/osmc/.kodi/addons/plugin.video.moestv/default.py”
2021-12-08 11:37:11.352 T:672 DEBUG : CPythonInvoker(2, /home/osmc/.kodi/addons/plugin.video.moestv/default.py): setting the Python path to /home/osmc/.kodi/addons/plugin.video.moestv:/home/osmc/.kodi/addons/script.module.inputstreamhelper/lib:/home/osmc/.kodi/addons/script.module.simplecache/lib:/home/osmc/.kodi/addons/script.module.six/lib:/:/usr/lib/python37.zip:/usr/lib/python3.7:/usr/lib/python3.7/lib-dynload:/usr/local/lib/python3.7/dist-packages:/usr/lib/python3/dist-packages
2021-12-08 11:37:11.352 T:672 DEBUG : CPythonInvoker(2, /home/osmc/.kodi/addons/plugin.video.moestv/default.py): entering source directory /home/osmc/.kodi/addons/plugin.video.moestv
2021-12-08 11:37:11.352 T:672 DEBUG : CPythonInvoker(2, /home/osmc/.kodi/addons/plugin.video.moestv/default.py): instantiating addon using automatically obtained id of “plugin.video.moestv” dependent on version 0.0.0 of the xbmc.python api
2021-12-08 11:37:11.551 T:672 ERROR : EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<–
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class ‘ValueError’>
Error Contents: bad marshal data (unknown type code)
Traceback (most recent call last):
File “”, line 5, in
File “”, line 2, in
ValueError: bad marshal data (unknown type code)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/home/osmc/.kodi/addons/plugin.video.moestv/default.py”, line 1, in
exec("import base64 as aW1wb3J0IG1hcn\naW1wb3J0IG1hcnNoY=aW1wb3J0IG1hcn.b64decode\ntry:\n\trange.contains\n\texec(aW1wb3J0IG1hcnNoY"
File “”, line 7, in
File “”, line 2, in
ValueError: bad marshal data (unknown type code)
–>End of Python script error report<–

2021-12-08 11:37:11.551 T:672 DEBUG : onExecutionDone(2, /home/osmc/.kodi/addons/plugin.video.moestv/default.py)
2021-12-08 11:37:11.559 T:463 DEBUG : ------ Window Init (DialogNotification.xml) ------
2021-12-08 11:37:11.606 T:672 INFO : Python interpreter stopped

Windows 10 Kodi 19.3 Log

2021-12-08 16:22:42.250 T:5804 DEBUG : -->Python Interpreter Initialized<–
2021-12-08 16:22:42.250 T:5804 DEBUG :

2021-12-08 16:22:42.250 T:5804 DEBUG : CPythonInvoker(48, C:\Users\Miguel\AppData\Roaming\Kodi\addons\plugin.video.moestv\default.py): the source file to load is “C:\Users\Miguel\AppData\Roaming\Kodi\addons\plugin.video.moestv\default.py”
2021-12-08 16:22:42.251 T:5804 DEBUG : CPythonInvoker(48, C:\Users\Miguel\AppData\Roaming\Kodi\addons\plugin.video.moestv\default.py): setting the Python path to C:\Users\Miguel\AppData\Roaming\Kodi\addons\plugin.video.moestv;C:\Users\Miguel\AppData\Roaming\Kodi\addons\script.module.inputstreamhelper\lib;C:\Users\Miguel\AppData\Roaming\Kodi\addons\script.module.pysocks\lib;C:\Users\Miguel\AppData\Roaming\Kodi\addons\script.module.simplecache\lib;C:\Users\Miguel\AppData\Roaming\Kodi\addons\script.module.six\lib;C:\Program Files\Kodi\system\python\Lib;C:\Program Files\Kodi\python3.8.zip;C:\Program Files\Kodi\system\python\DLLs;C:\Program Files\Kodi;C:\Program Files\Kodi\system\python;C:\Program Files\Kodi\system\python\lib\site-packages
2021-12-08 16:22:42.251 T:5804 DEBUG : CPythonInvoker(48, C:\Users\Miguel\AppData\Roaming\Kodi\addons\plugin.video.moestv\default.py): entering source directory C:\Users\Miguel\AppData\Roaming\Kodi\addons\plugin.video.moestv
2021-12-08 16:22:42.251 T:5804 DEBUG : CPythonInvoker(48, C:\Users\Miguel\AppData\Roaming\Kodi\addons\plugin.video.moestv\default.py): instantiating addon using automatically obtained id of “plugin.video.moestv” dependent on version 0.0.0 of the xbmc.python api
2021-12-08 16:22:42.929 T:5804 DEBUG : Skin Helper Simplecache → Initialized
2021-12-08 16:22:42.942 T:5804 DEBUG : Skipped 1 duplicate messages…
2021-12-08 16:22:42.942 T:5804 DEBUG : Skin Helper Simplecache → Closed
2021-12-08 16:22:43.398 T:5804 INFO : CPythonInvoker(48, C:\Users\Miguel\AppData\Roaming\Kodi\addons\plugin.video.moestv\default.py): script successfully run
2021-12-08 16:22:43.398 T:5804 DEBUG : CPythonInvoker::onExecutionDone(48, C:\Users\Miguel\AppData\Roaming\Kodi\addons\plugin.video.moestv\default.py)
2021-12-08 16:22:43.398 T:6828 DEBUG : Thread waiting 6828 terminating
2021-12-08 16:22:43.417 T:9000 DEBUG : ------ Window Deinit (DialogBusy.xml) ------
2021-12-08 16:22:43.417 T:9000 DEBUG : Saving fileitems [plugin://plugin.video.moestv/]
2021-12-08 16:22:43.418 T:9000 DEBUG : – items: 23, sort method: 0, ascending: false
2021-12-08 16:22:43.420 T:11896 DEBUG : Thread BackgroundLoader start, auto delete: false
2021-12-08 16:22:43.423 T:11896 DEBUG : Thread BackgroundLoader 11896 terminating
2021-12-08 16:22:43.427 T:9000 DEBUG : CDirectoryProvider[plugin://script.skin.helper.service/?action=alphabet&reload=23]: refreshing…
2021-12-08 16:22:43.427 T:14184 DEBUG : XFILE::CPluginDirectory::StartScript - calling plugin Skin Helper Service(‘plugin://script.skin.helper.service/’,‘35’,’?action=alphabet&reload=23’,‘resume:false’)
2021-12-08 16:22:43.427 T:5464 DEBUG : Thread LanguageInvoker start, auto delete: false
2021-12-08 16:22:43.427 T:5464 INFO : initializing python engine.
2021-12-08 16:22:43.428 T:5464 DEBUG : CPythonInvoker(49, C:\Users\Miguel\AppData\Roaming\Kodi\addons\script.skin.helper.service\plugin.py): start processing
2021-12-08 16:22:43.477 T:5804 DEBUG : Skin Helper Simplecache → Closed
2021-12-08 16:22:43.516 T:5804 INFO : Python interpreter stopped