Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 513236

Summary: app-i18n/ibus-pinyin-1.5.0 - pinyin setup will silently fail from ibus-setup
Product: Gentoo Linux Reporter: Yi Yang <ahyangyi>
Component: Current packagesAssignee: Yixun Lan <dlan>
Status: RESOLVED OBSOLETE    
Severity: normal CC: cjk
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Yi Yang 2014-06-14 19:13:53 UTC
The user is unable to setup ibus-pinyin-1.5.0 from a fresh install

Reproducible: Always

Steps to Reproduce:
1. A fresh install of ibus-pinyin and ibus
2. ibus-setup, choose pinyin, select setup

Actual Results:  
No window opens. If you started ibus-setup from a terminal, you will see a Python exception about None value is not iterable.

Expected Results:  
A configuration window opens

The fix is to change the Line 54 of /usr/share/ibus-pinyin/setup/main.py from

self.__values = dict(self.__config.get_values(self.__config_namespace))

to

if self.__config.get_values(self.__config_namespace) == None:
    self.__values = dict()
else:
    self.__values = dict(self.__config.get_values(self.__config_namespace))

.

Note that this bug probably won't appear if you upgrade from ibus-pinyin-1.4.0, since the configuration is already there and you won't get a None in the first place.
Comment 1 Yixun Lan archtester gentoo-dev 2014-06-19 15:23:29 UTC
em.. could you report this to upstream? or is this already fixed in upstream's code repository?
Comment 2 Yi Yang 2015-11-18 04:50:01 UTC
It seems this bug no longer happens to me when doing fresh Gentoo installs. Since I am no longer able to reproduce this problem, I'm closing this issue.