ntfy icon indicating copy to clipboard operation
ntfy copied to clipboard

win32 backend not reenterant

Open pyhedgehog opened this issue 8 years ago • 2 comments

When I'm using ntfy as a library win32 backend produces following error:

ERROR:ntfy:Failed to send notification using default
Traceback (most recent call last):
  File "C:\tools\python36\lib\site-packages\ntfy\backends\default.py", line 20, in notify
    module.notify(title=title, message=message, **kwargs)
  File "C:\tools\python36\lib\site-packages\ntfy\backends\win32.py", line 54, in notify
    WindowsBalloonTip(message, title)
  File "C:\tools\python36\lib\site-packages\ntfy\backends\win32.py", line 26, in __init__
    classAtom = win32gui.RegisterClass(wc)
pywintypes.error: (1410, 'RegisterClass', 'Class already exists.')

pyhedgehog avatar Feb 15 '17 00:02 pyhedgehog

Hmm.. That's a bummer. I'll have to fire up a windows VM sometime if I have time to debug it.

dschep avatar Feb 15 '17 00:02 dschep

Check this: https://stackoverflow.com/questions/33949186/error-when-trying-to-reuse-windows-notification-class-in-python

scheingraber avatar May 27 '18 08:05 scheingraber