I am trying to import dbus in a python script. But I am getting the following error

Traceback (most recent call last):
  File "playSong.py", line 4, in <module>
    import os, dbus
ModuleNotFoundError: No module named 'dbus'

I have already installed the dbus. But still it is giving the error. Why is this so?


I tried installing using the following line and it worked.

conda install -c scottwales dbus-python

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.