Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 511922 - >=app-i18n/ibus-pinyin-1.4.0 misses pygtk dependency (module "gtk" is not found)
Summary: >=app-i18n/ibus-pinyin-1.4.0 misses pygtk dependency (module "gtk" is not found)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Yixun Lan
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2014-05-31 05:34 UTC by Yi Yang
Modified: 2014-06-19 15:20 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yi Yang 2014-05-31 05:34:52 UTC
The setup UI (installed at /usr/share/ibus-pinyin/setup/main.py) of ibus-pinyin-1.4.0 depends on pygtk (a python2 module). The current ebuild missed this dependency.

In addition, the wrapper script to this setup UI (installed at /usr/libexec/ibus-setup-pinyin) invokes that python file by "python". It probably needs to be fixed to "python2" since pygtk does not (and probably will not) have gtk3 support.


Reproducible: Always

Steps to Reproduce:
1. Set global python version to 3
2. Install ibus-pinyin
3. start ibus-setup from console, choose pinyin, click setup

Actual Results:  
you get a python error saying module "gtk" is not found

Expected Results:  
you get a setup window

ibus-pinyin 1.5.0 seems to be in a more complex situation. I have not looked at what's wrong there but it doesn't work out of box for me either, and the error messages seem to be different.

So be careful if you plan to apply the fix to this problem to 1.5.0.
Comment 1 Yixun Lan archtester gentoo-dev 2014-06-14 15:44:42 UTC
thanks for your reporting, will look this as soon as I get to my computer..

for the python2 problem, we can re-generate the shebang to force it stick to python2, so it works even you set default python to version 3.x

for ibus-pinyin-1.5.0, could you open another bug? so we better tracking there
Comment 2 Yi Yang 2014-06-14 19:07:02 UTC
OK, I will open a new one for 1.5.0. Actually I describe the 1.5.0 here only because I want to warn that the 1.4.0 patch should probably not propagate to 1.5.0.
Comment 3 Yixun Lan archtester gentoo-dev 2014-06-19 15:20:17 UTC
+*ibus-pinyin-1.5.0-r1 (19 Jun 2014)
+*ibus-pinyin-1.4.0-r1 (19 Jun 2014)
+
+  19 Jun 2014; Yixun Lan <dlan@gentoo.org> +ibus-pinyin-1.4.0-r1.ebuild,
+  +ibus-pinyin-1.5.0-r1.ebuild:
+  add pygtk dep, fix python shebang, bug 511922. thanks @Yi Yang

we should really bump EAPI, and convert to python-r1..