plyer icon indicating copy to clipboard operation
plyer copied to clipboard

cannot generate a notification on python. i am getting the error given below

Open Rupanwita opened this issue 4 years ago • 6 comments

Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/plyer/utils.py", line 93, in _ensure_obj mod = import(module, fromlist='.') File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/plyer/platforms/macosx/notification.py", line 7, in from pyobjus import ( ModuleNotFoundError: No module named 'pyobjus' Traceback (most recent call last): File "/Users/rupanwita/Desktop/desktop_sun_notification.py", line 5, in notification.notify( File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/plyer/facades/notification.py", line 79, in notify self._notify( File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/plyer/facades/notification.py", line 88, in _notify raise NotImplementedError("No usable implementation found!") NotImplementedError: No usable implementation found!

Rupanwita avatar Dec 29 '20 15:12 Rupanwita

which os are you using? works fine on windows and linux for me

RaSan147 avatar Jan 13 '21 13:01 RaSan147

which os are you using? works fine on windows and linux for me

ios

Rupanwita avatar Jan 18 '21 07:01 Rupanwita

I have the same issue with the exact same error. Running python 3.9.12 on MacOS 10.14.6 (I know, it's old, that may be the problem)

Has there been a resolution?

vegardjervell avatar May 11 '22 16:05 vegardjervell

Original issue here would appear to be the pyobjus lib was missing

HyTurtle avatar May 11 '22 16:05 HyTurtle

Sure enough, it worked out after installing pyobjus :) shouldn't that be handled by setup.py though?

vegardjervell avatar May 11 '22 17:05 vegardjervell

Don't have much knowledge on ios/toolchain... as per android though; I'd say it shouldn't be handled by setup.py, but based on the plyer recipe it should be doing so there already.

Your case is on mac... so yea setup.py, maybe see what you system is reporting platform as.

its an extra so pip install plyer[macosx] would've done.

HyTurtle avatar May 11 '22 17:05 HyTurtle