Skip to content

windows notifications fail - missing module #193

@ZyphrZero

Description

@ZyphrZero

After I build with Nuitka, my app cannot find the winrt.windows.foundation.collections module

Windows-Toasts Version:

windows-toasts==1.3.1
winrt-runtime==3.2.1
winrt-windows-data-xml-dom==3.2.1
winrt-windows-foundation==3.2.1
winrt-windows-foundation-collections==3.2.1
winrt-windows-ui-notifications==3.2.1

Error info:

2025-06-26 17:08:28 | ERROR | notification:send_notification:129 | Failed to send notification: No module named 'winrt.windows.foundation.collections'
2025-06-26 17:08:28 | DEBUG | notification:send_notification:130 | Exception details: Traceback (most recent call last):
  File "C:\Users\mucha\DOWNLO~1\PYAPP-~1.1-X\utils\notification.py", line 124, in send_notification
  File "C:\Users\mucha\DOWNLO~1\PYAPP-~1.1-X\windows_toasts\toasters.py", line 138, in show_toast
  File "C:\Users\mucha\DOWNLO~1\PYAPP-~1.1-X\windows_toasts\toasters.py", line 40, in _build_adaptable_data
ModuleNotFoundError: No module named 'winrt.windows.foundation.collections'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions