PS D:\Users\Aaron\Documents\VS_Code_Files\C++\Goggles> py sub.py
Traceback (most recent call last):
File "C:\Users\Aaron\AppData\Local\Programs\Python\Python314\Lib\site-packages\win11toast.py", line 404, in toast
loop = asyncio.get_running_loop()
RuntimeError: no running event loop
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\Users\Aaron\Documents\VS_Code_Files\C++\Goggles\sub.py", line 3, in <module>
toast('Hello Python🐍')
~~~~~^^^^^^^^^^^^^^^^^^
File "C:\Users\Aaron\AppData\Local\Programs\Python\Python314\Lib\site-packages\win11toast.py", line 406, in toast
return asyncio.run(toast_coroutine)
~~~~~~~~~~~^^^^^^^^^^^^^^^^^
File "C:\Users\Aaron\AppData\Local\Programs\Python\Python314\Lib\asyncio\runners.py", line 204, in run
return runner.run(main)
~~~~~~~~~~^^^^^^
File "C:\Users\Aaron\AppData\Local\Programs\Python\Python314\Lib\asyncio\runners.py", line 127, in run
return self._loop.run_until_complete(task)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
File "C:\Users\Aaron\AppData\Local\Programs\Python\Python314\Lib\asyncio\base_events.py", line 719, in run_until_complete
return future.result()
~~~~~~~~~~~~~^^
File "C:\Users\Aaron\AppData\Local\Programs\Python\Python314\Lib\site-packages\win11toast.py", line 350, in toast_async
notification = notify(title, body, on_click, icon, image,
progress, audio, dialogue, duration, input, inputs, selection, selections, button, buttons,
xml, app_id, scenario, tag, group)
File "C:\Users\Aaron\AppData\Local\Programs\Python\Python314\Lib\site-packages\win11toast.py", line 315, in notify
notifier = ToastNotificationManager.create_toast_notifier_with_id(app_id)
OSError: [WinError -2143420155] The notification platform is unavailable.
This is due to 3.14 having stricter rules on async. Please add the stricter rules for async!
If you can't do that. Then tell me which python version I should use. Thank you!
An Error Occurs
When using python 3.14 (Latest)
Enters 3.14 (if using latest)
Error:
This is due to 3.14 having stricter rules on async. Please add the stricter rules for async!
If you can't do that. Then tell me which python version I should use. Thank you!