lekma / plugin.video.invidious

Invidious Addon for Kodi
GNU General Public License v3.0
50 stars 7 forks source link

Addon not loading #68

Closed WarLL3 closed 2 years ago

WarLL3 commented 2 years ago
2021-11-11 10:55:12.551 T:14439   DEBUG <general>: CPythonInvoker(56, /home/osmc/.kodi/addons/plugin.video.invidious/lib/service.py): setting the Python path to /home/osmc/.kodi/addons/plugin.video.invidious/lib:/home/osmc/.kodi/addons/script.module.certifi/lib:/home/osmc/.kodi/addons/script.module.chardet/lib:/home/osmc/.kodi/addons/script.module.iapc/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.urllib3/lib:/:/usr/lib/python37.zip:/usr/lib/python3.7:/usr/lib/python3.7/lib-dynload:/home/osmc/.local/lib/python3.7/site-packages:/usr/local/lib/python3.7/dist-packages:/usr/lib/python3/dist-packages
2021-11-11 10:55:12.552 T:14439   DEBUG <general>: CPythonInvoker(56, /home/osmc/.kodi/addons/plugin.video.invidious/lib/service.py): entering source directory /home/osmc/.kodi/addons/plugin.video.invidious/lib
2021-11-11 10:55:12.552 T:14440   DEBUG <general>: Thread waiting 3267330240 terminating
2021-11-11 10:55:12.553 T:14439   DEBUG <general>: CPythonInvoker(56, /home/osmc/.kodi/addons/plugin.video.invidious/lib/service.py): instantiating addon using automatically obtained id of "plugin.video.invidious" dependent on version 3.0.0 of the xbmc.python api
2021-11-11 10:55:12.589 T:13855   DEBUG <general>: ------ Window Deinit (DialogBusy.xml) ------
2021-11-11 10:55:12.592 T:14441   DEBUG <general>: Thread BackgroundLoader start, auto delete: false
2021-11-11 10:55:12.594 T:14441   DEBUG <general>: Thread BackgroundLoader 3069685952 terminating
2021-11-11 10:55:12.756 T:14439   ERROR <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                                    - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                                   Error Type: <class 'SyntaxError'>
                                                   Error Contents: invalid syntax (service.py, line 61)
                                                     File "/home/osmc/.kodi/addons/plugin.video.invidious/lib/service.py", line 61
                                                       if (timeout := getSetting("timeout", float)) <= 0.0:
                                                                   ^
                                                   SyntaxError: invalid syntax
                                                   -->End of Python script error report<--

2021-11-11 10:55:12.756 T:14439   DEBUG <general>: onExecutionDone(56, /home/osmc/.kodi/addons/plugin.video.invidious/lib/service.py)
2021-11-11 10:55:13.049 T:14439    INFO <general>: Python interpreter stopped

System information:

PRETTY_NAME="Open Source Media Center"
NAME="OSMC"
VERSION="August 2021"
VERSION_ID="2021.08-1"
ID=osmc
ID_LIKE=debian

ANSI_COLOR="1;31"
HOME_URL="https://www.osmc.tv"
SUPPORT_URL="https://www.osmc.tv"
BUG_REPORT_URL="https://www.osmc.tv"

This happened right after installing the addon. After that it cannot be loaded with the following error:

2021-11-11 10:23:50.555 T:13619   ERROR <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                                    - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                                   Error Type: <class 'SyntaxError'>
                                                   Error Contents: invalid syntax (plugin.py, line 67)
                                                     File "/home/osmc/.kodi/addons/plugin.video.invidious/lib/plugin.py", line 67
                                                       if (more := getattr(items, "more", None)):
                                                                ^
                                                   SyntaxError: invalid syntax
                                                   -->End of Python script error report<--

2021-11-11 10:23:50.555 T:13619   DEBUG <general>: onExecutionDone(117, /home/osmc/.kodi/addons/plugin.video.invidious/lib/plugin.py)
lekma commented 2 years ago

kodi 18? if yes, you need v0.6.6 (with script.module.iapc v0.2.1) if no, please include the version of python interpreter (iirc the walrus operator requires python v3.8). (easiest way is always to install the repo and then install from it).

WarLL3 commented 2 years ago

It's Kodi matrix with Python 3.7.3 (default, Jan 22 2021, 20:04:44) [GCC 8.3.0] on linux

alright that means I need to upgrade to Python 3.8 to get it running? Thanks for the info :)