![]() |
[LINUX] 10th April PVR Build Breaks Addons? - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26) +---- Forum: PVR (https://forum.kodi.tv/forumdisplay.php?fid=136) +---- Thread: [LINUX] 10th April PVR Build Breaks Addons? (/showthread.php?tid=99009) |
[LINUX] 10th April PVR Build Breaks Addons? - Prof Yaffle - 2011-04-10 Not my day... two new threads on the forum in a couple of hours! I (literally) just picked up today's new build of Lars Opdenkamp's PPA - and I'm having addon problems. At the least, Executor no longer wants to play: Code: 17:10:42 T:4884288 M:2761351168 DEBUG: LIRC: Update - NEW at 75431:000000037ff07bdd 00 OK mceusb (OK) Any thoughts?? I have no clue at all about Python, and my C is 20 years out of date, so it's a long night's debugging otherwise... EDIT I suppose it *might* be related to this API change, although I would have thought that these changes would have broken the add-on earlier given Dushmaniac's intentions on the merge schedule. If so, and if it's a general XBMC API change, then Executor will break for mainline users as well, I suspect... but it shouldn't be PVR-specific... - opdenkamp - 2011-04-10 this has nothing to do with pvr but with changes in mainline xbmc. we're no longer using an ancient python. that executor plugin you're using probably can't handle that newer version yet. - Prof Yaffle - 2011-04-11 Thanks, Dushmaniac. At least that saves me some futile searching... I'll try a different way to get browser et al working, then, unless the Executor plugin catches up quickly! danish addons suffer same error... - Termo - 2011-04-11 All of the danish addons has the same problem ![]() http://forum.xbmc.org/showthread.php?tid=82238 - Prof Yaffle - 2011-04-12 I suspect it may be a widespread implication of XBMC's Python updates. I've tried Executor (fails), Advanced Launcher (fails) and Launcher (complains a lot, but mostly works most of the time). Ah, well, maybe it's time to clear out some of the older addons by finding out which ones are still maintained! - opdenkamp - 2011-04-12 our stable release (dharma) is still using the old python, so there's probably nothing wrong with those addons. - Prof Yaffle - 2011-04-14 Maybe not, but it sounds like there will be soon enough when the new Python version code drips down. I'm sure these addons aren't alone, either! Forewarning, that's all. - sphere - 2011-04-15 This error has nothing to do with the python version. It is related to the recent "os.getcwd()" changes in master. Addons should not use "os.getcwd()" to get their addon id - the ID has to be hardcoded. To fix this error search for "os.getcwd()" and replace it by the addon id. To fix the addon from your Logfile go to Line 4 of the file "/home/xbmc/.xbmc/addons/plugin.program.executor/default.py" and replace: Code: wrong: Addon = xbmcaddon.Addon(id=os.path.basename(os.getcwd())) sphere - Prof Yaffle - 2011-04-15 Thanks, Sphere. That's mostly cured it - at least, enough to use it again - so many thanks there. For reference for anyone else who stumbles in here, I actually had to change the following file and not default.py because of various include directives: Code: ~/.xbmc/addons/plugin.program.executor/resources/lib/executor.py The plugin still throws an error, but does now work. Interestingly, I get the same error with the Launcher plugin as well, and that also works despite the complaints. XBMC reports: Code: Error And writes this to the log file: Code: 17:55:25 T:2562145136 M:2714238976 DEBUG: Process - Entering source directory /home/xbmc/.xbmc/addons/plugin.program.executor I suppose that could be related to Python versions or similar. There's no immediate explanation for the Failed to close the script file error that I can see, so I suspect that's entirely misleading. It's more likely the null argument to internal routine error, and maybe that's a default that's no longer valid or something similar. I'm interested now so I'll start digging to see if I can follow the logic - but I'll probably lose interest soon enough - or, more accurately, have my interest lost for me when my wife wants the television back :p Thanks for the help, all. |