Bug 890072

Summary: [abrt] ibus-anthy-1.4.99.20121006-1.fc18: Gtk.py:1624:<module>:RuntimeError: Gtk couldn't be initialized
Product: [Fedora] Fedora Reporter: costashu <costashu>
Component: ibus-anthyAssignee: fujiwara <tfujiwar>
Status: CLOSED WORKSFORME QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 18CC: i18n-bugs, shawn.p.huang, tagoh, tfujiwar
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:e041dd956f932e40e4f1d6b9c5784bcfce4c3ff4
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-12-25 07:19:45 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:
Description Flags
File: backtrace
none
File: core_backtrace
none
File: environ none

Description costashu 2012-12-24 22:40:45 UTC
Description of problem:
I turned on iBus.

Version-Release number of selected component:
ibus-anthy-1.4.99.20121006-1.fc18

Additional info:
cmdline:        /usr/bin/python /usr/share/ibus-anthy/engine/main.py --xml
dso_list:       pygobject3-base-3.4.2-5.fc18.x86_64
executable:     /usr/share/ibus-anthy/engine/main.py
kernel:         3.6.11-3.fc18.x86_64
uid:            1000

Comment 1 costashu 2012-12-24 22:40:48 UTC
Created attachment 668614 [details]
File: backtrace

Comment 2 costashu 2012-12-24 22:40:50 UTC
Created attachment 668615 [details]
File: core_backtrace

Comment 3 costashu 2012-12-24 22:40:52 UTC
Created attachment 668616 [details]
File: environ

Comment 4 fujiwara 2012-12-25 07:19:45 UTC
(In reply to comment #1)
> Created attachment 668614 [details]
> File: backtrace

>   File "/usr/share/ibus-anthy/engine/engine.py", line 41, in <module>
>     from gi.repository import Gtk

>   File "/usr/lib64/python2.7/site-packages/gi/overrides/Gtk.py", line 1624, in <module>
>     raise RuntimeError("Gtk couldn't be initialized")
> RuntimeError: Gtk couldn't be initialized


How did you run ibus-anthy? ibus needs to open $DISPLAY.

I think your problem is not ibus specific but you could see the same error with the following script.


% cat a.py
from gi.repository import Gtk

% python a.py