You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "<frozen runpy>", line 189, in _run_module_as_main
File "<frozen runpy>", line 148, in _get_module_details
File "<frozen runpy>", line 112, in _get_module_details
File "/root/PagerMaid-Pyro/test/PagerMaid-Pyro/pagermaid/__init__.py", line 5, in <module>
import pyrogram.types
File "/usr/local/lib/python3.12/site-packages/pyrogram/__init__.py", line 40, in <module>
from .sync import idle, compose
File "/usr/local/lib/python3.12/site-packages/pyrogram/sync.py", line 99, in <module>
wrap(Methods)
File "/usr/local/lib/python3.12/site-packages/pyrogram/sync.py", line 95, in wrap
async_to_sync(source, name)
File "/usr/local/lib/python3.12/site-packages/pyrogram/sync.py", line 31, in async_to_sync
main_loop = asyncio.get_event_loop()
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/asyncio/events.py", line 676, in get_event_loop
raise RuntimeError('There is no current event loop in thread %r.'
RuntimeError: There is no current event loop in thread 'MainThread'.
INFO [2023-01-06 00:12:06] [apscheduler.scheduler] Scheduler started
INFO [2023-01-06 00:12:06] [casbin.model.assertion] Role links for: g
INFO [2023-01-06 00:12:06] [casbin.rbac.default_role_manager.role_manager] owner < admin, admin < builder, builder < default
INFO [2023-01-06 00:12:06] [pagermaid] 加载内置模块: account, avoid, backup, clock, help, message, mixpanel, plugin, prune, reload, sentry, status, sudo, system, update
DEBUG [2023-01-06 00:12:06] [apscheduler.scheduler] Looking for jobs to run
DEBUG [2023-01-06 00:12:06] [apscheduler.scheduler] No jobs; waiting until a job is added
INFO [2023-01-06 00:12:06] [pagermaid] 将平台检测为“linux”,进入PagerMaid的早期加载过程。
Welcome to Pyrogram (version 2.0.93)
Pyrogram is free software and comes with ABSOLUTELY NO WARRANTY. Licensed
under the terms of the GNU Lesser General Public License v3.0 (LGPL-3.0).
Enter phone number or bot token:
asyncio.get_event_loop() and many other asyncio functions like ensure_future(), shield() or gather(), and also the get_event_loop() method of BaseDefaultEventLoopPolicy now raise a RuntimeError if called when there is no running event loop and the current event loop was not set. Previously they implicitly created and set a new current event loop. DeprecationWarning is no longer emitted if there is no running event loop but the current event loop is set in the policy. (Contributed by Serhiy Storchaka in python/cpython#93453.)
The get_event_loop() method of the default event loop policy now emits a DeprecationWarning if there is no current event loop set and it decides to create one. (Contributed by Serhiy Storchaka and Guido van Rossum in python/cpython#100160.)
请确保您已阅读以上注意事项,并勾选下方的确认框。
PagerMaid 版本 (或 Commit Id)
0a4dda0
运行环境
Ubuntu
运行架构
AMD64
重现步骤
从python官网下载python12(https://www.python.org/ftp/python/3.12.0/Python-3.12.0a3.tar.xz )的源码,通过以下命令编译安装python
然后手动安装PagerMaid-Pyro并运行
无法运行,得到以下报错:
系统是Debian11,之所以上面选Ubuntu是因为Ubuntu是基于Debian的,是选项中最接近我的运行环境的一个
期望的结果是什么?
程序正常启动,就像这样:
实际的结果是什么?
在python3.11下可正常运行,但在python3.12下就无法运行
简单的复现代码/链接(可选)
日志记录(可选)
补充说明(可选)
No response
The text was updated successfully, but these errors were encountered: