Bug 980749 - [abrt] ibus-setup-1.5.2-7.fc19: main.py:32:<module>:ImportError: No module named xdg
Summary: [abrt] ibus-setup-1.5.2-7.fc19: main.py:32:<module>:ImportError: No module na...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: ibus
Version: 19
Hardware: i686
OS: Unspecified
unspecified
high
Target Milestone: ---
Assignee: fujiwara
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:1adbc791524cdc36050f06cf43e...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-07-03 07:38 UTC by followyourheart1211
Modified: 2013-07-23 01:03 UTC (History)
5 users (show)

Fixed In Version: ibus-1.5.2-8.fc19
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-07-23 01:03:08 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (921 bytes, text/plain)
2013-07-03 07:38 UTC, followyourheart1211
no flags Details
File: environ (1.74 KB, text/plain)
2013-07-03 07:38 UTC, followyourheart1211
no flags Details

Description followyourheart1211 2013-07-03 07:38:25 UTC
Description of problem:
(KDE)
Input Method Selector-->Use IBus(recommended)-->preferences-->ibus crashed

when I logout, and try again, it emerges again. 

Version-Release number of selected component:
ibus-setup-1.5.2-7.fc19

Additional info:
reporter:       libreport-2.1.5
cmdline:        /usr/bin/python /usr/share/ibus/setup/main.py
core_backtrace: 0501b50820ddccfa818ce13f6c057b7c4f8e7120 0x20 <module> /usr/share/ibus/setup/main.py -
executable:     /usr/share/ibus/setup/main.py
kernel:         3.9.5-301.fc19.i686.PAE
runlevel:       N 5
uid:            1000

Truncated backtrace:
main.py:32:<module>:ImportError: No module named xdg

Traceback (most recent call last):
  File "/usr/share/ibus/setup/main.py", line 32, in <module>
    from xdg import BaseDirectory
ImportError: No module named xdg

Local variables in innermost frame:
GLib: <gi.module.DynamicModule 'GLib' from '/usr/lib/girepository-1.0/GLib-2.0.typelib'>
signal: <module 'signal' (built-in)>
__builtins__: <module '__builtin__' (built-in)>
__file__: '/usr/share/ibus/setup/main.py'
Gtk: <gi.module.DynamicModule 'Gtk' from '/usr/lib/girepository-1.0/Gtk-3.0.typelib'>
IBus: <gi.module.DynamicModule 'IBus' from '/usr/lib/girepository-1.0/IBus-1.0.typelib'>
__package__: None
sys: <module 'sys' (built-in)>
time: <module 'time' from '/usr/lib/python2.7/lib-dynload/timemodule.so'>
__name__: '__main__'
path: <module 'posixpath' from '/usr/lib/python2.7/posixpath.pyc'>
os: <module 'os' from '/usr/lib/python2.7/os.pyc'>
__doc__: None

Comment 1 followyourheart1211 2013-07-03 07:38:30 UTC
Created attachment 768121 [details]
File: backtrace

Comment 2 followyourheart1211 2013-07-03 07:38:34 UTC
Created attachment 768122 [details]
File: environ

Comment 3 followyourheart1211 2013-07-03 07:49:24 UTC
when i do the following:

$sudo yum install pyxdg

the bug disappeared.

Comment 4 followyourheart1211 2013-07-03 08:13:37 UTC
althoug the bug disappeared, I cannot use "wubi-haifeng86" and "wubi-jidian86" for chinese. The only input language can be used is "english".

Comment 5 fujiwara 2013-07-04 02:27:27 UTC
Thanks for the report.
Probably this is not so urgent since the workaround works in comment #3.
I'd like to delete the xdg dependency.

(In reply to followyourheart1211 from comment #4)
> althoug the bug disappeared, I cannot use "wubi-haifeng86" and
> "wubi-jidian86" for chinese. The only input language can be used is
> "english".

I think it's another issue.
If you don't have wubi-*, you need to install them and restart ibus-daemon.
If wubi-* are not shown in ibus-setup, probably your cache file is not updated.
If you choose wubi-* in ibus panel icon but you cannot enable them, probably the engines failed be enabled.

Comment 7 Akira TAGOH 2013-07-10 08:01:57 UTC
This issue happens for all of users who use non-GNOME desktop spins and ibus is useless due to that because they can't configure anything until one installs pyxdg. I don't see any reasons why you don't push updates soon. I'd say that may be wrong assumption everyone can be aware of that workaround.

Comment 8 fujiwara 2013-07-10 08:17:20 UTC
(In reply to Akira TAGOH from comment #7)
> This issue happens for all of users who use non-GNOME desktop spins and ibus
> is useless due to that because they can't configure anything until one
> installs pyxdg. I don't see any reasons why you don't push updates soon. I'd
> say that may be wrong assumption everyone can be aware of that workaround.

I thought pyxdg is installed in DEs by default.
Probably it's a regression when ibus-pygtk2 is not installed.
Will fix it soon.

Comment 9 Jens Petersen 2013-07-11 03:36:30 UTC
(In reply to fujiwara from comment #6)
> https://github.com/ibus/ibus/commit/5ed2b8c8253717b6c26281a8721403b006db04e6

I don't really understand the patch though - why remove the xdg support
from upstream?  Surely just adding "Requires: pyxdg" to ibus-setup
would be enough, right? :)

Comment 10 fujiwara 2013-07-11 05:37:21 UTC
(In reply to Jens Petersen from comment #9)
> (In reply to fujiwara from comment #6)
> > https://github.com/ibus/ibus/commit/5ed2b8c8253717b6c26281a8721403b006db04e6
> 
> I don't really understand the patch though - why remove the xdg support
> from upstream?  Surely just adding "Requires: pyxdg" to ibus-setup
> would be enough, right? :)

No, pyxdg is no longer used actually. Just avoided the exception error.

Comment 11 Fedora Update System 2013-07-11 05:52:01 UTC
ibus-1.5.2-8.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/ibus-1.5.2-8.fc19

Comment 12 Fedora Update System 2013-07-12 03:02:37 UTC
Package ibus-1.5.2-8.fc19:
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing ibus-1.5.2-8.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-12789/ibus-1.5.2-8.fc19
then log in and leave karma (feedback).

Comment 13 Jens Petersen 2013-07-12 06:01:31 UTC
Okay I checked the various Live images and this only seems to affect KDE.

Comment 14 Fedora Update System 2013-07-23 01:03:08 UTC
ibus-1.5.2-8.fc19 has been pushed to the Fedora 19 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.