Skip to content

ib_async not working with Python 3.14 #202

@gamubati

Description

@gamubati

I cannot run ib_async with Python 3.14 (I was getting the same error with ib_insync with Python 3.14 while it was running with Python 3.13). I get the following RunTimeError:

$ python
Python 3.14.2 (main, Jan 2 2026, 14:27:39) [GCC 15.2.1 20251112] on linux
Type "help", "copyright", "credits" or "license" for more information.

from ib_async import *
Traceback (most recent call last):
File "", line 1, in
from ib_async import *
File "/Jts/python/ib_async/init.py", line 6, in
from eventkit import Event
File "/Jts/python/eventkit/init.py", line 3, in
from .event import Event
File "/Jts/python/eventkit/event.py", line 9, in
from .util import NO_VALUE, get_event_loop, main_event_loop
File "/Jts/python/eventkit/util.py", line 24, in
main_event_loop = get_event_loop()
File "/Jts/python/eventkit/util.py", line 21, in get_event_loop
return asyncio.get_event_loop_policy().get_event_loop()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/lib/python3.14/asyncio/events.py", line 715, in get_event_loop
raise RuntimeError('There is no current event loop in thread %r.'
% threading.current_thread().name)
RuntimeError: There is no current event loop in thread 'MainThread'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions