Hi
I have osmc installed on RPi3. In installed the iPlayer add on and it seems to work fine.
However when I install the Kahan Acadamy add on and try to play it, I simply get a message saying:
Khan Acadamy Error
check the log file for more information
Does anyone know why I get this or how I can go about finding out why ?
To what log file is it referring ?
I did find a logging section under settings from where I selected Enable debug logging. I then followed the log file from a login prompt and selected Khan Acadamy plug in. Here is the (I think relevant) output I got doing that:
2022-06-18 16:23:28.430 T:2942296288 DEBUG: Previous line repeats 19 times.
2022-06-18 16:23:28.432 T:2942296288 DEBUG: CAESinkPi:Deinitialize
2022-06-18 16:23:28.435 T:2942296288 DEBUG: CAESinkPi:SetAudioProps hdmi_stream_channels 0 hdmi_channel_map 00000000
2022-06-18 16:23:28.454 T:2942296288 DEBUG: COMXCoreComponent::Deinitialize : OMX.broadcom.audio_render handle 0xb10031a8
2022-06-18 16:23:28.778 T:2785013984 DEBUG: script.module.osmcsetting.updates : - Update CONDITION : platform no longer maintained
2022-06-18 16:23:41.270 T:2961170656 DEBUG: Previous line repeats 24 times.
2022-06-18 16:23:41.272 T:2961170656 DEBUG: CLibInputKeyboard::ProcessKey - using delay: 500ms repeat: 50ms
2022-06-18 16:23:41.275 T:2629382368 DEBUG: Thread Timer start, auto delete: false
2022-06-18 16:23:41.284 T:2979196944 DEBUG: Keyboard: scancode: 0x1c, sym: 0x000d, unicode: 0x000d, modifier: 0x0
2022-06-18 16:23:41.324 T:2785013984 DEBUG: script.module.osmcsetting.updates : - Update CONDITION : platform no longer maintained
2022-06-18 16:23:41.367 T:2629382368 DEBUG: Thread Timer 2629382368 terminating
2022-06-18 16:23:41.390 T:2979196944 DEBUG: Keyboard: scancode: 0x1c, sym: 0x000d, unicode: 0x000d, modifier: 0x0
2022-06-18 16:23:41.393 T:2979196944 DEBUG: HandleKey: return (0xf00d) pressed, action is Select
2022-06-18 16:23:41.401 T:2979196944 DEBUG: CGUIMediaWindow::GetDirectory (plugin://plugin.video.khanacademy/)
2022-06-18 16:23:41.403 T:2979196944 DEBUG: ParentPath = [addons://sources/video]
2022-06-18 16:23:41.409 T:2629382368 DEBUG: Thread JobWorker start, auto delete: true
2022-06-18 16:23:41.417 T:2608140512 DEBUG: Thread waiting start, auto delete: false
2022-06-18 16:23:41.436 T:2629382368 DEBUG: CAddonDatabase::SetLastUsed[plugin.video.khanacademy] took 23 ms
2022-06-18 16:23:41.440 T:2608140512 DEBUG: StartScript - calling plugin Khan Academy(‘plugin://plugin.video.khanacademy/’,‘26’,‘’,‘resume:false’)
2022-06-18 16:23:41.444 T:2566906080 DEBUG: Thread LanguageInvoker start, auto delete: false
2022-06-18 16:23:41.446 T:2533335264 DEBUG: Thread JobWorker start, auto delete: true
2022-06-18 16:23:41.449 T:2566906080 INFO: initializing python engine.
2022-06-18 16:23:41.451 T:2566906080 DEBUG: CPythonInvoker(29, /home/osmc/.kodi/addons/plugin.video.khanacademy/addon.py): start processing
2022-06-18 16:23:41.509 T:2979196944 DEBUG: ------ Window Init (DialogBusy.xml) ------
2022-06-18 16:23:41.873 T:2785013984 DEBUG: script.module.osmcsetting.updates : - Update CONDITION : platform no longer maintained
2022-06-18 16:23:43.309 T:2566906080 DEBUG: Previous line repeats 2 times.
2022-06-18 16:23:43.317 T:2566906080 DEBUG: -->Python Interpreter Initialized<–
2022-06-18 16:23:43.322 T:2566906080 DEBUG: CPythonInvoker(29, /home/osmc/.kodi/addons/plugin.video.khanacademy/addon.py): the source file to load is “/home/osmc/.kodi/addons/plugin.video.khanacademy/addon.py”
2022-06-18 16:23:43.340 T:2566906080 DEBUG: CPythonInvoker(29, /home/osmc/.kodi/addons/plugin.video.khanacademy/addon.py): setting the Python path to /home/osmc/.kodi/addons/plugin.video.khanacademy:/home/osmc/.kodi/addons/plugin.video.youtube/resources/lib/:/home/osmc/.kodi/addons/script.module.certifi/lib:/home/osmc/.kodi/addons/script.module.chardet/lib:/home/osmc/.kodi/addons/script.module.idna/lib:/home/osmc/.kodi/addons/script.module.inputstreamhelper/lib:/home/osmc/.kodi/addons/script.module.requests/lib:/home/osmc/.kodi/addons/script.module.six/lib:/home/osmc/.kodi/addons/script.module.urllib3/lib:/home/osmc/.kodi/addons/script.module.xbmcswift2/lib:/usr/lib/python2.7:/usr/lib/python2.7/plat-arm-linux-gnueabihf:/usr/lib/python2.7/lib-tk:/usr/lib/python2.7/lib-old:/usr/lib/python2.7/lib-dynload:/usr/local/lib/python2.7/dist-packages:/usr/lib/python2.7/dist-packages:/usr/lib/python2.7/dist-packages/gtk-2.0
2022-06-18 16:23:43.343 T:2566906080 DEBUG: CPythonInvoker(29, /home/osmc/.kodi/addons/plugin.video.khanacademy/addon.py): entering source directory /home/osmc/.kodi/addons/plugin.video.khanacademy
2022-06-18 16:23:43.345 T:2566906080 DEBUG: CPythonInvoker(29, /home/osmc/.kodi/addons/plugin.video.khanacademy/addon.py): instantiating addon using automatically obtained id of “plugin.video.khanacademy” dependent on version 2.1.0 of the xbmc.python api
2022-06-18 16:23:43.688 T:2785013984 DEBUG: script.module.osmcsetting.updates : - Update CONDITION : platform no longer maintained
2022-06-18 16:23:55.313 T:2566906080 DEBUG: Previous line repeats 19 times.
2022-06-18 16:23:55.317 T:2566906080 DEBUG: [xbmcswift2] Loaded storage “.functions” from disk
2022-06-18 16:23:55.358 T:2566906080 DEBUG: [xbmcswift2] Adding url rule “//” named “show_topic” pointing to function “main_menu”
2022-06-18 16:23:55.368 T:2566906080 DEBUG: [xbmcswift2] Adding url rule “/” named “main_menu” pointing to function “main_menu”
2022-06-18 16:23:55.374 T:2566906080 DEBUG: [xbmcswift2] Handling incoming request for /
2022-06-18 16:23:55.379 T:2566906080 NOTICE: [xbmcswift2] Request for “/” matches rule for function “main_menu”
2022-06-18 16:23:55.384 T:2566906080 DEBUG: [xbmcswift2] Storage miss for function “get_khan_data” with args “()” and kwargs “{}”
2022-06-18 16:23:55.719 T:2785013984 DEBUG: script.module.osmcsetting.updates : - Update CONDITION : platform no longer maintained
2022-06-18 16:23:55.874 T:2566906080 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<–
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class ‘requests.exceptions.JSONDecodeError’>
Error Contents: No JSON object could be decoded
Traceback (most recent call last):
File “/home/osmc/.kodi/addons/plugin.video.khanacademy/addon.py”, line 61, in
plugin.run()
File “/home/osmc/.kodi/addons/script.module.xbmcswift2/lib/xbmcswift2/plugin.py”, line 342, in run
items = self._dispatch(self.request.path)
File “/home/osmc/.kodi/addons/script.module.xbmcswift2/lib/xbmcswift2/plugin.py”, line 316, in _dispatch
listitems = view_func(**items)
File “/home/osmc/.kodi/addons/plugin.video.khanacademy/addon.py”, line 57, in main_menu
return [to_listitem(item) for item in get_khan_data()[topic]]
File “/home/osmc/.kodi/addons/script.module.xbmcswift2/lib/xbmcswift2/xbmcmixin.py”, line 80, in wrapper
result = function(*args, **kwargs)
File “/home/osmc/.kodi/addons/plugin.video.khanacademy/addon.py”, line 24, in get_khan_data
return khan.load_topic_tree()
File “/home/osmc/.kodi/addons/plugin.video.khanacademy/resources/lib/khan.py”, line 86, in load_topic_tree
_json = requests.get(API_URL).json()
File “/home/osmc/.kodi/addons/script.module.requests/lib/requests/models.py”, line 915, in json
raise RequestsJSONDecodeError(e.message)
JSONDecodeError: No JSON object could be decoded
–>End of Python script error report<–
2022-06-18 16:23:55.877 T:2566906080 DEBUG: onExecutionDone(29, /home/osmc/.kodi/addons/plugin.video.khanacademy/addon.py)
2022-06-18 16:23:55.900 T:2979196944 DEBUG: ------ Window Init (DialogNotification.xml) ------
2022-06-18 16:23:55.903 T:2942296288 INFO: CActiveAESink::OpenSink - initialize sink
2022-06-18 16:23:55.905 T:2942296288 DEBUG: CActiveAESink::OpenSink - trying to open device PI:HDMI
2022-06-18 16:23:55.908 T:2942296288 DEBUG: CAESinkPi:Initialize Format:15 Channels:2 Samplerate:44100 framesize:8 bufsize:17640 bytes/s=352800.00 dest=PI:HDMI
2022-06-18 16:23:55.917 T:2942296288 DEBUG: CAESinkPi:SetAudioProps hdmi_stream_channels 0 hdmi_channel_map 00000008
2022-06-18 16:23:55.928 T:2942296288 DEBUG: COMXCoreComponent::Initialize OMX.broadcom.audio_render input port 100 output port 100 m_handle 0x9a284d38
2022-06-18 16:23:55.940 T:2942296288 DEBUG: COMXCoreComponent::AllocInputBuffers component(OMX.broadcom.audio_render) - port(100), nBufferCountMin(1), nBufferCountActual(2), nBufferSize(17648), nBufferAlignment(16)
2022-06-18 16:23:55.945 T:2942296288 DEBUG: CActiveAESink::OpenSink - SinkPi Initialized:
2022-06-18 16:23:55.947 T:2942296288 DEBUG: Output Device : HDMI
2022-06-18 16:23:55.971 T:2942296288 DEBUG: Sample Rate : 44100
2022-06-18 16:23:55.980 T:2942296288 DEBUG: Sample Format : AE_FMT_FLOAT
2022-06-18 16:23:55.984 T:2942296288 DEBUG: Channel Count : 2
2022-06-18 16:23:55.986 T:2942296288 DEBUG: Channel Layout: FL, FR
2022-06-18 16:23:55.988 T:2942296288 DEBUG: Frames : 2205
2022-06-18 16:23:55.990 T:2942296288 DEBUG: Frame Size : 8
2022-06-18 16:23:56.621 T:2785013984 DEBUG: script.module.osmcsetting.updates : - Update CONDITION : platform no longer maintained
2022-06-18 16:23:56.630 T:2566906080 INFO: Python interpreter stopped
2022-06-18 16:23:56.632 T:2566906080 DEBUG: Thread LanguageInvoker 2566906080 terminating
2022-06-18 16:23:56.634 T:2608140512 ERROR: GetDirectory - Error getting plugin://plugin.video.khanacademy/
2022-06-18 16:23:56.636 T:2608140512 DEBUG: Thread waiting 2608140512 terminating
2022-06-18 16:23:56.670 T:2979196944 DEBUG: ------ Window Deinit (DialogBusy.xml) ------
2022-06-18 16:23:56.678 T:2979196944 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.khanacademy/) failed
2022-06-18 16:23:56.680 T:2979196944 DEBUG: CGUIMediaWindow::GetDirectory (addons://sources/video)
2022-06-18 16:23:56.682 T:2979196944 DEBUG: ParentPath =
2022-06-18 16:23:56.689 T:2566906080 DEBUG: Thread waiting start, auto delete: false
2022-06-18 16:23:56.790 T:2979196944 DEBUG: ------ Window Init (DialogBusy.xml) ------
2022-06-18 16:23:56.837 T:2979196944 DEBUG: ------ Window Deinit (DialogBusy.xml) ------
2022-06-18 16:23:56.844 T:2566906080 DEBUG: Thread waiting 2566906080 terminating
2022-06-18 16:23:56.866 T:2566906080 DEBUG: Thread BackgroundLoader start, auto delete: false
2022-06-18 16:23:56.916 T:2979196944 DEBUG: [Warning] CGUITextureManager::GetTexturePath: could not find texture ‘noop’
2022-06-18 16:23:57.068 T:2566906080 DEBUG: Thread BackgroundLoader 2566906080 terminating
2022-06-18 16:23:57.124 T:2785013984 DEBUG: script.module.osmcsetting.updates : - Update CONDITION : platform no longer maintained
2022-06-18 16:24:01.071 T:2979196944 DEBUG: Previous line repeats 7 times.
2022-06-18 16:24:01.073 T:2979196944 DEBUG: ------ Window Deinit (DialogNotification.xml) ------
2022-06-18 16:24:01.139 T:2785013984 DEBUG: script.module.osmcsetting.updates : - Update CONDITION : platform no longer maintained
Looks like some pythonry is puking because a JSON object could not be decoded. Does this give anyone an idea of what is happening ?
Edit:
Sorry forgot to include the osmc version I am using:
$ grep VERSION_ID /etc/os-release
VERSION_ID=“2020.11-1”