y-young / nazurin

🎉 Images collection done right. Telegram 图片收藏机器人 / A Telegram bot that helps you collect ACG illustrations.
http://nazurin.readthedocs.io
MIT License
260 stars 58 forks source link

Python3.10 compatibility issues #91

Closed ovrase closed 7 months ago

ovrase commented 7 months ago

Describe the bug An error occurs when the configuration is completed and started.

To Reproduce Steps to reproduce the behavior:

  1. Send '...'python -m nazurin'...' command
  2. See error

Error output / Logs

2024-01-17 14:17:44,749+0000 - ERROR    - asyncio.base_events:1758 -  - unhandled exception during asyncio.run() shutdown
task: <Task finished name='Task-7' coro=<_run_app() done, defined at /usr/local/lib/python3.10/dist-packages/aiohttp/web.py:289> exception=TypeError('As of 3.10, the *loop* parameter was removed from Queue() since it is no longer necessary')>

Environment (please complete the following information):

Additional context The python that comes with Ubuntu has been upgraded to 3.10, but there are deprecated parameters in the program.