You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After I packed exe file with PyInstaller I got following error when I run notify.
Traceback (most recent call last):
File "main.py", line 57, in
File "venv\lib\site-packages\kivy\app.py", line 826, in run
File "venv\lib\site-packages\kivy\base.py", line 502, in runTouchApp
File "venv\lib\site-packages\kivy\core\window\window_sdl2.py", line 727, in mainloop
File "venv\lib\site-packages\kivy\core\window\window_sdl2.py", line 460, in _mainloop
File "venv\lib\site-packages\kivy\base.py", line 340, in idle
File "venv\lib\site-packages\kivy\base.py", line 325, in dispatch_input
File "venv\lib\site-packages\kivy\base.py", line 231, in post_dispatch_input
File "kivy_event.pyx", line 707, in kivy.event.EventDispatcher.dispatch
File "venv\lib\site-packages\kivy\core\window_init.py", line 1360, in on_motion
File "kivy_event.pyx", line 707, in kivy.event.EventDispatcher.dispatch
File "venv\lib\site-packages\kivy\core\window_init.py", line 1376, in on_touch_down
File "kivy_event.pyx", line 707, in kivy._event.EventDispatcher.dispatch
File "venv\lib\site-packages\kivy\uix\widget.py", line 460, in on_touch_down
File "kivy_event.pyx", line 707, in kivy._event.EventDispatcher.dispatch
File "venv\lib\site-packages\kivy\uix\behaviors\button.py", line 151, in on_touch_down
File "kivy_event.pyx", line 703, in kivy._event.EventDispatcher.dispatch
File "kivy_event.pyx", line 1214, in kivy._event.EventObservers.dispatch
File "kivy_event.pyx", line 1098, in kivy._event.EventObservers._dispatch
File "venv\lib\site-packages\kivy\lang\builder.py", line 64, in custom_callback
File "D:\PycharmProjects\AbcAlarm\dist\abcalarm\notificationdemo.kv", line 22, in
on_press: root.do_notify(mode='normal')
File "main.py", line 45, in do_notify
File "venv\lib\site-packages\plyer\facades\notification.py", line 57, in notify
File "venv\lib\site-packages\plyer\facades\notification.py", line 62, in _notify
NotImplementedError: No usable implementation found!
[12896] Failed to execute script main
Try to print(plyer.utils.platform), because I think the problem is with a platform value being unknown for some weird reason. Otherwise you'd actually get some real error. This issue is just a Proxy not being able to get plyer.platforms.win.notification.instance() value and therefore it just returns the default Proxy value i.e. plyer.facades.notification.Notification.
Quick workaround for that is to use the platform specific module directly (plyer.platforms.win.notification.instance()).
KeyWeeUsr
changed the title
NotImplementedError: No usable implementation found!
Windows notification - NotImplementedError: No usable implementation found!
Dec 24, 2018
I was having a similar issue with the FileChooser on macos, and I solved it by adding the platform-specific module to hiddenimports in the spec file. For this issue, the change would be something like:
a = Analysis(
...
hiddenimports=['plyer.platforms.win.notification'],
...
Python == 3.7.1
Windows 10
Plyer == 1.3.2
PyInstaller == 3.4
After I packed exe file with PyInstaller I got following error when I run notify.
Traceback (most recent call last):
File "main.py", line 57, in
File "venv\lib\site-packages\kivy\app.py", line 826, in run
File "venv\lib\site-packages\kivy\base.py", line 502, in runTouchApp
File "venv\lib\site-packages\kivy\core\window\window_sdl2.py", line 727, in mainloop
File "venv\lib\site-packages\kivy\core\window\window_sdl2.py", line 460, in _mainloop
File "venv\lib\site-packages\kivy\base.py", line 340, in idle
File "venv\lib\site-packages\kivy\base.py", line 325, in dispatch_input
File "venv\lib\site-packages\kivy\base.py", line 231, in post_dispatch_input
File "kivy_event.pyx", line 707, in kivy.event.EventDispatcher.dispatch
File "venv\lib\site-packages\kivy\core\window_init.py", line 1360, in on_motion
File "kivy_event.pyx", line 707, in kivy.event.EventDispatcher.dispatch
File "venv\lib\site-packages\kivy\core\window_init.py", line 1376, in on_touch_down
File "kivy_event.pyx", line 707, in kivy._event.EventDispatcher.dispatch
File "venv\lib\site-packages\kivy\uix\widget.py", line 460, in on_touch_down
File "kivy_event.pyx", line 707, in kivy._event.EventDispatcher.dispatch
File "venv\lib\site-packages\kivy\uix\behaviors\button.py", line 151, in on_touch_down
File "kivy_event.pyx", line 703, in kivy._event.EventDispatcher.dispatch
File "kivy_event.pyx", line 1214, in kivy._event.EventObservers.dispatch
File "kivy_event.pyx", line 1098, in kivy._event.EventObservers._dispatch
File "venv\lib\site-packages\kivy\lang\builder.py", line 64, in custom_callback
File "D:\PycharmProjects\AbcAlarm\dist\abcalarm\notificationdemo.kv", line 22, in
on_press: root.do_notify(mode='normal')
File "main.py", line 45, in do_notify
File "venv\lib\site-packages\plyer\facades\notification.py", line 57, in notify
File "venv\lib\site-packages\plyer\facades\notification.py", line 62, in _notify
NotImplementedError: No usable implementation found!
[12896] Failed to execute script main
class NotificationDemo(BoxLayout):
The text was updated successfully, but these errors were encountered: