Comment #6 on issue 1166 by [email protected]: ibus-anthy is broken? the system freezes for a few seconds
http://code.google.com/p/ibus/issues/detail?id=1166

The Arch Linux package is modified to run with python2 as python v3 is the default. (http://projects.archlinux.org/svntogit/community.git/commit/ibus-anthy/trunk/PKGBUILD?id=693a1afa33f42133ed68a12972889b5d29c3ebb7)
So:
$  python2
Python 2.7.1 (r271:86832, Jan  6 2011, 11:51:37)
...
import os
from os import environ, path
from locale import getpreferredencoding
import signal
import sys
import gobject
import ibus
import anthy
print getpreferredencoding()
UTF-8
print unicode('a', 'utf-8')
a

$  cat /usr/lib/python2.7/site-packages/eric4.pth
# save a valuable function of the sys module
import sys; sys.setappdefaultencoding = sys.setdefaultencoding

I found this link explaining why setdefaultencoding is no longer available:
http://groups.google.com/group/comp.lang.python/browse_thread/thread/854b1ca3766f476b?pli=1


I assume that when ibus tries to load ibus-anthy python2 ("/usr/lib/python2.7/site-packages/site.py") generates a list of all site-packages and any broken files ("/usr/lib/python2.7/site-packages/eric4.pth") stop the IM engines from loading.

--
You received this message because you are subscribed to the Google
Groups "ibus-devel" group.
iBus project web page: http://code.google.com/p/ibus/
iBus dev group: http://groups.google.com/group/ibus-devel?hl=en

回复