"Keyboard input method system" drop-down list is emtpy (ibus was installed)

Bug #908762 reported by Hung Tran
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
ibus (Ubuntu)
Invalid
Undecided
Unassigned
language-selector (Ubuntu)
Fix Released
Undecided
Gunnar Hjalmarsson
lubuntu-meta (Ubuntu)
Fix Released
Undecided
Julien Lavergne

Bug Description

I'm using Lubuntu 11.10 and language-selector 0.56.
I installed ibus (and tried with scim also) but "Keyboard input method system" drop-down list in Language Support window is always empty, there is nothing for me to select like previous version of Ubuntu/Lubuntu.

I checked in Ubuntu 11.10 with ibus installed, language-selector shows 4 options: "none", "ibus", "lo-gtk" and "th-gtk".

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: language-selector (not installed)
ProcVersionSignature: Ubuntu 3.0.0-14.23-generic 3.0.9
Uname: Linux 3.0.0-14-generic i686
ApportVersion: 1.23-0ubuntu4
Architecture: i386
Date: Mon Dec 26 20:08:38 2011
InstallationMedia: Lubuntu 11.10 "Oneiric Ocelot" - Release i386 (20111012)
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: language-selector
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Hung Tran (hungtran) wrote :

Hmm, I don't know why the log says that "Package: language-selector (not installed)", but after I run "sudo apt-get install language-selector", the problem in this bug report still exists.

Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

I just logged in into an LXDE session (on an Ubuntu installation), and for me that drop-down menu looked like it usually does, so I wasn't able to reproduce the behavior you describe.

Please note that you need to have both language-selector-gnome and language-selector-common installed.

~$ dpkg -l | grep language-selector
ii language-selector-common 0.56 Language selector for Ubuntu Linux
ii language-selector-gnome 0.56 Language selector for Ubuntu

A side-note: By default it shows "none" for Vietnamese; don't know if that's how it should be...

Revision history for this message
Hung Tran (hungtran) wrote :

Thank you very much for the information, Gunnar.
I just checked and I have language-selector-common and language-selector-gnome installed already.
I have no idea why it shows nothing in the drop-down list.

Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

Hmm... The package im-switch needs to be installed, but OTOH it should be since it's a dependency of ibus, which you did install. Are you sure that ibus was successfully installed? Does the command below make a difference?

  sudo apt-get install im-switch

Revision history for this message
Hung Tran (hungtran) wrote :

Thank you so much sir, that does the trick!

This was important lines that I got in terminal when running the command:

The following packages will be REMOVED:
  im-config
The following NEW packages will be installed:
  im-switch
dpkg: im-config: dependency problems, but removing anyway as you requested:
 ibus depends on im-switch; however:
  Package im-switch is not installed.
  Package im-config which provides im-switch is to be removed.

ibus is installed by default in Lubuntu but somehow im-switch is not.

Thank you very much for your time and support!

Revision history for this message
Hung Tran (hungtran) wrote :

I'm sorry, I have just checked the live CD, ibus is not there. So this must be my mistake. You can "close" this report. Thanks again!

Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

Hung Tran:
You are welcome, and thank _you_ for reporting the issue. Maybe it's not all your mistake, after all - possibly the dependency change in the Ubuntu ibus package mentioned below has something to do with it.

Steve:
In ibus 1.4.0-3ubuntu1, im-switch is an optional "recommend" together with im-config. In previous versions it's a "depend". Was that an intentional change? The reason I ask is that the input method control in language-selector requires im-switch to work.

Revision history for this message
Steve Langasek (vorlon) wrote :

Yes, this was an intentional change, to bring the packaging more in line with Debian. If language-selector requires im-switch in order to work, then language-selector should have the dependency on im-switch, not ibus. ibus is agnostic with respect to the different IM configuration systems.

Also, Hung says he's running 11.10 but this change in ibus did not take effect until precise, so has nothing to do with the issue described here. Instead, the problem appears to be a lubuntu-specific issue where lubuntu is pulling im-config into its default install instead of im-switch.

Changed in ibus (Ubuntu):
status: New → Invalid
Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

Thanks for the quick reply, Steve!

On 2011-12-27 03:29, Steve Langasek wrote:
> Yes, this was an intentional change, to bring the packaging more in line
> with Debian. If language-selector requires im-switch in order to work,
> then language-selector should have the dependency on im-switch, not
> ibus.

Right, that's the thought I had; will add it to a pending language-selector MP. Just wanted to ask first, for the case there was more into it.

> Also, Hung says he's running 11.10 but this change in ibus did not take
> effect until precise, so has nothing to do with the issue described
> here. Instead, the problem appears to be a lubuntu-specific issue where
> lubuntu is pulling im-config into its default install instead of im-
> switch.

Hmm.. I'm still confused, because in that case it shouldn't be possible to install an Oneiric version of ibus (with the im-switch depend), should it? Anyway, I added a lubuntu package to this bug report, to call the lubuntu people's attention to the issue.

Changed in language-selector (Ubuntu):
assignee: nobody → Gunnar Hjalmarsson (gunnarhj)
status: New → In Progress
Revision history for this message
Julien Lavergne (gilir) wrote :

Thanks Gunnar. I don't think there is any depend on im-config on Lubuntu 11.10 installation. But, to be sure all is working correctly, I'll add a recommend on im-switch to lubuntu meta package for 12.04.

Changed in lubuntu-meta (Ubuntu):
status: New → In Progress
assignee: nobody → Julien Lavergne (gilir)
Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

Julien,
Please note that this need for a change may prove to be temporary. For Ubuntu 12.04 it's planned to replace the language-selector UI with the "Region and Language" module in gnome-control-center. I don't know how exactly input methods will be dealt with.
https://live.gnome.org/Design/SystemSettings/RegionAndLanguage#Input_sources

Revision history for this message
Julien Lavergne (gilir) wrote : Re: [Bug 908762] Re: "Keyboard input method system" drop-down list is emtpy (ibus was installed)

Le 12/31/2011 07:18 AM, Gunnar Hjalmarsson a écrit :
> Julien,
> Please note that this need for a change may prove to be temporary. For Ubuntu 12.04 it's planned to replace the language-selector UI with the "Region and Language" module in gnome-control-center. I don't know how exactly input methods will be dealt with.
> https://live.gnome.org/Design/SystemSettings/RegionAndLanguage#Input_sources
>
Yes, I'm aware of this, but Xubuntu (as far as I know) and Lubuntu still
use gnome-language-selector UI, and there is no plan to replace it in
the short-term. We can't use gnome-control-center UI (too much GNOME
depends). So, I hope this UI can be kept in the repository, untill we
have a better solution.

Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

I'm sure it can. There are significant changes behind the scenes, too, and so far I have taken pains to update language-selector accordingly. You just gave me good reasons to keep doing so. :)

Happy New Year!

Revision history for this message
Julien Lavergne (gilir) wrote :

Great, thank Gunnar for your help :)

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package lubuntu-meta - 0.32

---------------
lubuntu-meta (0.32) precise; urgency=low

  * Refreshed dependencies
  * Added im-switch to desktop-recommends (LP: #908762)
  * Added linux-headers-generic-pae to desktop-recommends [i386]
  * Added lubuntu-software-center to desktop
  * Added printer-driver-c2esp to core-recommends
  * Removed c2esp from core-recommends
  * Removed linux-headers-generic from desktop-recommends [i386]
  * Removed x-ttcidfont-conf from core
 -- Julien Lavergne <email address hidden> Wed, 01 Feb 2012 20:26:00 +0100

Changed in lubuntu-meta (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
Martin Pitt (pitti) wrote :

Please note that im-switch isn't very suitable any more:

  https://lists.ubuntu.com/archives/ubuntu-devel-discuss/2012-January/013221.html

I don't know about im-switch vs. im-config, but if im-config is a drop-in replacement, I'd rather investigate switching to that.

Changed in language-selector (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package language-selector - 0.63

---------------
language-selector (0.63) precise; urgency=low

  [ Martin Pitt ]
  * LanguageSelector/LanguageSelector.py: Fix KeyError crash on a nonexisting
    package. (LP: #843430)
  * language_support_pkgs.py: Add PackageKit WhatProvides() plugin for
    "locale()" search. Register it in setup.py.
  * LanguageSelector/LangCache.py, data/blacklist, setup.py: Drop support for
    data/blacklist, we haven't needed it for a long time, and don't intend to
    bring back this hack.
  * dbus_backend/ls-dbus-backend: Drop GetMissingPackages{,Async} methods. The
    current code isn't using them, and there is no need to have this in a
    D-BUS service. language_support_pkgs works fine as user in frontends.
  * Drop tests/test_dbus_backend.py. It only exercised above method, not the
    "set system-wide locale" bits.
  * Drop LanguageSelector/CheckLanguageSupport.py,
    dbus_backend/ls-dbus-backend: Not used by anything any more, obsoleted by
    language_support_pkgs.py.
  * LanguageSelector/LanguageSelector.py: Reimplement getMissingLangPacks()
    using language_support_pkgs.py. This gets rid of a lot of redundant and
    bad code.
  * Change code to use the LanguageSelector.LangCache namespace more
    explicitly, to make it easier to get rid of LangCache.
  * LanguageSelector/LangCache.py: Remove yet another copy of the pkg_depends
    evaluation logic, and some more dead code, rewrite using
    language_support_pkgs.
  * Drop tests.moved/. Unused, no automatic tests, not very useful.
  * LanguageSelector/LangCache.py, LanguageSelector/qt/QtLanguageSelector.py:
    Drop last remainders of the languageSupport* info, language-support-* were
    dropped several cycles ago.

  [ Gunnar Hjalmarsson ]
  * Make the LANG variable, which up to now has represented regional
    formats, denote the display language instead (LP: #877610).
  * Make use of accountsservice's FormatsLocale property and
    SetFormatsLocale method when selecting a user's regional formats.
    (LP: #866062)
  * When setting the system-wide language, ensure that the system
    regional formats locale is set in order to prevent surprise
    changes of the formats.
  * data/LanguageSelector.ui: Text about rebooting no longer
    applicable, so removed.
  * LanguageSelector/LocaleInfo.py: Encode @variant string in the
    translate() function as UTF-8 to avoid a UnicodeDecodeError if a
    locale with @variant is selected for regional formats.
  * debian/control: Bump accountsservice dependency to >= 0.6.15-2ubuntu3,
    to ensure that we have the new SetFormatsLocale method.
  * debian/control: Make im-switch a dependency of language-selector-gnome,
    since it's no longer a dependency of ibus (LP: #908762).
 -- Martin Pitt <email address hidden> Fri, 03 Feb 2012 07:01:24 +0100

Changed in language-selector (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.