2021-07-04, 13:13
I get this error when I try to update the imdb rating for a movie/tv show, "Error Contents: local variable 'jSonQuery' referenced before assignment". I'm on Matrix 19.0, Android, Xonfluence skin.
03 22:16:21.437 T:26999 WARNING <general>: xbmc.translatePath is deprecated and might be removed in future kodi versions. Please use xbmcvfs.translatePath instead.
2021-07-03 22:16:21.438 T:26999 DEBUG <CAddonSettings[script.light.imdb.ratings.update]>: trying to load setting definitions from old format...
2021-07-03 22:16:22.083 T:26999 ERROR <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'UnboundLocalError'>
Error Contents: local variable 'jSonQuery' referenced before assignment
Traceback (most recent call last):
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.light.imdb.ratings.update/context.py", line 16, in <module>
UpdateContext()
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.light.imdb.ratings.update/context.py", line 13, in UpdateContext
update_context.open_context_menu( sys.listitem.getPath(), sys.listitem.getLabel() )
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.light.imdb.ratings.update/resources/core/update_context.py", line 58, in open_context_menu
jSonResponse = xbmc.executeJSONRPC( jSonQuery )
UnboundLocalError: local variable 'jSonQuery' referenced before assignment
-->End of Python script error report<--
03 22:16:21.437 T:26999 WARNING <general>: xbmc.translatePath is deprecated and might be removed in future kodi versions. Please use xbmcvfs.translatePath instead.
2021-07-03 22:16:21.438 T:26999 DEBUG <CAddonSettings[script.light.imdb.ratings.update]>: trying to load setting definitions from old format...
2021-07-03 22:16:22.083 T:26999 ERROR <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'UnboundLocalError'>
Error Contents: local variable 'jSonQuery' referenced before assignment
Traceback (most recent call last):
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.light.imdb.ratings.update/context.py", line 16, in <module>
UpdateContext()
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.light.imdb.ratings.update/context.py", line 13, in UpdateContext
update_context.open_context_menu( sys.listitem.getPath(), sys.listitem.getLabel() )
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.light.imdb.ratings.update/resources/core/update_context.py", line 58, in open_context_menu
jSonResponse = xbmc.executeJSONRPC( jSonQuery )
UnboundLocalError: local variable 'jSonQuery' referenced before assignment
-->End of Python script error report<--