libpinyin / ibus-libpinyin

GNU General Public License v3.0
631 stars 90 forks source link

ImportError: No module named gi.repository #2

Closed ghost closed 11 years ago

ghost commented 12 years ago

I think it is a little inappropriate to post this question in a comment, so I just open a new issue to discuss this question. when I tried to open the "preferences" in ibus-intelligent pinyin, it show like this:

/usr/libexec/ibus-setup-libpinyin Traceback (most recent call last): File "main2.py", line 29, in from gi.repository import GLib ImportError: No module named gi.repository

I already installed gi and py gobject, but it is still like that.

epico commented 12 years ago

Guess you need to install pygobject3 and gtk3-devel. The setup dialog now uses gtk3.

ghost commented 12 years ago

After installing the correct dependencies, I can open the preferences now. However, whatever the setting I changed, it did not work. For example, I change Full pinyin to Double pinyin [MSPY], it is still Full pinyin. This time, I don't how to check the log file or something like that what I can paste here.

epico commented 12 years ago

What is your ibus version? my ibus version is ibus-1.4.99.20120712-1.fc17.x86_64. IIRC, I fixed it in ibus-libpinyin 1.4.2 for the newest ibus.

ghost commented 12 years ago

Hi, today, I compiled the ibus-1.4.99 successfully, and then I compiled the ibus-libpinyin-1.4.91. There was not incorrect information, and it could be typed, but the problem of "preferences" is still here. It seems my distro's problem, I think that I still lose some dependencies, but I am not familiar about that.

epico commented 12 years ago

In the past, I work around it in commit id 998401f0c4c239fe6e804ab7b403b19c151fd13f.

BTW, I think you could ask the distro maintainer to fix this issue in ibus.

quark-zju commented 12 years ago

If you are using Archlinux. Install python2-gobject will solve the issue. I think this is a PKGBUILD issue.

epico commented 11 years ago

Guess OK to close this issue?

ghost commented 11 years ago

Yes, that's fine.