0

I'm using PyCharm on Mac.

I was running a module with notify2 in it and got ModuleNotFoundError: No module named 'dbus' as an error.

After trying to pip3 install dbus (and dbus-python), and sudo, I get ERROR: Failed building wheel for dbus-python.

Only brew installing dbus worked, but my PyCharm cannot access it still.

I tried almost all of the related threads here, but nothing worked. I am relatively new to Python as well, so if someone had an advice about what else could I try, I would really appreciate a beginner-friendly response.

Thank you!

Coyote
  • 33
  • 4
  • D-Bus is primarily a Linux thing. More information here: https://stackoverflow.com/q/2723936/7721752 – ukBaz Sep 16 '20 at 12:17
  • Thanks for the link! But then why PyCharm is asking for it when I try to run notify2? – Coyote Sep 16 '20 at 21:56
  • If brew install worked, maybe when you create the Virtual Environment in Pycharm, you just need click the box for "Inherit global site-packages` https://www.jetbrains.com/help/pycharm/creating-virtual-environment.html – ukBaz Sep 16 '20 at 23:03
  • thank you! I will try that :) – Coyote Sep 17 '20 at 08:53

0 Answers0