Skip to content

Conversation

Justme0606
Copy link
Collaborator

@Justme0606 Justme0606 commented Oct 13, 2025

macOS CI was failing with RuntimeError: There is no current event loop in thread 'MainThread'. Python 3.14 no longer automatically creates an asyncio event loop when calling asyncio.get_event_loop().
Solution:
Improved the macpack patching process to replace asyncio.get_event_loop() with Python 3.14-compatible code:

pythontry:
    loop = asyncio.get_running_loop()
except RuntimeError:
    loop = asyncio.new_event_loop()
    asyncio.set_event_loop(loop)

Also fixed the patch script to use python3 instead of python.

@Justme0606 Justme0606 force-pushed the fix/macos-macpack-wrapper branch from 81af501 to 8ea205c Compare October 14, 2025 08:13
@MSoegtropIMC
Copy link
Collaborator

Please add a description in the PR for what the root cause is and how the patch fixes it - otherwise it is hard to review.

@Justme0606 Justme0606 mentioned this pull request Oct 15, 2025
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

Successfully merging this pull request may close these issues.

2 participants