I installed anaconda4 on my ubuntu, and I have these modules in my Python:
dbus-python (1.2.4) gi (1.2) pydbus (0.2) QtAwesome (0.3.2) qtconsole (4.2.0) QtPy (1.0) sip (4.18)
I tried installing dbus-python (1.2.4) and pydbus (0.2) , however none of them work!
After testing a simple program in python 3.5.1, an error occurred:
import dbus system_bus = dbus.SystemBus() ImportError: No module named 'dbus'
When I use pydbus in Python 2.7.11 and 3.5.1:
from pydbus import SystemBus bus = SystemBus() systemd = bus.get(".systemd1") for unit in systemd.ListUnits(): print(unit)
I get this error:
ImportError: No module named repository
The only thing that works is this PyQT4 example , for which I don't have a tutorial.
What is the problem? Is this my setup or something else?
source share