Kodi Community Forum
Python exception in Crackler - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Video Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=154)
+---- Thread: Python exception in Crackler (/showthread.php?tid=219432)



Python exception in Crackler - SoCalDude - 2015-02-24

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<--


RE: Python exception in Crackler - rstillhard - 2015-05-21

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:])