Scientific Linux 6.3にカフェインをインストールする方法

Scientific Linux 6.3にカフェインをインストールする方法
caffeine
Traceback (most recent call last):
  File "/usr/bin/caffeine", line 40, in <module>
    import caffeine
  File "/usr/lib64/python2.6/site-packages/caffeine/__init__.py", line 23, in <module>
    from gi.repository import Gtk, Gio
ImportError: No module named gi.repository

これがカフェインをインストールした後に得たものです。

rpm -qa | egrep -i 'caffeine|gobject'
caffeine-2.4.419-1.el6.nux.noarch
pygobject2-2.20.0-5.el6.x86_64

どのようにインストールしますか?私は何を見逃していますか?

https://launchpad.net/caffeine

ベストアンサー1

あなたのpygobjectが古すぎます。gi.repository一度提供フィジー。それpygobjectにマージしかし、2.21.4までではないので、pygobjectを更新するか、PyGI(おそらくe)をインストールする必要があります。

おすすめ記事