Script Error: addon.py
#1
Having followed a fairly recent How-To in this forum for the Advanced Launcher, I am getting the following error message in Confluence.

script error: addon.py


Here is the relevant section of my xbmc.log file.

09:01:04 T:2707417920 NOTICE: Thread Background Loader start, auto delete: false
09:01:04 T:2707417920 WARNING: CreateLoader - Unsupported protocol(addons) in addons://more/executable.tbn
09:01:04 T:2707417920 NOTICE: Thread Jobworker start, auto delete: true
09:01:06 T:2835872576 NOTICE: Thread XBPyThread start, auto delete: false
09:01:06 T:2835872576 NOTICE: -->Python Interpreter Initialized<--
09:01:06 T:2835872576 NOTICE: Launcher: found 1 launchers
09:01:06 T:2809133888 NOTICE: Thread Background Loader start, auto delete: false
09:01:07 T:2835872576 NOTICE: Thread XBPyThread start, auto delete: false
09:01:07 T:2835872576 NOTICE: -->Python Interpreter Initialized<--
09:01:07 T:2835872576 NOTICE: Launcher: found 1 launchers
09:01:07 T:2835872576 ERROR: EXCEPTION: Unimplemented method: executehttpapi::executehttpapi(...)
09:01:07 T:2835872576 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.RuntimeError'>
Error Contents: Unimplemented method: executehttpapi::executehttpapi(...)
Traceback (most recent call last):
File "/home/smigers/.xbmc/addons/plugin.program.advanced.launcher/addon.py", line 19, in <module>
plugin.Main()
File "/home/smigers/.xbmc/addons/plugin.program.advanced.launcher/resources/lib/launcher_plugin.py", line 189, in __init__
self._run_launcher(launcher)
File "/home/smigers/.xbmc/addons/plugin.program.advanced.launcher/resources/lib/launcher_plugin.py", line 1129, in _run_launcher
xbmc.executehttpapi("Action(199)")
RuntimeError: Unimplemented method: executehttpapi::executehttpapi(...)
-->End of Python script error report<--


Reply
#2
Read the forum rules!! No code snippets on the forum so please remove
http://forum.xbmc.org/showthread.php?tid=153170

Besides that you are running an Eden script in Frodo and that won't work.
Force refresh your xbmc repo ("hit 'c' on it)

Read/follow the forum rules.
For troubleshooting and bug reporting, read this first
Interested in seeing some YouTube videos about Kodi? Go here and subscribe
Reply
#3
That's because httpapi is no longer supported for Frodo (XBMC v12). You must be running an old version of Advanced Launcher. Update to the latest version and see if that fixes your problem.
Reply
#4
No code snippets ?
I didn't post a code snippet, I posted a log file entry

Besides, the "rules" you reference state the following:
"When posting a problem you are encouraged to post a debug log from when the problem occurred."

If this is an Eden script, then there is something strange going on, since this machine has had a fresh install of Frodo.

Also, what do you mean "hit 'c' on it" ?

I'm running XBMCbuntu, if that makes a difference.

Reply
#5
(2013-01-31, 10:32)SmittyBoy Wrote: Also, what do you mean "hit 'c' on it" ?

That means to open to context menu (keyboard "c") on the repository and select "Force refresh".
System/Settings > Add-ons > Get Add-ons > XBMC.org Add-ons

Then update your Advanced Launcher.


Reply
#6
@artafael: I have just done as you said. The version of the add-ons was 2.0.6, and did not change after the Force Refresh.

Same error is still produced by the launcher
Reply
#7
OK, it looks like the version of Advanced Launcher on the XBMC.org repository is stuck at 1.7.6, which still uses httpapi. You can install Angelscry's repository from the zip file and it should automatically update your Advanced Launcher to the current 1.10.16 version which uses JSON-RPC instead of httpapi.

The download link for the repository is in the first post here: http://forum.xbmc.org/showthread.php?tid=85724
Reply
#8
OK, that solved the issue. Many Thanks

Is there a way for me to do this from the command-line, via a ssh session into my XBMC host ?

I find the UI for working with XBMC to be quite clunky
Reply
#9
(2013-01-31, 13:43)SmittyBoy Wrote: OK, that solved the issue. Many Thanks

Is there a way for me to do this from the command-line, via a ssh session into my XBMC host ?

I find the UI for working with XBMC to be quite clunky
Just download and install my repository into XBMC using the "install from ZIP" option into XBMX/System/Add-ons menu, then Advanced Launcher will be always automatically updated when a new version will be released.

Reply
#10
(2013-01-31, 14:03)Angelscry Wrote:
(2013-01-31, 13:43)SmittyBoy Wrote: OK, that solved the issue. Many Thanks

Is there a way for me to do this from the command-line, via a ssh session into my XBMC host ?

I find the UI for working with XBMC to be quite clunky
Just download and install my repository into XBMC using the "install from ZIP" option into XBMX/System/Add-ons menu, then Advanced Launcher will be always automatically updated when a new version will be released.
Will you be updating one in repo any time soon?
A lot of users will face this problem.

Read/follow the forum rules.
For troubleshooting and bug reporting, read this first
Interested in seeing some YouTube videos about Kodi? Go here and subscribe
Reply
#11
(2013-01-31, 14:09)Martijn Wrote:
(2013-01-31, 14:03)Angelscry Wrote:
(2013-01-31, 13:43)SmittyBoy Wrote: OK, that solved the issue. Many Thanks

Is there a way for me to do this from the command-line, via a ssh session into my XBMC host ?

I find the UI for working with XBMC to be quite clunky
Just download and install my repository into XBMC using the "install from ZIP" option into XBMX/System/Add-ons menu, then Advanced Launcher will be always automatically updated when a new version will be released.
Will you be updating one in repo any time soon?
A lot of users will face this problem.
Last time I have wanted to update Advanced Launcher on official XBMC repo it have been refused 3 times arguing rules that add-ons containing python codes compatible only with some specific versions of XBMC were not accepted. Effectively Advanced Launcher contain codes only compatible with Dharma, Eden or Frodo versions of XBMC, but this codes are only executed under the compatible version of XBMC. For example :

Code:
...
try:
    # Dharma / Eden compatible
    xbmc.executehttpapi("Action(199)")
except:
    # Frodo & + compatible
    xbmc.executeJSONRPC('{"jsonrpc":"2.0","method":"Input.ExecuteAction","params":{"action":"togglefullscreen"},"id":"1"}')
...

Actually a same version of Advanced Launcher is compatible with Dharma, Eden and Frodo versions of XBMC... and it is for this reason that it was not accepted by XBMC official repo maintainers.

Then, it was proposed to me to create different versions of Advanced Launcher (one fully compatible with Dharma, one fully compatible with Eden, etc...). And it was also asked me to assign different version number to Advanced Launcher for each version of XBMC to allow more easy transitions when user was changing XBMC version... It's at this time that I have decided to only propose update on my proper repo.

Seriously? I do not see the benefit for users to have 3 different version of Advanced Launcher with 3 different version number when only a single one can to exactly the same job. I understand why these repo rules exists, but I will not remove Advanced Launcher multi XBMC version support, only because the XBMC official repository do not support it. I can propose Advanced Launcher for update but if the repo rules still the same it will be surely again rejected.

If version 1.7.6 of Advanced Launcher is not working under Frodo just do as for the other add-ons... mark it as broken.



Reply
#12
(2013-01-31, 14:03)Angelscry Wrote: Just download and install my repository........ updated when a new version will be released.

No offense, but I don't really want automatic updates from a developer. I'm sure you're quite competent, but, being a developer myself, I'd rather not have to 'work' at home.
Reply
#13
(2013-01-31, 17:36)SmittyBoy Wrote:
(2013-01-31, 14:03)Angelscry Wrote: Just download and install my repository........ updated when a new version will be released.

No offense, but I don't really want automatic updates from a developer. I'm sure you're quite competent, but, being a developer myself, I'd rather not have to 'work' at home.
No problem... but from who you will have it if it is not from me?

Reply
#14
@Angelscry - Kommen Sie auf Deutschland ?
I'd prefer to take "release" functionality, of course - who wouldn't - but, in emergencies, yes, I will take it from the developer.

The difference - as we all know - is not necessarily quality, but consistency. When I go to update my system, and when I post questions on forums, it is presumed I am a "production release" user. Having to specify special cases for system updates, and questions makes life tedious.

While I greatly appreciate that it's developers that allow the system as a whole to function, I don't really want to be ties into a single developers repository for anything. That adds unnecessary fragility.
Reply
#15
@SmittyBoy
We are agree. The 1 year old version of Advanced Launcher hosted on official XBMC repository is not any more compatible with last Frodo version of XBMC and must have be marked as broken or be removed.
Reply

Logout Mark Read Team Forum Stats Members Help
Script Error: addon.py0