Bug 280483 - Amarok webui does not start anymore
Summary: Amarok webui does not start anymore
Status: RESOLVED NOT A BUG
Alias: None
Product: amarok
Classification: Applications
Component: general (show other bugs)
Version: 2.4.3
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: 2.5
Assignee: Amarok Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-20 17:58 UTC by manu.wagner
Modified: 2012-09-08 21:00 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description manu.wagner 2011-08-20 17:58:57 UTC
Version:           2.4.3 (using KDE 4.6.5) 
OS:                Linux

Amarok webui is a nice script enabling to control amarok from any device though network.
It seems the script manager does not start anymore with amarok 2.4.3

Reproducible: Always

Steps to Reproduce:
install amarok webui script from amarok script manager.
restart amarok


Actual Results:  
amrok webui script has not been started

Expected Results:  
amrok webui script should start with amarok
Comment 1 Myriam Schweingruber 2011-08-20 21:16:48 UTC
The script manager starts correctly with all my usual scripts, this is the only one that doesn't. I suggest you report this to the script author, we are not responsible for 3rd-party scripts.
Comment 2 manu.wagner 2011-08-21 07:41:10 UTC
I don't agree.
This used to work until 2.4.3 and just stopped working.
I would be at least expecting some support from the script manager amarok developer !
Just to give me a hint on where to look, etc...
Comment 3 Myriam Schweingruber 2011-08-21 15:26:12 UTC
Did you at least have a look at the script code first? We didn't change anything in the script manager code in the recent months, so this is most likely not an Amarok regression at all but related to that particular script.
As I said, all my scripts work fine, and there are many, so I bet it is a problem with that particular script.
Comment 4 manu.wagner 2011-08-21 15:59:01 UTC
There is bound to be a change with amarok, as the same script works just fine with any previous 2.4.x amarok version.
The script has not been changed either.
I suggest that the amarok developers look into it.
Comment 5 manu.wagner 2011-08-21 17:09:55 UTC
here are the scriptmanager traces :

amarok:   BEGIN: void ScriptManager::configChanged(bool) 
amarok:     BEGIN: bool ScriptManager::slotRunScript(const QString&, bool) 
amarok:       BEGIN: void ScriptManager::startScriptEngine(const QString&) 
amarok:         [ScriptManager] start script engine: "WebUI" 
amarok:       END__: void ScriptManager::startScriptEngine(const QString&) [Took: 0s] 
amarok:       BEGIN: bool AmarokScript::ScriptImporter::loadQtBinding(const QString&) 
amarok:         importing qt bindings  "qt.core" 
amarok:         [WARNING] Qt Binding:  "qt.core"  not found! 
amarok:       END__: bool AmarokScript::ScriptImporter::loadQtBinding(const QString&) [Took: 0s] 
amarok:       BEGIN: bool AmarokScript::ScriptImporter::loadQtBinding(const QString&) 
amarok:         importing qt bindings  "qt.network" 
amarok:         [WARNING] Qt Binding:  "qt.network"  not found! 
amarok:       END__: bool AmarokScript::ScriptImporter::loadQtBinding(const QString&) [Took: 0s] 
amarok:       BEGIN: bool AmarokScript::ScriptImporter::loadQtBinding(const QString&) 
amarok:         importing qt bindings  "qt.gui" 
amarok:         [WARNING] Qt Binding:  "qt.gui"  not found! 
amarok:       END__: bool AmarokScript::ScriptImporter::loadQtBinding(const QString&) [Took: 0s] 
amarok:       BEGIN: bool AmarokScript::ScriptImporter::loadQtBinding(const QString&) 
amarok:         importing qt bindings  "qt.core" 
amarok:         [WARNING] Qt Binding:  "qt.core"  not found! 
amarok:       END__: bool AmarokScript::ScriptImporter::loadQtBinding(const QString&) [Took: 0s] 
amarok:       BEGIN: bool AmarokScript::ScriptImporter::loadQtBinding(const QString&) 
amarok:         importing qt bindings  "qt.network" 
amarok:         [WARNING] Qt Binding:  "qt.network"  not found! 
amarok:       END__: bool AmarokScript::ScriptImporter::loadQtBinding(const QString&) [Took: 0s] 
amarok:       [ERROR__] [ScriptManager] "Script Error: ReferenceError: Can't find variable: QByteArray (line: 22)" 
amarok:       BEGIN: void ScriptManager::slotStopScript(const QString&) 
amarok:         BEGIN: void ScriptManager::scriptFinished(const QString&) 
amarok:         END__: void ScriptManager::scriptFinished(const QString&) [Took: 0s] 
amarok:       END__: void ScriptManager::slotStopScript(const QString&) [Took: 0.013s] 
amarok:       [ScriptManager] The Log For the script that is the borked:  ("18:32:40 Script started", "Script Error: ReferenceError: Can't find variable: QByteArray (line: 22)", "18:32:40 Script ended") 
amarok:     END__: bool ScriptManager::slotRunScript(const QString&, bool) [Took: 0.032s] 
amarok:     BEGIN: bool ScriptManager::slotRunScript(const QString&, bool) 
amarok:       BEGIN: void ScriptManager::startScriptEngine(const QString&) 
amarok:         [ScriptManager] start script engine: "LyricWiki" 
amarok:       END__: void ScriptManager::startScriptEngine(const QString&) [Took: 0s] 
amarok:       [ScriptManager] lyrics script started: "LyricWiki" 
amarok:       BEGIN: bool AmarokScript::ScriptImporter::loadQtBinding(const QString&) 
amarok:         importing qt bindings  "qt.core" 
amarok:         [WARNING] Qt Binding:  "qt.core"  not found! 
amarok:       END__: bool AmarokScript::ScriptImporter::loadQtBinding(const QString&) [Took: 0s] 
amarok:       BEGIN: bool AmarokScript::ScriptImporter::loadQtBinding(const QString&) 
amarok:         importing qt bindings  "qt.xml" 
amarok:         [WARNING] Qt Binding:  "qt.xml"  not found! 
amarok:       END__: bool AmarokScript::ScriptImporter::loadQtBinding(const QString&) [Took: 0s] 
amarok:     END__: bool ScriptManager::slotRunScript(const QString&, bool) [Took: 0.002s] 
amarok:   END__: void ScriptManager::configChanged(bool) [Took: 0.035s] 
amarok: END__: void ScriptManager::updateAllScripts() [Took: 0.041s]
Comment 6 Myriam Schweingruber 2011-08-21 20:18:42 UTC
Something must be wrong with your installation, I just tested with 2.4.3 here and it works fine.
Comment 7 Dario Cambié 2012-09-08 21:00:17 UTC
This was caused by compilation without  qtscript-qt.[1]

I've just had the same error and I think there's a bug in how amarok handles this situation.

If compilation occurs with no scripting support the embedded scripts (eg. Amarok Script Console) are not available but still the user can download and install (from GHNS) new scripts, and they will never run.

All of this with no really diagnostic error message (see above).

[1] http://forum.kde.org/viewtopic.php?f=117&t=96575