Bug 887153 - [abrt] ibus-1.4.99.20121109-8.fc17: main.py:103:__init_hotkey:TypeError: sequence item 0: expected string, list found
Summary: [abrt] ibus-1.4.99.20121109-8.fc17: main.py:103:__init_hotkey:TypeError: sequ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: ibus
Version: 17
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: fujiwara
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:2bf2ba8071f351a91e77e7f8a80...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-12-14 07:58 UTC by LuYicheng
Modified: 2012-12-26 04:53 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-12-26 04:52:59 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (860 bytes, text/plain)
2012-12-14 07:58 UTC, LuYicheng
no flags Details
File: core_backtrace (356 bytes, text/plain)
2012-12-14 07:58 UTC, LuYicheng
no flags Details
File: environ (793 bytes, text/plain)
2012-12-14 07:58 UTC, LuYicheng
no flags Details
File: smolt_data (3.04 KB, application/octet-stream)
2012-12-14 07:58 UTC, LuYicheng
no flags Details

Description LuYicheng 2012-12-14 07:58:43 UTC
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>

Comment 1 LuYicheng 2012-12-14 07:58:47 UTC
Created attachment 663420 [details]
File: backtrace

Comment 2 LuYicheng 2012-12-14 07:58:49 UTC
Created attachment 663421 [details]
File: core_backtrace

Comment 3 LuYicheng 2012-12-14 07:58:52 UTC
Created attachment 663422 [details]
File: environ

Comment 4 LuYicheng 2012-12-14 07:58:54 UTC
Created attachment 663423 [details]
File: smolt_data

Comment 5 fujiwara 2012-12-14 10:26:21 UTC
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']

Comment 6 Fedora Update System 2012-12-14 11:31:58 UTC
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

Comment 7 Fedora Update System 2012-12-15 18:04:27 UTC
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).

Comment 8 Fedora Update System 2012-12-26 04:53:00 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.