I downloaded the "pynotify" package using pip. After running the code the error is "module 'pynotify' has no attribute 'init'" Thank You for the help.
Pynotify notify not recognizing "init" module in python
1.3k Views Asked by Manu At
2
There are 2 best solutions below
0

I don't know but it looks like to be a library conflict.
I already had the same problem and I was not able to solve it. I suggest you to try using subprocess that worked for me, see below:
import subprocess
subprocess.Popen(['notify-send', "Message"])
Note: notify-send command is only Linux distributions.
You can get more notify-send informations here.
Because there are multiple projects called "pynotify", there's ambiguity. The one that gets installed when doing
pip install pynotify
is probably not the one you were hoping for.Here's another one that seems to do what you want : And I quickly tested it, it seems to work (shows a notification toaster popup in the screen corner) https://ms7m.github.io/notify-py/