Bug 341540 - “Failed to determine interpreter for scriptfile” error popup for all 5 stock plugin scripts on Mint 17 (with Python 2.7.6)
Summary: “Failed to determine interpreter for scriptfile” error popup for all 5 stock ...
Status: REPORTED
Alias: None
Product: parley
Classification: Applications
Component: editor (show other bugs)
Version: 1.0.0
Platform: Mint (Ubuntu based) Linux
: NOR major
Target Milestone: ---
Assignee: parley bug tracker
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-04 09:43 UTC by jisgeebo
Modified: 2021-03-09 23:43 UTC (History)
2 users (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 jisgeebo 2014-12-04 09:43:55 UTC
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?
Comment 1 Burkhard Lück 2014-12-05 07:24:35 UTC
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"
Comment 2 jisgeebo 2015-01-13 17:54:08 UTC
Qt: 4.8.6
KDE Development Platform: 4.13.3
Parley: 1.0.0
Comment 3 jisgeebo 2015-01-13 17:56:01 UTC
Please explain how to keep Parley up-to-date, because it seems that using the normal Update Manager of Linux Mint does not suffice.
Comment 4 Christof Hanke 2015-12-01 13:02:08 UTC
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
Comment 5 Justin Zobel 2021-03-09 23:43:39 UTC
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.