kpl-addons / plugin.video.tvpgo

tvpgo
MIT License
5 stars 0 forks source link

TVPGO not working on osmc/kodi rpi #3

Closed krajewmar closed 2 years ago

krajewmar commented 2 years ago

Plugin is installed, but when I start is I've got an error. In log I see: Second part - TVP Sport is working well Could you advice, I'm not programmer :)

`2022-03-26 11:55:31.485 T:778 INFO : initializing python engine. 2022-03-26 11:55:31.952 T:778 ERROR : EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--

2022-03-26 11:55:31.954 T:522 INFO : CActiveAESink::OpenSink - initialize sink 2022-03-26 11:55:31.954 T:522 INFO : CAESinkALSA::Initialize - Attempting to open device "@" 2022-03-26 11:55:31.959 T:522 INFO : CAESinkALSA::Initialize - Opened device "sysdefault" 2022-03-26 11:55:31.960 T:522 INFO : CAESinkALSA::InitializeHW - Your hardware does not support AE_FMT_FLOAT, trying other formats 2022-03-26 11:55:31.960 T:522 INFO : CAESinkALSA::InitializeHW - Using data format AE_FMT_S24NE3 2022-03-26 11:55:32.148 T:778 INFO : Python interpreter stopped 2022-03-26 11:55:32.148 T:763 ERROR : GetDirectory - Error getting plugin://plugin.video.tvpgo/ 2022-03-26 11:55:36.814 T:779 INFO : initializing python engine. `

rysson commented 2 years ago

@krajewmar, hi, OSMC uses Python 3.7. Now our plugins (and libka library) supports Python 3.8+. We need to think what to do now.

DenDyGH commented 2 years ago

@krajewmar python 3.7 support has been added to LIBKA module. Make sure to update it to the newest version and try again with TVP GO.

krajewmar commented 2 years ago

I 've still got issue. I've updated libka to 0.0.16 trought zip install in Kodi. 2022-03-29 18:42:10.729 T:4281 INFO : initializing python engine. 2022-03-29 18:42:11.248 T:4281 ERROR : EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--

2022-03-29 18:42:11.440 T:4281 INFO : Python interpreter stopped 2022-03-29 18:42:11.453 T:4280 ERROR : GetDirectory - Error getting plugin://plugin.video.tvpgo/ 2022-03-29 18:42:11.484 T:488 ERROR : CGUIMediaWindow::GetDirectory(plugin://plugin.video.tvpgo/) failed

rysson commented 2 years ago

@krajewmar it's looks that upgrade fails and you use libka-0.0.15. Could you put here m5sum of /home/osmc/.kodi/addons/script.module.libka/lib/libka/utils.py?

krajewmar commented 2 years ago

It's osmc@osmc:~/.kodi/addons/script.module.libka/lib/libka$ md5sum ./utils.py dc35cf10b0ed5a0d9009eedeaecc0cd3 ./utils.py

But in TVPGO addon dependiences I can see info about Libka req 0.0.0 installed 0.0.16

krajewmar commented 2 years ago

I foud that addon.xml had 0.0.14 version. I did completly deinstall whole script.module.libka and new install via KPL repository. Now should by OK with libka version, but still got error.

osmc@osmc:~/.kodi/addons/script.module.libka/lib/libka$ md5sum ./utils.py 8a7526283c474ee7eeb1274fe11ce53c ./utils.py

2022-03-29 19:10:45.711 T:5759 INFO : initializing python engine. 2022-03-29 19:10:46.434 T:5759 ERROR : EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--

2022-03-29 19:10:46.635 T:5759 INFO : Python interpreter stopped 2022-03-29 19:10:46.637 T:5758 ERROR : GetDirectory - Error getting plugin://plugin.video.tvpgo/ 2022-03-29 19:10:46.667 T:488 ERROR : CGUIMediaWindow::GetDirectory(plugin://plugin.video.tvpgo/) failed

rysson commented 2 years ago

OK, upgrade is OK, now support for 3.7 is not so good. I'll look into.

rysson commented 2 years ago

@krajewmar, Try with libka-0.0.17. There ware missing functions in py 3.7 typing module. I don't like supporting old Python, but I understand OSMC upgrades very slow.

krajewmar commented 2 years ago

Yes, it's working. Thank you.

rysson commented 2 years ago

@krajewmar, you welcome. Than I close issue for you.