python-systemd icon indicating copy to clipboard operation
python-systemd copied to clipboard

ImportError: No module named 'dbus'

Open stefanocrosta opened this issue 7 years ago • 2 comments

Is there any dependency on some dbus module? If so, which one?

Thanks!

----> 1 from systemd_dbus.manager import Manager

/home/marss/python-systemd/systemd_dbus/manager.py in <module>()
     18 #
     19
---> 20 import dbus
     21 import dbus.mainloop.glib
     22 dbus.mainloop.glib.DBusGMainLoop(set_as_default=True)

ImportError: No module named 'dbus'

stefanocrosta avatar Mar 06 '17 16:03 stefanocrosta

The module is called dbus-python, but this lib should be shipped with your operating system in the correct version.

ghost avatar Apr 03 '17 14:04 ghost

Its not shipped in @core on rhel systems so a yum install dbus-python will take care of this for you

AZaugg avatar Dec 11 '17 21:12 AZaugg