When I first tried using Parley 1.0.0 (which I had installed using the Software Manager in Mint 17, 32-bit), I downloaded many vocab files via the built-in mechanism, and when I tried the first one, it told me all five of the stock script add-ons failed, all with the message in the title. It also says that for any of them that I try to re-enable from Parley's menu item Scripts -> Script Manager. If I open a terminal: $ python --version Python 2.7.6 So...I'm not sure what it means or how to fix it. (Wouldn't the interpreter for a .py file be Python? Why wouldn't it be able to find it on a stock install?) The full error given is: Error in file /usr/share/kde4/apps/parley/plugins/example.py at line -1: Failed to determine interpreter for scriptfile "/usr/share/kde4/apps/parley/plugins/example.py" If I run Parley from a Terminal it gives more information, but the last line is all it spits out at the actual time of the error, and it doesn't give anything more than the popup did: $ parley Could not add child element to parent element because the types are incorrect. parley(10341)/kdeui (kdelibs): Attempt to use QAction "show_lesson_dock" with KXMLGUIFactory! parley(10341)/kdeui (kdelibs): Attempt to use QAction "show_wordtype_dock" with KXMLGUIFactory! parley(10341)/kdeui (kdelibs): Attempt to use QAction "show_inflection_dock" with KXMLGUIFactory! parley(10341)/kdeui (kdelibs): Attempt to use QAction "show_comparison_dock" with KXMLGUIFactory! parley(10341)/kdeui (kdelibs): Attempt to use QAction "show_multiplechoice_dock" with KXMLGUIFactory! parley(10341)/kdeui (kdelibs): Attempt to use QAction "show_synonym_dock" with KXMLGUIFactory! parley(10341)/kdeui (kdelibs): Attempt to use QAction "show_antonym_dock" with KXMLGUIFactory! parley(10341)/kdeui (kdelibs): Attempt to use QAction "show_falsefriend_dock" with KXMLGUIFactory! parley(10341)/kdeui (kdelibs): Attempt to use QAction "show_pronunciation_dock" with KXMLGUIFactory! parley(10341)/kdeui (kdelibs): Attempt to use QAction "show_image_dock" with KXMLGUIFactory! parley(10341)/kdeui (kdelibs): Attempt to use QAction "show_summary_dock" with KXMLGUIFactory! parley(10341)/kdeui (kdelibs): Attempt to use QAction "show_audio_dock" with KXMLGUIFactory! parley(10341)/kdeui (kdelibs): Attempt to use QAction "show_browser_dock" with KXMLGUIFactory! parley(10341)/kdeui (kdelibs): Attempt to use QAction "show_latex_dock" with KXMLGUIFactory! parley(10341)/kdecore (KPluginInfo) KPluginInfo::kcmServices: found 0 offers for "google_images" parley(10341)/kdecore (KPluginInfo) KPluginInfo::kcmServices: found 0 offers for "parley_example_script" parley(10341)/kdecore (KPluginInfo) KPluginInfo::kcmServices: found 0 offers for "google_dict" parley(10341)/kdecore (KPluginInfo) KPluginInfo::kcmServices: found 0 offers for "wiktionary_sound" parley(10341)/kdecore (KPluginInfo) KPluginInfo::kcmServices: found 0 offers for "leo_dict" (parley:10341): Gtk-CRITICAL **: IA__gtk_widget_get_direction: assertion 'GTK_IS_WIDGET (widget)' failed (parley:10341): Gtk-CRITICAL **: IA__gtk_widget_get_direction: assertion 'GTK_IS_WIDGET (widget)' failed Kross: "Error error=Failed to determine interpreter for scriptfile "/usr/share/kde4/apps/parley/plugins/example.py" lineno=-1 trace= " The first line printed immediately. The following kdelibs lines printed when I clicked Editor (after loading a downloaded vocab file). The next five came when I clicked Scripts->Script Manager. The CRITICAL lines printed when I clicked to toggle the checkbox to the on position, next to Example Parley Script. The last line printed (and the error popped up) when I clicked OK. Reproducible: Always Steps to Reproduce: 1. Open a vocab file. 2. Click Editor. 3. Click Scripts->Script Manager. 4. Enable any script(s). 5. Click OK. Actual Results: Error given above. Expected Results: No error, hopefully script working as advertised?
Kubuntu 14.10 $ parley --version Qt: 4.8.6 KDE: 4.14.2 Parley: 1.1.1 $ python --version Python 2.7.8 Not reproducible for me Please paste the output of "$ parley --version"
Qt: 4.8.6 KDE Development Platform: 4.13.3 Parley: 1.0.0
Please explain how to keep Parley up-to-date, because it seems that using the normal Update Manager of Linux Mint does not suffice.
The actual interpreter used in not python -- despite the .py suffix. I stumbled over the same error on openSUSE_Tumbleweed. Looking at the script shows : head -1 /usr/share/parley/plugins/example.py #!/usr/bin/env kf5kross So the actual interpreter is "kf5kross". In the case of Tumbleweed, this binary was in the -devel package, not in the normal rpm. You'd need to find out on Mint which package contains this binary and inform the package maintainers about this inconsistency. HTH, Christof
Thank you for the bug report. As this report hasn't seen any changes in 5 years or more, we ask if you can please confirm that the issue still persists. If this bug is no longer persisting or relevant please change the status to resolved.
Kross got removed in KF6, that solves this.