Skip to content

python3.14运行examples报错RuntimeError: There is no current event loop in thread 'MainThread'. #240

@flamer345

Description

@flamer345

环境:
python:3.14.0
qq-botpy:1.2.1

运行examples/demp_group_reply_test.py报标题所示错误,经查阅文档发现get_event_loop函数在 3.14 版本发生变更: 如果没有当前事件循环则会引发 RuntimeError

附文档链接:https://docs.python.org/zh-cn/3.14/library/asyncio-eventloop.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions