Bug 887153
| Summary: | [abrt] ibus-1.4.99.20121109-8.fc17: main.py:103:__init_hotkey:TypeError: sequence item 0: expected string, list found | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | LuYicheng <luyicheng99> | ||||||||||
| Component: | ibus | Assignee: | fujiwara <tfujiwar> | ||||||||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||||||
| Severity: | unspecified | Docs Contact: | |||||||||||
| Priority: | unspecified | ||||||||||||
| Version: | 17 | CC: | i18n-bugs, shawn.p.huang, tfujiwar | ||||||||||
| Target Milestone: | --- | ||||||||||||
| Target Release: | --- | ||||||||||||
| Hardware: | x86_64 | ||||||||||||
| OS: | Unspecified | ||||||||||||
| Whiteboard: | abrt_hash:2bf2ba8071f351a91e77e7f8a808c8adcc2cda84 | ||||||||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||||||||
| Doc Text: | Story Points: | --- | |||||||||||
| Clone Of: | Environment: | ||||||||||||
| Last Closed: | 2012-12-26 04:52:59 UTC | Type: | --- | ||||||||||
| Regression: | --- | Mount Type: | --- | ||||||||||
| Documentation: | --- | CRM: | |||||||||||
| Verified Versions: | Category: | --- | |||||||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||||||
| Embargoed: | |||||||||||||
| Attachments: |
|
||||||||||||
Created attachment 663420 [details]
File: backtrace
Created attachment 663421 [details]
File: core_backtrace
Created attachment 663422 [details]
File: environ
Created attachment 663423 [details]
File: smolt_data
Thanks for the report.
I forgot the variant.dup_strv() is different between pygobject 3.2 and 3.4.
The following is the suggested fix:
--- /usr/share/ibus/setup/main.py.orig 2012-12-14 19:22:00.524241358 +0900
+++ /usr/share/ibus/setup/main.py 2012-12-14 19:23:07.271773801 +0900
@@ -94,7 +94,7 @@ class Setup(object):
label = 'switch_engine'
variant = self.__config.get_value('general/hotkey', name)
if variant != None:
- shortcuts = variant.dup_strv()
+ shortcuts = variant.unpack()
else:
shortcuts = ['<Control>space']
ibus-1.4.99.20121109-9.fc17 has been submitted as an update for Fedora 17. https://admin.fedoraproject.org/updates/FEDORA-2012-20100/ibus-1.4.99.20121109-9.fc17 Package ibus-1.4.99.20121109-9.fc17: * should fix your issue, * was pushed to the Fedora 17 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing ibus-1.4.99.20121109-9.fc17' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2012-20100/ibus-1.4.99.20121109-9.fc17 then log in and leave karma (feedback). ibus-1.4.99.20121109-9.fc17 has been pushed to the Fedora 17 stable repository. If problems still persist, please make note of it in this bug report. |
Version-Release number of selected component: ibus-1.4.99.20121109-8.fc17 Additional info: cmdline: /usr/bin/python /usr/share/ibus/setup/main.py ibus-setup executable: /usr/share/ibus/setup/main.py kernel: 3.6.10-2.fc17.x86_64 uid: 1000 Truncated backtrace: main.py:103:__init_hotkey:TypeError: sequence item 0: expected string, list found Traceback (most recent call last): File "/usr/share/ibus/setup/main.py", line 646, in <module> setup = Setup() File "/usr/share/ibus/setup/main.py", line 90, in __init__ self.__init_ui() File "/usr/share/ibus/setup/main.py", line 279, in __init_ui self.__init_hotkey() File "/usr/share/ibus/setup/main.py", line 103, in __init_hotkey entry.set_text("; ".join(shortcuts)) TypeError: sequence item 0: expected string, list found Local variables in innermost frame: name: 'trigger_accel' shortcuts: (['<Control>space'], 1L) button: <Button object at 0x27190f0 (GtkButton at 0x2659180)> variant: <GLib.Variant(['<Control>space'])> label: 'switch_engine' entry: <Entry object at 0x2719140 (GtkEntry at 0x24a5190)> self: <__main__.Setup object at 0x2393990>