a new kodi error
name: Bug report about: Create a report to help us improve title: '' labels: '' assignees: ''
Addon used
- [x ] Amazon VOD (plugin.video.amazon-test)
- [ ] Browser Launcher (plugin.program.browser.launcher)
- Addon version:
Account type
- [x ] primevideo.com
- [ ] amazon.(com/co.uk/de/jp)
System Setup (please provide the following information):
- Hardware:
- OS version: bookworm
- Kodi version number: 20.5
Upload Logs
error - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'KeyError'>
Error Contents: 'metadata'
Traceback (most recent call last):
File "/home/pi/.kodi/addons/plugin.video.amazon-test/default.py", line 9, in <module>
EntryPoint(argv)
File "/home/pi/.kodi/addons/plugin.video.amazon-test/resources/lib/startup.py", line 67, in EntryPoint
_g.pv.Route(verb, path)
File "/home/pi/.kodi/addons/plugin.video.amazon-test/resources/lib/web_api.py", line 185, in Route
elif 'browse' == verb: self._g.pv.Browse(path)
^^^^^^^^^^^^^^^^^^^^^^^
File "/home/pi/.kodi/addons/plugin.video.amazon-test/resources/lib/web_api.py", line 459, in Browse
node, breadcrumb = self._TraverseCatalog(path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/pi/.kodi/addons/plugin.video.amazon-test/resources/lib/web_api.py", line 155, in _TraverseCatalog
self._LazyLoad(node[nodeName], pathList[0:1 + i])
File "/home/pi/.kodi/addons/plugin.video.amazon-test/resources/lib/web_api.py", line 1430, in _LazyLoad
bUpdatedVideoData |= ParseSinglePage(breadcrumb[-1], o, bCacheRefresh, url=iu)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/pi/.kodi/addons/plugin.video.amazon-test/resources/lib/web_api.py", line 893, in ParseSinglePage
siblings = sorted(siblings, key=(lambda k: self._videodata[k]['metadata']['videometa']['season']))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/pi/.kodi/addons/plugin.video.amazon-test/resources/lib/web_api.py", line 893, in <lambda>
siblings = sorted(siblings, key=(lambda k: self._videodata[k]['metadata']['videometa']['season']))
~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^
KeyError: 'metadata'
-->End of Python script error report<--
Describe the bug
I'm back because I'm getting an error again. It worked for a day after this: https://github.com/Sandmann79/xbmc/issues/775 and the error...Can you help me again, please?
There seems to be a problem with the video database. Try to clear both caches in Settings > Data source > Clear cache
Hello,
I have very similar error since 3 or 4 days when I try to load my Watch list, TV Shows:
2025-03-14 18:58:33.000 T:3516778 error <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'TypeError'>
Error Contents: '<' not supported between instances of 'NoneType' and 'str'
Traceback (most recent call last):
File "/home/kodi/.kodi/addons/plugin.video.amazon-test/default.py", line 9, in <module>
EntryPoint(argv)
File "/home/kodi/.kodi/addons/plugin.video.amazon-test/resources/lib/startup.py", line 67, in EntryPoint
_g.pv.Route(verb, path)
File "/home/kodi/.kodi/addons/plugin.video.amazon-test/resources/lib/web_api.py", line 185, in Route
elif 'browse' == verb: self._g.pv.Browse(path)
^^^^^^^^^^^^^^^^^^^^^^^
File "/home/kodi/.kodi/addons/plugin.video.amazon-test/resources/lib/web_api.py", line 459, in Browse
node, breadcrumb = self._TraverseCatalog(path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/kodi/.kodi/addons/plugin.video.amazon-test/resources/lib/web_api.py", line 155, in _TraverseCatalog
self._LazyLoad(node[nodeName], pathList[0:1 + i])
File "/home/kodi/.kodi/addons/plugin.video.amazon-test/resources/lib/web_api.py", line 1522, in _LazyLoad
self._Flush(bFlushVideoData=bCacheRefresh or bUpdatedVideoData)
File "/home/kodi/.kodi/addons/plugin.video.amazon-test/resources/lib/web_api.py", line 79, in _Flush
json.dump(self._videodata, fp, indent=2 if bPretty else None, separators=None if bPretty else (',', ':'), sort_ke
File "/usr/lib/python3.11/json/__init__.py", line 179, in dump
for chunk in iterable:
File "/usr/lib/python3.11/json/encoder.py", line 432, in _iterencode
yield from _iterencode_dict(o, _current_indent_level)
File "/usr/lib/python3.11/json/encoder.py", line 406, in _iterencode_dict
yield from chunks
File "/usr/lib/python3.11/json/encoder.py", line 354, in _iterencode_dict
items = sorted(dct.items())
^^^^^^^^^^^^^^^^^^^
TypeError: '<' not supported between instances of 'NoneType' and 'str'
-->End of Python script error report<--
Clearing one or both caches, even after restarting Kodi do not resolve the problem.
Hello
Exactly after cleaning the cache (both) and a restart, then I had to erase the login password and re-authentication now everything works wonderfully ....
Thanks
Thanks for the advice of re-authenticating; but it did not work for me. I have the same error than before. The error rises for TV Shows only, not for Films.
Same here with most recent release and OSMC Kodi on Vero 4k. This is a grave issue.
@mickey86 @laclaro please try the beta version from this post: https://github.com/Sandmann79/xbmc/issues/779#issuecomment-2795208852
Just installed the last version available (1.1.6+matrix.1), backed to Website Datasource, cleared cache of both catalogue and video, and it worked!
Thanks!
This issue has been marked as stale because there has been no activity for more than 6 months. If no update is made, this issue will be closed in 14 days.