Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No module named 'dbus' error

Tags:

python

I am using the notify2 module in my project. Apparently, in the notify2 package, there is a python file named notify2.py, which tries to import dbus, which is not installed on my system.

I have tried installing it with pip install dbus-python, but it didn't work and I got this "error:

[WinError 193] %1 is not a valid Win32 application

I'm using Windows 10. How do I make the notify2 module work? How do I install dbus on my computer?

like image 430
Akhil Ranjan Avatar asked Jan 23 '26 21:01

Akhil Ranjan


1 Answers

Since you are using windows, dbus is not yet implemented in windows OS. D-Bus IPC work for windows is in progress.

D-Bus is very portable to any Linux or UNIX flavor, and a port to Windows is in progress.

Here is a link of dbus homepage. You can try porting your code to any linux flavour.

like image 197
Shubham Avatar answered Jan 26 '26 10:01

Shubham