plyer
plyer copied to clipboard
cannot generate a notification on python. i am getting the error given below
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
which os are you using? works fine on windows and linux for me
which os are you using? works fine on windows and linux for me
ios
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?
Original issue here would appear to be the pyobjus lib was missing
Sure enough, it worked out after installing pyobjus :) shouldn't that be handled by setup.py though?
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.