ibus-setup fails with local python3
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ibus (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
If a user has installed a local python3 (e.g. Anaconda) ibus-setup may fail to run because of a missing library:
Traceback (most recent call last):
File "/usr/share/
from gi.repository import GLib
ImportError: No module named 'gi'
This error can be avoided if ibus-setup explicitly executes the system python3 rather than the first python3 found in $PATH, by changing:
exec python3 /usr/share/
to:
exec /usr/bin/python3 /usr/share/
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: ibus 1.5.11-1ubuntu2
ProcVersionSign
Uname: Linux 4.4.0-24-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.1
Architecture: amd64
CurrentDesktop: XFCE
Date: Tue Aug 9 14:17:20 2016
InstallationDate: Installed on 2016-06-24 (45 days ago)
InstallationMedia: Ubuntu-Server 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.3)
SourcePackage: ibus
UpgradeStatus: No upgrade log present (probably fresh install)
That would mean everything in the distro should run system python3 explicitly, or different things are tend to break from time to time, which is definitely not the way to go.
You would need to install the missing python3 modules to make it work, in this specific case that would be Gobject Introspection.