最后一句是重点。 On Wed, Jan 23, 2013 at 12:08:58AM +0800, chaney wrote: > 刚刚尝试手动编译安装了一下ibus-1.5.1这个版本,但安完之后启动ibus-setup不 > 起来,出错信息如下 (main.py:23055): Gtk-WARNING **: Theme parsing error: > ERROR:root:Could not find any typelib for IBus > Traceback (most recent call last): > File "/usr/local/share/ibus/setup/main.py", line 30, in <module> > from gi.repository import IBus > ImportError: cannot import name IBus > 请问这是怎么回事,应该怎么处理,谢谢。
找不到库啊。 找一找/usr/local/lib/下边关于python的目录。像/usr/local/lib/python2.7/site-packages这样的,加到$PYTHONPATH里。应该是冒号分隔的。 >>> print sys.path ['', '/usr/lib/portage/pym', '/usr/lib64/python27.zip', '/usr/lib64/python2.7', '/usr/lib64/python2.7/plat-linux2', '/usr/lib64/python2.7/lib-tk', '/usr/lib64/python2.7/lib-old', '/usr/lib64/python2.7/lib-dynload', '/usr/lib64/python2.7/site-packages', '/usr/lib64/python2.7/site-packages/gtk-2.0', '/usr/lib64/portage/pym'] ● echo $PYTHONPATH /usr/lib/portage/pym 还有,为啥要手动安装呢。 -- Regards, Tusooa < There's more than onw way to do it > -- ubuntu-zh mailing list ubuntu-zh@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-zh