Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 513236 - app-i18n/ibus-pinyin-1.5.0 - pinyin setup will silently fail from ibus-setup
Summary: app-i18n/ibus-pinyin-1.5.0 - pinyin setup will silently fail from ibus-setup
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Yixun Lan
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2014-06-14 19:13 UTC by Yi Yang
Modified: 2015-11-18 04:50 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-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.