desktop-packages team mailing list archive
-
desktop-packages team
-
Mailing list archive
-
Message #148306
[Bug 1450147] Re: 'im-config -l' complains about zenity not installed
Hello,
I don't get a good result in Vivid. The program starts, then disappears. In console:
**************************
$ gnome-language-selector
(gnome-language-selector:19985): Gtk-WARNING **: Theme parsing error:
gtk-widgets.css:2:16: Theming engine 'adwaita' not found
(gnome-language-selector:19985): Gtk-WARNING **: Theme parsing error:
gtk-widgets.css:62:15: Not using units is deprecated. Assuming 'px'.
(gnome-language-selector:19985): Gtk-WARNING **: Theme parsing error:
gtk-widgets.css:62:17: Not using units is deprecated. Assuming 'px'.
(gnome-language-selector:19985): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:909:16: Theming engine 'adwaita' not found
E : zenity doit être installé.
Traceback (most recent call last):
File "/usr/bin/gnome-language-selector", line 22, in on_activate
options=options)
File "/usr/lib/python3/dist-packages/LanguageSelector/gtk/GtkLanguageSelector.py", line 199, in __init__
self.check_input_methods()
File "/usr/lib/python3/dist-packages/LanguageSelector/gtk/GtkLanguageSelector.py", line 54, in wrapper
res = f(*args, **kwargs)
File "/usr/lib/python3/dist-packages/LanguageSelector/gtk/GtkLanguageSelector.py", line 454, in check_input_methods
for (i, IM) in enumerate(self.ImConfig.getAvailableInputMethods()):
File "/usr/lib/python3/dist-packages/LanguageSelector/ImConfig.py", line 19, in getAvailableInputMethods
inputMethods = subprocess.check_output(['im-config', '-l']).decode().split()
File "/usr/lib/python3.4/subprocess.py", line 620, in check_output
raise CalledProcessError(retcode, process.args, output=output)
subprocess.CalledProcessError: Command '['im-config', '-l']' returned non-zero exit status 1
**************************
The packages installed:
accountsservice (version 0.6.37-1ubuntu10.1) sera installé
im-config (version 0.29-1ubuntu2) sera installé
language-selector-common (version 0.143) sera installé
language-selector-gnome (version 0.143) sera installé
libaccountsservice0 (version 0.6.37-1ubuntu10.1) sera installé
zenity is not installed:
$ apt-cache policy zenity
zenity:
Installé : (aucun)
Candidat : 3.14.0-1
Table de version :
3.14.0-1 0
500 http://archive.ubuntu.com/ubuntu/ vivid/main amd64 Packages
$
If I install it:
$ sudo apt-get install zenity
...
$
Then retry:
$ gnome-language-selector
(gnome-language-selector:21113): Gtk-WARNING **: Theme parsing error:
gtk-widgets.css:2:16: Theming engine 'adwaita' not found
(gnome-language-selector:21113): Gtk-WARNING **: Theme parsing error:
gtk-widgets.css:62:15: Not using units is deprecated. Assuming 'px'.
(gnome-language-selector:21113): Gtk-WARNING **: Theme parsing error:
gtk-widgets.css:62:17: Not using units is deprecated. Assuming 'px'.
(gnome-language-selector:21113): Gtk-WARNING **: Theme parsing error:
gtk-widgets.css:909:16: Theming engine 'adwaita' not found
*******
I still get these few warnings but now it works.
--
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to im-config in Ubuntu.
https://bugs.launchpad.net/bugs/1450147
Title:
'im-config -l' complains about zenity not installed
Status in im-config package in Ubuntu:
Fix Released
Status in im-config source package in Trusty:
Fix Committed
Status in im-config source package in Wily:
Fix Committed
Status in im-config package in Debian:
New
Bug description:
trusty and wily SRU request
===========================
[Impact]
The 'im-config -l' call causes language-selector-gnome to crash for users who don't have zenity installed. The proposed change prevents this unwarranted check.
[Test Case]
* Uninstall zenity
* Open a terminal window and run gnome-language-selector.
[Regression Potential]
Low, since the change only delays the "sanity check" until after the l-option code.
[Original description]
The package language-selector-gnome 0.143 from the Vivid edition fails to start, complaining zenity is missing.
$ gnome-language-selector
E : zenity doit être installé.
Traceback (most recent call last):
File "/usr/bin/gnome-language-selector", line 22, in on_activate
options=options)
File "/usr/lib/python3/dist-packages/LanguageSelector/gtk/GtkLanguageSelector.py", line 199, in __init__
self.check_input_methods()
File "/usr/lib/python3/dist-packages/LanguageSelector/gtk/GtkLanguageSelector.py", line 54, in wrapper
res = f(*args, **kwargs)
File "/usr/lib/python3/dist-packages/LanguageSelector/gtk/GtkLanguageSelector.py", line 454, in check_input_methods
for (i, IM) in enumerate(self.ImConfig.getAvailableInputMethods()):
File "/usr/lib/python3/dist-packages/LanguageSelector/ImConfig.py", line 19, in getAvailableInputMethods
inputMethods = subprocess.check_output(['im-config', '-l']).decode().split()
File "/usr/lib/python3.4/subprocess.py", line 620, in check_output
raise CalledProcessError(retcode, process.args, output=output)
subprocess.CalledProcessError: Command '['im-config', '-l']' returned non-zero exit status 1
$
Once zenity is installed it starts and works perfectly.
Thanks for fixing.
Best regards,
Mélodie
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/im-config/+bug/1450147/+subscriptions
References