aussieaddons / repo

Aussie Add-ons repository for Kodi
http://aussieaddons.com/installation/
100 stars 45 forks source link

abc_iview 1.8.0 crashes on start under LibreElec 8.0.2 / Kodi 17.3 #60

Closed LibreGoose closed 7 years ago

LibreGoose commented 7 years ago

I have plugins set to autoupdate. The ABC iView plugin stopped working when it autoupdated to 1.8.0.

I haven't investigate much yet, but thought that I'd post the log here as a starting point.

ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--

andybotting commented 7 years ago

OK, so looks like it can't find the requests library, which is required. Most of our add-ons use the requests library - do you have any of them installed, like AFL Video for example?

LibreGoose commented 7 years ago

The only other plugin that I had installed was the SBS catchup. It fails with the same problem.

I'm just in the middle of uninstalling the catchup plugins and re-installing them.

LibreGoose commented 7 years ago

This isn't a bug in the catchupvt-au plugin

The requests module is somehow missing from python in the Kodi 17.3 / LibreElect build for the raspberry pi.

To fix the problem I went to http://mirrors.kodi.tv/addons/krypton/script.module.requests/ and downloaded: script.module.requests-2.12.4.zip

The I installed the same way that the catchuptv repository is installed.

Addins -> choose the little box icon at the top of the 17.3 menu -> Install from Zip -> "my usb stick" -> script.module.requests-2.12.4.zip

Suddenly cathuptv-au works again.

Thanks Andy for responding - this isn't a bug in your awesome add-on.

My 4 YO sends you his love. ABC4Kids is back :)

andybotting commented 7 years ago

That's great. We actually include requests in our repo here: https://github.com/xbmc-catchuptv-au/repo/tree/master/script.module.requests

Why you couldn't pull that in via the repository is the interesting thing,

LibreGoose commented 7 years ago

I think it is some sort of general Kodi - python error. I googled the "ImportError: No module named requests" problem and got heaps of hits for all different versions of Kodi/XBMC since 2012 with all sorts of different plugins.

Given the wide usage of "requests" in python scripts, I don't understand why it is even a separate installable thing. It is so widely used it should just be one of the python pre-reqs for kodi itself. Or better still: just something built into the base install of python.

glennguy commented 7 years ago

@andybotting I know why this has happened, it happened to me when updating NRL - even though we have the import requirements listed in the iview addon.xml, it needs to be added to addons.xml in the repo. I'm about to make a PR for my changes to iview so if your happy with your review we could make a release and fix this at the same time.