当我启动/usr/bin/sniff
这是一个狗尾巴的GUI监视器时,我得到了以下错误:
Traceback (most recent call last):
File "/usr/bin/sniff", line 13, in <module>
gi.require_version('Gtk', '3.0')
File "/usr/local/lib/python2.7/site-packages/gi/__init__.py", line 48, in require_version
raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace Gtk not available
我执行了python -c 'from gi.repository import Gtk'
命令:
ERROR:root:Could not find any typelib for Gtk
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: cannot import name Gtk
有任何帮助吗? 感谢。
系统:CentOS 6.2版(最终版)
Python的2.7.3