pyGtk: Gtk missing error when get version

最后都变了- 提交于 2020-01-04 11:12:40

问题


When I startup /usr/bin/sniff which is a GUI monitor of dogtail I got below error:

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

And I execute the command python -c 'from gi.repository import Gtk' I got:

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

Any help? Thanks.

System: CentOS release 6.2(Final)

Python-2.7.3

来源:https://stackoverflow.com/questions/31040446/pygtk-gtk-missing-error-when-get-version

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!