So this error keeps coming back.
Everytime I try to tun the script it returns saying:
Traceback (most recent call last):
File "cli.py", line 11, in <module>
import pynotify
ImportError: No module named pynotify
The strange thing is, I just installed this plugin. I also restarted command prompt already, even the computer.
But nothing, if anyone could help me out here that'd be great!
Try this:
It worked for me.
You are most likely looking for
pyinotify
notpynotify
. That should fix your ImportError.first check your
pip
version and yourpython
running versionif the
pip
is from python3's packages. and you python environment is running at python2.x. so abandon using yourpip
to install anynotify
, you just installpython-notify
Check whether you were using the corresponding pip version for your version of Python. For example, if you have Python2 and Python3 installed, you may have installed
pynotify
for Python2, and attempting to import it from Python3, which will result in the package not being found.Try running
Assuming
pip install
is how you installed the package as well asto ensure the version numbers are similar.
Import package 'notify' instead of 'pynotify'
Here is the solution for Ubuntu.
First install
python-notify
:sudo apt-get install python-notify
After that you may need to add the right paths:Finally:
import pynotify