Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
必须先导入require_version,gi所以只需添加:
require_version
gi
from gi import require_version require_version('Atspi', '2.0')
之前
from gi.repository import Atspi
错误消息给出的文件中的行,它位于/usr/lib/python2.7/dist-packages/pyatspi/__init__.py此处。
/usr/lib/python2.7/dist-packages/pyatspi/__init__.py