Skip to content

macOS bug "There is no current event loop in thread 'MainThread'" #102

Description

@ailenmuller

Hello,

I got the bug "There is no current event loop in thread 'MainThread'" when the printer was found but unable to connect.
I fixed it by adding the following to the ui.py file:

import asyncio
asyncio.set_event_loop(asyncio.new_event_loop())

After this change, it worked fine.

Python version 3.14.3
macOS version 26.2

Let me know if you'd fancy a pull request.
Thank you so much for this helpful app!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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