ms7m / notify-py

:speech_balloon: | A simple Python Module for sending cross-platform desktop notifications on Windows, macOS and Linux
MIT License
262 stars 26 forks source link

Installation problem: pip install notify-py or something else seems to be problematic #52

Open EceSenaEtoglu opened 1 year ago

EceSenaEtoglu commented 1 year ago

I typed pip install notify-py and ran the following code :

from notifypy import Notify

notification = Notify() notification.title = "Cool Title" notification.message = "Even cooler message." notification.send()

My IDE (Pycharm) gave package error (cannot write exactly but something like this) "cannot find package notifypy" I clicked install package option the IDE suggested, after that I got the error "Cannot find reference 'Notify' in 'init.py"

HyperSourceGithub commented 4 days ago

Try doing: pip uninstall notify-py then pip install notify_py and then see if it works.

If not, then try this for the code:

from notifypy import notification

notification = notification.Notify()
notification.title = "Cool Title"
notification.message = "Even cooler message."
notification.send()