Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OSError: [WinError -2143420155] Notification platform not available #178

Open
Macktireh opened this issue Aug 7, 2024 · 0 comments
Open

Comments

@Macktireh
Copy link

Macktireh commented Aug 7, 2024

  • Desktop Notifier version: 5.0.1
  • Python version: 3.12.3
  • Operating System: Windows 11

Description

I tested the sample code provided in the documentation (README):

import asyncio

from desktop_notifier import DesktopNotifier

notifier = DesktopNotifier()


async def main() -> None:
    await notifier.send(title="Hello world!", message="Sent from Python")


if __name__ == "__main__":
    asyncio.run(main())

Output:

Traceback (most recent call last):
  File "E:\develop\projects\side\AutomateRDVPref\app.py", line 5, in <module>
    notifier = DesktopNotifier()
               ^^^^^^^^^^^^^^^^^
  File "E:\develop\projects\side\AutomateRDVPref\.venv\Lib\site-packages\desktop_notifier\main.py", line 165, in __init__
    self._impl = impl_cls(app_name, notification_limit)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "E:\develop\projects\side\AutomateRDVPref\.venv\Lib\site-packages\desktop_notifier\winrt.py", line 100, in __init__
    notifier = self.manager.create_toast_notifier(self.app_id)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: [WinError -2143420155] Notification platform not available
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant