[SOLVED] FIX "ImportError: No module named dbus" under Arch Linux and Ubuntu

FIX "ImportError: No module named dbus" under Arch Linux and Ubuntu.

This guide will explain quickly how to fix the zeitgeist-explorer dbus dependency problem that prints the error message

" ImportError: No module named dbus "

while trying to run zeitgeist-explorer.

  • If your can't start zeitgeist-explorer and get an output like the one below

$ zeitgeist-explorer
/usr/bin/zeitgeist-explorer:22: 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
Traceback (most recent call last):
  File "/usr/bin/zeitgeist-explorer", line 25, in <module>
    from zgexplorer.window import ExplorerMainWindow
  File "/usr/lib/python2.7/site-packages/zgexplorer/window.py", line 26, in <module>
    from zgexplorer.monitorviewer import MonitorViewer
  File "/usr/lib/python2.7/site-packages/zgexplorer/monitorviewer.py", line 28, in <module>
    from zgexplorer.remote import get_zeitgeist
  File "/usr/lib/python2.7/site-packages/zgexplorer/remote.py", line 23, in <module>
    from zeitgeist.client import ZeitgeistClient
  File "/usr/lib/python2.7/site-packages/zeitgeist/client.py", line 24, in <module>
    import dbus

ImportError: No module named dbus

  • Make sure you install the "python-dbus-common" and in this case also "python2-dbus" because it needs the 2.7 version of it.

    In my case I got python3.5 installed in the system, and this error occurs because zeitgeist is not working with that higher version. So it needs exactly the python2-dbus package.

  • If you are running Ubuntu Install it like this.

    $ sudo apt-get install python-dbus-common python2-dbus

  • If you are running ArchLinux or Manjaro (Arch based)
    $ sudo pacman -S python-dbus-common python2-dbus

No comments:

Post a Comment

2 ads