Kodi Community Forum

Full Version: Python exception in Crackler
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I just got my CuBox with Kodi pre-installed. I installed Crackler and the script failed. Excerpt from the log file:

02:35:35 T:1518335040 NOTICE: -->Python Interpreter Initialized<--
02:35:37 T:1518335040 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.KeyError'>
Error Contents: ('v_id',)
Traceback (most recent call last):
File "/storage/.kodi/addons/plugin.video.crackler/default.py", line 193, in <module>
jsonurl = urllib2.urlopen(channel_detail_url % (args_ar['v_id'][0]))
KeyError: ('v_id',)
-->End of Python script error report<--
02:35:37 T:1968599584 ERROR: GetDirectory - Error getting plugin://plugin.video.crackler/?indx=13&mode=view_episodes&v_id=152
02:35:37 T:1968599584 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.crackler/?indx=13&mode=view_episodes&v_id=152) failed
02:35:37 T:1518335040 NOTICE: Thread BackgroundLoader start, auto delete: false
02:35:46 T:1518335040 NOTICE: Thread LanguageInvoker start, auto delete: false
02:35:46 T:1518335040 NOTICE: -->Python Interpreter Initialized<--
02:35:48 T:1518335040 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.KeyError'>
Error Contents: ('v_id',)
Traceback (most recent call last):
File "/storage/.kodi/addons/plugin.video.crackler/default.py", line 193, in <module>
jsonurl = urllib2.urlopen(channel_detail_url % (args_ar['v_id'][0]))
KeyError: ('v_id',)
-->End of Python script error report<--
02:35:48 T:1968599584 ERROR: GetDirectory - Error getting plugin://plugin.video.crackler/?indx=13&mode=view_episodes&v_id=152
02:35:48 T:1968599584 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.crackler/?indx=13&mode=view_episodes&v_id=152) failed
02:35:48 T:1518335040 NOTICE: Thread BackgroundLoader start, auto delete: false
02:35:52 T:1518335040 NOTICE: Thread LanguageInvoker start, auto delete: false
02:35:52 T:1518335040 NOTICE: -->Python Interpreter Initialized<--
02:35:53 T:1518335040 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.KeyError'>
Error Contents: ('v_id',)
Traceback (most recent call last):
File "/storage/.kodi/addons/plugin.video.crackler/default.py", line 193, in <module>
jsonurl = urllib2.urlopen(channel_detail_url % (args_ar['v_id'][0]))
KeyError: ('v_id',)
-->End of Python script error report<--
02:35:53 T:1968599584 ERROR: GetDirectory - Error getting plugin://plugin.video.crackler/?indx=12&mode=view_episodes&v_id=335
02:35:53 T:1968599584 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.crackler/?indx=12&mode=view_episodes&v_id=335) failed
02:35:53 T:1518335040 NOTICE: Thread BackgroundLoader start, auto delete: false
02:35:56 T:1518335040 NOTICE: Thread LanguageInvoker start, auto delete: false
02:35:56 T:1518335040 NOTICE: -->Python Interpreter Initialized<--
02:35:57 T:1518335040 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.KeyError'>
Error Contents: ('v_id',)
Traceback (most recent call last):
File "/storage/.kodi/addons/plugin.video.crackler/default.py", line 193, in <module>
jsonurl = urllib2.urlopen(channel_detail_url % (args_ar['v_id'][0]))
KeyError: ('v_id',)
-->End of Python script error report<--
edit the default.py and change the following (occurs 2 times):

from:
args_ar = urlparse.parse_qs(urlparse.urlparse(sys.argv[0]+sys.argv[2]).query)


to:
args_ar = urlparse.parse_qs(sys.argv[2][1:])