我正在尝试自己从https://bugzilla.gnome.org/show_bug.cgi?id=680569为融合应用补丁,但遇到了问题:
$ git clone git://git.gnome.org/meld
$ cd meld
$ python setup.py build
$ bin/meld
2014-01-11 16:30:44,736 ERROR root: Could not find any typelib for GtkSource
Cannot import: GtkSourceView
cannot import name GtkSource
我对 Python 知之甚少,例如(还)不知道 Python 的类型库是什么——请赐教!;-) 我环顾四周,模糊地认为这与一种异国水果有关 ;) 名为 gir,但这似乎没有帮助:
$ sudo apt-get install gir1.2-gtk-3.0
gir1.2-gtk-3.0 is already the newest version.
$ sudo apt-get install gir1.2-gtk-2.0
The following NEW packages will be installed:
gir1.2-gtk-2.0
Setting up gir1.2-gtk-2.0 (2.24.20-1ubuntu1) ...
$ bin/meld
2014-01-11 16:32:24,133 ERROR root: Could not find any typelib for GtkSource
Cannot import: GtkSourceView
cannot import name GtkSource
我错过了什么?谢谢!