无法让自动键工作

无法让自动键工作

安装 autokey 后,我尝试通过以下方式运行它:

autokey-gtk

但我得到了:

Traceback (most recent call last):
  File "/usr/local/bin/autokey-gtk", line 20, in <module>
    from autokey.gtkapp import Application
  File "/usr/local/lib/python2.7/dist-packages/autokey/gtkapp.py", line 18, in <module>
    import common
  File "/usr/local/lib/python2.7/dist-packages/autokey/common.py", line 19, in <module>
    import os.path, dbus.service
ImportError: No module named dbus.service

所以我修复了它并遇到了一些其他问题,我通过以下方式修复了它们:

sudo apt-get install --reinstall software-center python-dbus
sudo apt-get install --reinstall python-gi
sudo apt-get install --reinstall python-xlib

现在我收到的错误是:

/usr/local/lib/python2.7/dist-packages/autokey/gtkapp.py:24: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
  from gi.repository import Gtk, Gdk, GObject, GLib
/usr/local/lib/python2.7/dist-packages/autokey/gtkui/notifier.py:19: PyGIWarning: Notify was imported without specifying a version first. Use gi.require_version('Notify', '0.7') before import to ensure that the right version gets loaded.
  from gi.repository import Gtk, Gdk, Notify
/usr/local/lib/python2.7/dist-packages/autokey/gtkui/notifier.py:28: PyGIWarning: AppIndicator3 was imported without specifying a version first. Use gi.require_version('AppIndicator3', '0.1') before import to ensure that the right version gets loaded.
  from gi.repository import AppIndicator3
/usr/local/lib/python2.7/dist-packages/autokey/gtkui/configwindow.py:20: PyGIWarning: GtkSource was imported without specifying a version first. Use gi.require_version('GtkSource', '3.0') before import to ensure that the right version gets loaded.
  from gi.repository import Gtk, Pango, GtkSource, Gdk, Gio

但我不知道如何解决它!有人知道我现在该怎么办吗?

相关内容