GithubHelp home page GithubHelp logo

summerkirakira / cirnobot Goto Github PK

View Code? Open in Web Editor NEW
101.0 2.0 16.0 39.24 MB

用QQ机器人控制Minecraft服务器!服务器状态查询/服务器白名单/插件列表/玩家查询/转发服务器消息/执行指令... + 实用娱乐功能,三步即可部署的QQ bot

Dockerfile 0.90% Python 99.10%
python nonebot2 qqbot

cirnobot's Introduction

小九头像

CirnoBot

python nonebot servertap minecraft

琪露诺Bot


专注Minecraft (加亿点点娱乐实用功能)的QQ机器人,基于nonebot2, gocqhttp, serverTap开发的琪露诺家族的第三代成员。

实现功能


  • Minecraft相关
    • 服务端版本支持Bukkit, Spigot&PaperMC 1.12-1.18.1
    • 多服务器同时监听支持
    • 分群服务器绑定支持
    • 分服务器超级用户支持
    • 入服/离服事件QQ群播报
    • 入服/离服事件MC服务器播报
    • 广播消息均可自定义
    • 支持广播消息多群发送
    • 玩家聊天消息监听,支持自定词条自动回复(mc骰娘已移植)
    • 所有广播/私聊消息均可支持颜色代码与PlaceholderAPI
    • MC服务器在线信息查询(内存占用,版本,在线玩家)
    • 获取服务器启用插件列表
    • 在线/离线玩家信息查询
    • 开启/关闭服务器白名单
    • 添加/移除服务器管理员
    • MC玩家ID绑定QQ号
    • 群成员自助申请白名单
    • 服务器向QQ群 / QQ群向服务器转发消息
    • 查询服务器最近10条玩家消息
    • 在QQ群执行MC指令
    • MC词条库
  • 其他功能&特性
    • 支持图片文本的群词条库支持(图片缓存到本地)
    • 在群聊中动态编辑词条
    • 支持群成员专属词条
    • 分群启用不同的词条库
    • 词条库由sqlite存储,无需开启mysql服务
    • 美元/港币/日元...阿联酋迪拉姆... 货币转换支持
    • 开黑啦在线成员/语音频道查询支持
    • 完整的功能帮助

帮助截图

群内可使用指令

实现截图


部分截图

简单部署


1.下载CirnoBot本体

git clone https://github.com/summerkirakira/CirnoBot.git # 下载CirnoBot文件

2.安装CirnoBot依赖(强烈建议使用你喜欢的 Python 环境管理工具创建新的虚拟环境)

cd CirnoBot # 进入文件夹

pip install pip --upgrade # 更新pip

pip install -r requirements.txt # 安装python依赖
  1. 启动CirnoBot!
nb run # 启动bot!

详细配置

请参考文档

To do

  • docker
  • web端 (永远不会做X)

cirnobot's People

Contributors

littlechest avatar summerkirakira avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

cirnobot's Issues

requirement安装报错

error: subprocess-exited-with-error

× Building wheel for backports.zoneinfo (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [32 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.9
creating build\lib.win-amd64-3.9\backports
copying src\backports_init_.py -> build\lib.win-amd64-3.9\backports
creating build\lib.win-amd64-3.9\backports\zoneinfo
copying src\backports\zoneinfo_common.py -> build\lib.win-amd64-3.9\backports\zoneinfo
copying src\backports\zoneinfo_tzpath.py -> build\lib.win-amd64-3.9\backports\zoneinfo
copying src\backports\zoneinfo_version.py -> build\lib.win-amd64-3.9\backports\zoneinfo
copying src\backports\zoneinfo_zoneinfo.py -> build\lib.win-amd64-3.9\backports\zoneinfo
copying src\backports\zoneinfo_init_.py -> build\lib.win-amd64-3.9\backports\zoneinfo
running egg_info
writing src\backports.zoneinfo.egg-info\PKG-INFO
writing dependency_links to src\backports.zoneinfo.egg-info\dependency_links.txt
writing requirements to src\backports.zoneinfo.egg-info\requires.txt
writing top-level names to src\backports.zoneinfo.egg-info\top_level.txt
reading manifest file 'src\backports.zoneinfo.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '.png' under directory 'docs'
warning: no files found matching '
.svg' under directory 'docs'
no previously-included directories found matching 'docs_build'
no previously-included directories found matching 'docs_output'
adding license file 'LICENSE'
adding license file 'licenses/LICENSE_APACHE'
writing manifest file 'src\backports.zoneinfo.egg-info\SOURCES.txt'
copying src\backports\zoneinfo_init_.pyi -> build\lib.win-amd64-3.9\backports\zoneinfo
copying src\backports\zoneinfo\py.typed -> build\lib.win-amd64-3.9\backports\zoneinfo
running build_ext
building 'backports.zoneinfo._czoneinfo' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for backports.zoneinfo
Failed to build backports.zoneinfo
ERROR: Could not build wheels for backports.zoneinfo, which is required to install pyproject.toml-based projects

已安装Microsoft C++ Build Tools,还是有这个错误

connect to minecraft server

只能连接至_bukkit/spigot/paper_端么,不能用 rcon 连接至其他类似原版端fabric地毯端

希望尽快更新

安装其它插件会因为依赖不兼容报错无法安装
升级依赖库可能会解决问题

wheel安装httptools出错

Building wheels for collected packages: httptools
Building wheel for httptools (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [25 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.10
creating build\lib.win-amd64-3.10\httptools
copying httptools_version.py -> build\lib.win-amd64-3.10\httptools
copying httptools_init_.py -> build\lib.win-amd64-3.10\httptools
creating build\lib.win-amd64-3.10\httptools\parser
copying httptools\parser\errors.py -> build\lib.win-amd64-3.10\httptools\parser
copying httptools\parser_init_.py -> build\lib.win-amd64-3.10\httptools\parser
running egg_info
writing httptools.egg-info\PKG-INFO
writing dependency_links to httptools.egg-info\dependency_links.txt
writing requirements to httptools.egg-info\requires.txt
writing top-level names to httptools.egg-info\top_level.txt
reading manifest file 'httptools.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE'
writing manifest file 'httptools.egg-info\SOURCES.txt'
copying httptools\parser\parser.c -> build\lib.win-amd64-3.10\httptools\parser
copying httptools\parser\url_parser.c -> build\lib.win-amd64-3.10\httptools\parser
running build_ext
building 'httptools.parser.parser' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for httptools
Running setup.py clean for httptools
Failed to build httptools
Installing collected packages: httptools, certifi, atlastk, appdirs, altgraph, Werkzeug, websockets, watchgod, waitress, urllib3, ujson, tzdata, typing-extensions, tortoise, tomlkit, SQLAlchemy, soupsieve, socksio, rsa, python-slugify, python-engineio, pypika-tortoise, pyparsing, psutil, prompt-toolkit, Pillow,
MarkupSafe, itsdangerous, hyperframe, hpack, colorama, charset-normalizer, chardet, bidict, asyncpg, asgiref, anyio, aiofiles, starlette, requests, pytz-deprecation-shim, python-socketio, pydantic, playwright, packaging, loguru, Jinja2, httpcore, h2, databases, click, beautifulsoup4, aiosqlite, uvicorn, tzloca
l, tortoise-orm, httpx, Flask, fastapi, bs4, APScheduler, nonebot2, nonebot-plugin-apscheduler, nonebot-plugin-analysis-bilibili, nonebot-adapter-onebot, nb-cli, nonebot-plugin-what2eat, nonebot-plugin-tarot, nonebot-plugin-gocqhttp
Attempting uninstall: httptools
Found existing installation: httptools 0.4.0
Uninstalling httptools-0.4.0:
Successfully uninstalled httptools-0.4.0
Running setup.py install for httptools ... error
error: subprocess-exited-with-error

× Running setup.py install for httptools did not run successfully.
│ exit code: 1
╰─> [25 lines of output]
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.10
creating build\lib.win-amd64-3.10\httptools
copying httptools_version.py -> build\lib.win-amd64-3.10\httptools
copying httptools_init_.py -> build\lib.win-amd64-3.10\httptools
creating build\lib.win-amd64-3.10\httptools\parser
copying httptools\parser\errors.py -> build\lib.win-amd64-3.10\httptools\parser
copying httptools\parser_init_.py -> build\lib.win-amd64-3.10\httptools\parser
running egg_info
writing httptools.egg-info\PKG-INFO
writing dependency_links to httptools.egg-info\dependency_links.txt
writing requirements to httptools.egg-info\requires.txt
writing top-level names to httptools.egg-info\top_level.txt
reading manifest file 'httptools.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE'
writing manifest file 'httptools.egg-info\SOURCES.txt'
copying httptools\parser\parser.c -> build\lib.win-amd64-3.10\httptools\parser
copying httptools\parser\url_parser.c -> build\lib.win-amd64-3.10\httptools\parser
running build_ext
building 'httptools.parser.parser' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
WARNING: No metadata found in c:\users\fxd\appdata\local\programs\python\python310\lib\site-packages
Rolling back uninstall of httptools
Moving to c:\users\fxd\appdata\local\programs\python\python310\lib\site-packages\httptools-0.4.0.dist-info
from C:\Users\FXD\AppData\Local\Programs\Python\Python310\Lib\site-packages~ttptools-0.4.0.dist-info
Moving to c:\users\fxd\appdata\local\programs\python\python310\lib\site-packages\httptools
from C:\Users\FXD\AppData\Local\Programs\Python\Python310\Lib\site-packages~ttptools

无法启动,没有sqlite_host

python:3.8.10
以下是启动nb run的显示

 PS E:\text\texted bot\CirnoBot> nb run
05-03 22:16:16 [SUCCESS] nonebot | NoneBot is initializing...
05-03 22:16:16 [INFO] nonebot | Current Env: prod
05-03 22:16:16 [SUCCESS] nonebot | Succeeded to import "src.plugins.nonebot_plugin_apscheduler"
05-03 22:16:16 [SUCCESS] nonebot | Succeeded to import "src.plugins.nonebot_plugin_currency_conversion"
05-03 22:16:17 [SUCCESS] nonebot | Succeeded to import "src.plugins.nonebot_plugin_cute_message"
05-03 22:16:17 [SUCCESS] nonebot | Succeeded to import "src.plugins.nonebot_plugin_database_connector"
05-03 22:16:17 [SUCCESS] nonebot | Succeeded to import "src.plugins.nonebot_plugin_image_server"
05-03 22:16:17 [SUCCESS] nonebot | Succeeded to import "src.plugins.nonebot_plugin_kaiheila_check"
05-03 22:16:17 [SUCCESS] nonebot | Succeeded to import "src.plugins.nonebot_plugin_mc_info"
05-03 22:16:17 [SUCCESS] nonebot | Succeeded to import "src.plugins.nonebot_plugin_mc_fun"
05-03 22:16:18 [SUCCESS] nonebot | Succeeded to import "src.plugins.nonebot_plugin_mc_cocdicer"
05-03 22:16:18 [SUCCESS] nonebot | Succeeded to import "src.plugins.nonebot_plugin_message_recorder"
05-03 22:16:18 [SUCCESS] nonebot | Succeeded to import "src.plugins.nonebot_plugin_permission"
05-03 22:16:18 [SUCCESS] nonebot | Succeeded to import "src.plugins.nonebot_plugin_archive"
05-03 22:16:18 [SUCCESS] nonebot | Succeeded to import "src.plugins.nonebot_plugin_help"
05-03 22:16:19 [SUCCESS] nonebot | Succeeded to import "nonebot_plugin_gocqhttp"
05-03 22:16:20 [SUCCESS] nonebot | Succeeded to import "nonebot_plugin_what2eat"
05-03 22:16:20 [SUCCESS] nonebot | Succeeded to import "nonebot_plugin_tarot"
05-03 22:16:20 [SUCCESS] nonebot | Running NoneBot...
05-03 22:16:20 [INFO] uvicorn | Started server process [22696]
05-03 22:16:20 [INFO] uvicorn | Waiting for application startup.
d:\python3.8.10\lib\apscheduler\util.py:436: PytzUsageWarning: The localize method is no longer necessary, as this time zone supports the fold attribute (PEP 495). For more details on migrating to a PEP 495-compliant implementation, see https://pytz-deprecation-shim.readthedocs.io/en/latest/migration.html
  return tzinfo.localize(dt)
05-03 22:16:20 [INFO] src | Scheduler Started
05-03 22:16:20 [ERROR] uvicorn | Traceback (most recent call last):
  File "d:\python3.8.10\lib\site-packages\starlette\routing.py", line 621, in lifespan
    async with self.lifespan_context(app):
  File "d:\python3.8.10\lib\site-packages\starlette\routing.py", line 518, in __aenter__
    await self._router.startup()
  File "d:\python3.8.10\lib\site-packages\starlette\routing.py", line 598, in startup
    await handler()
  File "E:\text\texted bot\CirnoBot\.\src\plugins\nonebot_plugin_database_connector\__init__.py", line 22, in connect_to_sqlite
    if config.sqlite_host:
AttributeError: 'Config' object has no attribute 'sqlite_host'

05-03 22:16:20 [ERROR] uvicorn | Application startup failed. Exiting.

其他插件的配置应该怎么写

我现在以cirnobot为bot框架,添加了许多的插件,一般正常来说是有个env文件的,所有的插件变量都可以在那里面填写
但是ciirnobot却没有,于是我尝试写在bot_config.yaml并遵守了yaml的格式,但是似乎未读取到。
image

question: address already in use

我使用自己下载的gocq端配置了正向http,
在cirnobot上关闭了内置gocq的插件。
同时启动,总有一个是提示被占用的。
image

这个不管我改不改都一样,反正端口一样就是会被占用
image

服务器名称问题

你好,大大
paper 1.18.2
群聊服务器名称中 .mc 命令 服务器名异常
.mc 命令回复第一行截图:
QQ截图20220731163341
请问这个和 paper 有关么
谢谢

warning: src | 端口被占用,可能原因为图片存储服务器未正常退出,不再重复创建

(日志作过处理)

我不知道如何配置图片存储服务器的地址:

image
image

上面的的配置是正常的,下面是我改图片存储服务器的地址

image

启动报错,虽然连接上了gocq反向服务器,但无法执行指令:

02-15 23:50:14 [SUCCESS] nonebot | Running NoneBot...
02-15 23:50:14 [INFO] uvicorn | Started server process [344963]
02-15 23:50:14 [INFO] uvicorn | Waiting for application startup.
02-15 23:50:14 [INFO] src | Scheduler Started
02-15 23:50:14 [WARNING] src | 端口被占用,可能原因为图片存储服务器未正常退出,不再重复创建
02-15 23:50:14 [INFO] uvicorn | Application startup complete.
02-15 23:50:14 [INFO] uvicorn | Uvicorn running on http://127.0.0.1:32156 (Press CTRL+C to quit)
02-15 23:50:16 [INFO] uvicorn | ('127.0.0.1', 50386) - "WebSocket /onebot/v11/ws/" [accepted]
02-15 23:50:16 [INFO] nonebot | OneBot V11 | Bot 1024685341 connected
02-15 23:50:16 [INFO] websockets | connection open

(汤圆,吃两个后就不喜欢吃了uwu)

在我运行机器人时遇到一些插件报错

用的是pycharm

E:\IDEAyes\BOT\CirnoBot-master\venv\Scripts\python.exe E:\IDEAyes\BOT\CirnoBot-master\bot.py 
12-23 15:09:48 [SUCCESS] nonebot | NoneBot is initializing...
12-23 15:09:48 [INFO] nonebot | Current Env: prod
12-23 15:09:48 [ERROR] nonebot | Failed to import "src.plugins.nonebot_plugin_apscheduler"
Traceback (most recent call last):
  File "E:\IDEAyes\BOT\CirnoBot-master\bot.py", line 25, in <module>
    cirno_util.load_plugins()
  File "E:\IDEAyes\BOT\CirnoBot-master\cirno_util.py", line 45, in load_plugins
    nonebot.load_plugin(f"src.plugins.{plugin_name}")
  File "E:\IDEAyes\BOT\CirnoBot-master\venv\lib\site-packages\nonebot\plugin\load.py", line 34, in load_plugin
    return manager.load_plugin(module_path)
> File "E:\IDEAyes\BOT\CirnoBot-master\venv\lib\site-packages\nonebot\plugin\manager.py", line 141, in load_plugin
    module = importlib.import_module(name)
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\importlib\__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "E:\IDEAyes\BOT\CirnoBot-master\venv\lib\site-packages\nonebot\plugin\manager.py", line 233, in exec_module
    super().exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "E:\IDEAyes\BOT\CirnoBot-master\src\plugins\nonebot_plugin_apscheduler\__init__.py", line 3, in <module>
    from nonebot import get_driver, export
ImportError: cannot import name 'export' from 'nonebot' (E:\IDEAyes\BOT\CirnoBot-master\venv\lib\site-packages\nonebot\__init__.py)
12-23 15:09:48 [ERROR] nonebot | Failed to import "src.plugins.nonebot_plugin_currency_conversion"
Traceback (most recent call last):
  File "E:\IDEAyes\BOT\CirnoBot-master\bot.py", line 25, in <module>
    cirno_util.load_plugins()
  File "E:\IDEAyes\BOT\CirnoBot-master\cirno_util.py", line 45, in load_plugins
    nonebot.load_plugin(f"src.plugins.{plugin_name}")
  File "E:\IDEAyes\BOT\CirnoBot-master\venv\lib\site-packages\nonebot\plugin\load.py", line 34, in load_plugin
    return manager.load_plugin(module_path)
> File "E:\IDEAyes\BOT\CirnoBot-master\venv\lib\site-packages\nonebot\plugin\manager.py", line 141, in load_plugin
    module = importlib.import_module(name)
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\importlib\__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "E:\IDEAyes\BOT\CirnoBot-master\venv\lib\site-packages\nonebot\plugin\manager.py", line 233, in exec_module
    super().exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "E:\IDEAyes\BOT\CirnoBot-master\src\plugins\nonebot_plugin_currency_conversion\__init__.py", line 4, in <module>
    from nonebot.params import State
ImportError: cannot import name 'State' from 'nonebot.params' (E:\IDEAyes\BOT\CirnoBot-master\venv\lib\site-packages\nonebot\params.py)
12-23 15:09:48 [ERROR] nonebot | Failed to import "src.plugins.nonebot_plugin_cute_message"
Traceback (most recent call last):
  File "E:\IDEAyes\BOT\CirnoBot-master\bot.py", line 25, in <module>
    cirno_util.load_plugins()
  File "E:\IDEAyes\BOT\CirnoBot-master\cirno_util.py", line 45, in load_plugins
    nonebot.load_plugin(f"src.plugins.{plugin_name}")
  File "E:\IDEAyes\BOT\CirnoBot-master\venv\lib\site-packages\nonebot\plugin\load.py", line 34, in load_plugin
    return manager.load_plugin(module_path)
> File "E:\IDEAyes\BOT\CirnoBot-master\venv\lib\site-packages\nonebot\plugin\manager.py", line 141, in load_plugin
    module = importlib.import_module(name)
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\importlib\__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "E:\IDEAyes\BOT\CirnoBot-master\venv\lib\site-packages\nonebot\plugin\manager.py", line 233, in exec_module
    super().exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "E:\IDEAyes\BOT\CirnoBot-master\src\plugins\nonebot_plugin_cute_message\__init__.py", line 2, in <module>
    from nonebot.params import State
ImportError: cannot import name 'State' from 'nonebot.params' (E:\IDEAyes\BOT\CirnoBot-master\venv\lib\site-packages\nonebot\params.py)
12-23 15:09:48 [ERROR] nonebot | Failed to import "src.plugins.nonebot_plugin_database_connector"
Traceback (most recent call last):
  File "E:\IDEAyes\BOT\CirnoBot-master\bot.py", line 25, in <module>
    cirno_util.load_plugins()
  File "E:\IDEAyes\BOT\CirnoBot-master\cirno_util.py", line 45, in load_plugins
    nonebot.load_plugin(f"src.plugins.{plugin_name}")
  File "E:\IDEAyes\BOT\CirnoBot-master\venv\lib\site-packages\nonebot\plugin\load.py", line 34, in load_plugin
    return manager.load_plugin(module_path)
> File "E:\IDEAyes\BOT\CirnoBot-master\venv\lib\site-packages\nonebot\plugin\manager.py", line 141, in load_plugin
    module = importlib.import_module(name)
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\importlib\__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "E:\IDEAyes\BOT\CirnoBot-master\venv\lib\site-packages\nonebot\plugin\manager.py", line 233, in exec_module
    super().exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "E:\IDEAyes\BOT\CirnoBot-master\src\plugins\nonebot_plugin_database_connector\__init__.py", line 16, in <module>
    nonebot.export().sqlite_pool = sqlite_pool
AttributeError: module 'nonebot' has no attribute 'export'
12-23 15:09:48 [SUCCESS] nonebot | Succeeded to import "src.plugins.nonebot_plugin_image_server"
12-23 15:09:48 [SUCCESS] nonebot | Succeeded to import "src.plugins.nonebot_plugin_kaiheila_check"
12-23 15:09:48 [ERROR] nonebot | Failed to import "src.plugins.nonebot_plugin_mc_info"
Traceback (most recent call last):
  File "E:\IDEAyes\BOT\CirnoBot-master\bot.py", line 25, in <module>
    cirno_util.load_plugins()
  File "E:\IDEAyes\BOT\CirnoBot-master\cirno_util.py", line 45, in load_plugins
    nonebot.load_plugin(f"src.plugins.{plugin_name}")
  File "E:\IDEAyes\BOT\CirnoBot-master\venv\lib\site-packages\nonebot\plugin\load.py", line 34, in load_plugin
    return manager.load_plugin(module_path)
> File "E:\IDEAyes\BOT\CirnoBot-master\venv\lib\site-packages\nonebot\plugin\manager.py", line 141, in load_plugin
    module = importlib.import_module(name)
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\importlib\__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "E:\IDEAyes\BOT\CirnoBot-master\venv\lib\site-packages\nonebot\plugin\manager.py", line 233, in exec_module
    super().exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "E:\IDEAyes\BOT\CirnoBot-master\src\plugins\nonebot_plugin_mc_info\__init__.py", line 11, in <module>
    export = nonebot.export()
AttributeError: module 'nonebot' has no attribute 'export'
12-23 15:09:48 [ERROR] nonebot | Failed to import "src.plugins.nonebot_plugin_mc_fun"
Traceback (most recent call last):
  File "E:\IDEAyes\BOT\CirnoBot-master\bot.py", line 25, in <module>
    cirno_util.load_plugins()
  File "E:\IDEAyes\BOT\CirnoBot-master\cirno_util.py", line 45, in load_plugins
    nonebot.load_plugin(f"src.plugins.{plugin_name}")
  File "E:\IDEAyes\BOT\CirnoBot-master\venv\lib\site-packages\nonebot\plugin\load.py", line 34, in load_plugin
    return manager.load_plugin(module_path)
> File "E:\IDEAyes\BOT\CirnoBot-master\venv\lib\site-packages\nonebot\plugin\manager.py", line 141, in load_plugin
    module = importlib.import_module(name)
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\importlib\__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "E:\IDEAyes\BOT\CirnoBot-master\venv\lib\site-packages\nonebot\plugin\manager.py", line 233, in exec_module
    super().exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "E:\IDEAyes\BOT\CirnoBot-master\src\plugins\nonebot_plugin_mc_fun\__init__.py", line 9, in <module>
    from .listeners import *
  File "E:\IDEAyes\BOT\CirnoBot-master\src\plugins\nonebot_plugin_mc_fun\listeners.py", line 1, in <module>
    from ..nonebot_plugin_mc_info import MinecraftConnector
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "E:\IDEAyes\BOT\CirnoBot-master\venv\lib\site-packages\nonebot\plugin\manager.py", line 233, in exec_module
    super().exec_module(module)
  File "E:\IDEAyes\BOT\CirnoBot-master\src\plugins\nonebot_plugin_mc_info\__init__.py", line 11, in <module>
    export = nonebot.export()
AttributeError: module 'nonebot' has no attribute 'export'
12-23 15:09:48 [ERROR] nonebot | Failed to import "src.plugins.nonebot_plugin_mc_cocdicer"
Traceback (most recent call last):
  File "E:\IDEAyes\BOT\CirnoBot-master\bot.py", line 25, in <module>
    cirno_util.load_plugins()
  File "E:\IDEAyes\BOT\CirnoBot-master\cirno_util.py", line 45, in load_plugins
    nonebot.load_plugin(f"src.plugins.{plugin_name}")
  File "E:\IDEAyes\BOT\CirnoBot-master\venv\lib\site-packages\nonebot\plugin\load.py", line 34, in load_plugin
    return manager.load_plugin(module_path)
> File "E:\IDEAyes\BOT\CirnoBot-master\venv\lib\site-packages\nonebot\plugin\manager.py", line 141, in load_plugin
    module = importlib.import_module(name)
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\importlib\__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "E:\IDEAyes\BOT\CirnoBot-master\venv\lib\site-packages\nonebot\plugin\manager.py", line 233, in exec_module
    super().exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "E:\IDEAyes\BOT\CirnoBot-master\src\plugins\nonebot_plugin_mc_cocdicer\__init__.py", line 1, in <module>
    from ..nonebot_plugin_mc_info import MinecraftConnector
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "E:\IDEAyes\BOT\CirnoBot-master\venv\lib\site-packages\nonebot\plugin\manager.py", line 233, in exec_module
    super().exec_module(module)
  File "E:\IDEAyes\BOT\CirnoBot-master\src\plugins\nonebot_plugin_mc_info\__init__.py", line 11, in <module>
    export = nonebot.export()
AttributeError: module 'nonebot' has no attribute 'export'
12-23 15:09:48 [ERROR] nonebot | Failed to import "src.plugins.nonebot_plugin_message_recorder"
Traceback (most recent call last):
  File "E:\IDEAyes\BOT\CirnoBot-master\bot.py", line 25, in <module>
    cirno_util.load_plugins()
  File "E:\IDEAyes\BOT\CirnoBot-master\cirno_util.py", line 45, in load_plugins
    nonebot.load_plugin(f"src.plugins.{plugin_name}")
  File "E:\IDEAyes\BOT\CirnoBot-master\venv\lib\site-packages\nonebot\plugin\load.py", line 34, in load_plugin
    return manager.load_plugin(module_path)
> File "E:\IDEAyes\BOT\CirnoBot-master\venv\lib\site-packages\nonebot\plugin\manager.py", line 141, in load_plugin
    module = importlib.import_module(name)
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\importlib\__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "E:\IDEAyes\BOT\CirnoBot-master\venv\lib\site-packages\nonebot\plugin\manager.py", line 233, in exec_module
    super().exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "E:\IDEAyes\BOT\CirnoBot-master\src\plugins\nonebot_plugin_message_recorder\__init__.py", line 4, in <module>
    from .data_source import insert_new_row, current_folder, save_config_to_yaml, get_config
  File "E:\IDEAyes\BOT\CirnoBot-master\src\plugins\nonebot_plugin_message_recorder\data_source.py", line 7, in <module>
    export = nonebot.require("nonebot_plugin_database_connector")
  File "E:\IDEAyes\BOT\CirnoBot-master\venv\lib\site-packages\nonebot\plugin\load.py", line 165, in require
    plugin = load_plugin(name)
  File "E:\IDEAyes\BOT\CirnoBot-master\venv\lib\site-packages\nonebot\plugin\load.py", line 32, in load_plugin
    manager = PluginManager([module_path])
  File "E:\IDEAyes\BOT\CirnoBot-master\venv\lib\site-packages\nonebot\plugin\manager.py", line 52, in __init__
    self.prepare_plugins()
  File "E:\IDEAyes\BOT\CirnoBot-master\venv\lib\site-packages\nonebot\plugin\manager.py", line 94, in prepare_plugins
    raise RuntimeError(
RuntimeError: Plugin already exists: nonebot_plugin_database_connector! Check your plugin name
12-23 15:09:48 [SUCCESS] nonebot | Succeeded to import "src.plugins.nonebot_plugin_permission"
12-23 15:09:48 [ERROR] nonebot | Failed to import "src.plugins.nonebot_plugin_archive"
Traceback (most recent call last):
  File "E:\IDEAyes\BOT\CirnoBot-master\bot.py", line 25, in <module>
    cirno_util.load_plugins()
  File "E:\IDEAyes\BOT\CirnoBot-master\cirno_util.py", line 45, in load_plugins
    nonebot.load_plugin(f"src.plugins.{plugin_name}")
  File "E:\IDEAyes\BOT\CirnoBot-master\venv\lib\site-packages\nonebot\plugin\load.py", line 34, in load_plugin
    return manager.load_plugin(module_path)
> File "E:\IDEAyes\BOT\CirnoBot-master\venv\lib\site-packages\nonebot\plugin\manager.py", line 141, in load_plugin
    module = importlib.import_module(name)
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\importlib\__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "E:\IDEAyes\BOT\CirnoBot-master\venv\lib\site-packages\nonebot\plugin\manager.py", line 233, in exec_module
    super().exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "E:\IDEAyes\BOT\CirnoBot-master\src\plugins\nonebot_plugin_archive\__init__.py", line 4, in <module>
    from nonebot.params import State
ImportError: cannot import name 'State' from 'nonebot.params' (E:\IDEAyes\BOT\CirnoBot-master\venv\lib\site-packages\nonebot\params.py)
12-23 15:09:48 [SUCCESS] nonebot | Succeeded to import "src.plugins.nonebot_plugin_help"
12-23 15:09:50 [SUCCESS] nonebot | Succeeded to import "nonebot_plugin_gocqhttp"
12-23 15:09:50 [ERROR] nonebot | Failed to import "nonebot_plugin_what2eat"
Traceback (most recent call last):
  File "E:\IDEAyes\BOT\CirnoBot-master\bot.py", line 25, in <module>
    cirno_util.load_plugins()
  File "E:\IDEAyes\BOT\CirnoBot-master\cirno_util.py", line 47, in load_plugins
    nonebot.load_plugin(plugin_name)
  File "E:\IDEAyes\BOT\CirnoBot-master\venv\lib\site-packages\nonebot\plugin\load.py", line 34, in load_plugin
    return manager.load_plugin(module_path)
> File "E:\IDEAyes\BOT\CirnoBot-master\venv\lib\site-packages\nonebot\plugin\manager.py", line 141, in load_plugin
    module = importlib.import_module(name)
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\importlib\__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "E:\IDEAyes\BOT\CirnoBot-master\venv\lib\site-packages\nonebot\plugin\manager.py", line 233, in exec_module
    super().exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "E:\IDEAyes\BOT\CirnoBot-master\venv\lib\site-packages\nonebot_plugin_what2eat\__init__.py", line 6, in <module>
    from .utils import eating_manager, Meals, GROUPS_ID
  File "E:\IDEAyes\BOT\CirnoBot-master\venv\lib\site-packages\nonebot_plugin_what2eat\utils.py", line 15, in <module>
    _WHAT2EAT_PATH = nonebot.get_driver().config.what2eat_path
AttributeError: 'Config' object has no attribute 'what2eat_path'
12-23 15:09:50 [ERROR] nonebot | Failed to import "nonebot_plugin_tarot"
Traceback (most recent call last):
  File "E:\IDEAyes\BOT\CirnoBot-master\bot.py", line 25, in <module>
    cirno_util.load_plugins()
  File "E:\IDEAyes\BOT\CirnoBot-master\cirno_util.py", line 47, in load_plugins
    nonebot.load_plugin(plugin_name)
  File "E:\IDEAyes\BOT\CirnoBot-master\venv\lib\site-packages\nonebot\plugin\load.py", line 34, in load_plugin
    return manager.load_plugin(module_path)
> File "E:\IDEAyes\BOT\CirnoBot-master\venv\lib\site-packages\nonebot\plugin\manager.py", line 141, in load_plugin
    module = importlib.import_module(name)
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\importlib\__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "E:\IDEAyes\BOT\CirnoBot-master\venv\lib\site-packages\nonebot\plugin\manager.py", line 233, in exec_module
    super().exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "E:\IDEAyes\BOT\CirnoBot-master\venv\lib\site-packages\nonebot_plugin_tarot\__init__.py", line 5, in <module>
    from .data_source import Cards, meanings
  File "E:\IDEAyes\BOT\CirnoBot-master\venv\lib\site-packages\nonebot_plugin_tarot\data_source.py", line 6, in <module>
    _TAROT_PATH = nonebot.get_driver().config.tarot_path
AttributeError: 'Config' object has no attribute 'tarot_path'
12-23 15:09:50 [ERROR] nonebot | Failed to import "src.plugins.nonebot_plugin_haruka_bot"
Traceback (most recent call last):
  File "E:\IDEAyes\BOT\CirnoBot-master\bot.py", line 25, in <module>
    cirno_util.load_plugins()
  File "E:\IDEAyes\BOT\CirnoBot-master\cirno_util.py", line 45, in load_plugins
    nonebot.load_plugin(f"src.plugins.{plugin_name}")
  File "E:\IDEAyes\BOT\CirnoBot-master\venv\lib\site-packages\nonebot\plugin\load.py", line 34, in load_plugin
    return manager.load_plugin(module_path)
> File "E:\IDEAyes\BOT\CirnoBot-master\venv\lib\site-packages\nonebot\plugin\manager.py", line 141, in load_plugin
    module = importlib.import_module(name)
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\importlib\__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "E:\IDEAyes\BOT\CirnoBot-master\venv\lib\site-packages\nonebot\plugin\manager.py", line 233, in exec_module
    super().exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "E:\IDEAyes\BOT\CirnoBot-master\src\plugins\nonebot_plugin_haruka_bot\__init__.py", line 10, in <module>
    from . import plugins  # noqa: F401
  File "E:\IDEAyes\BOT\CirnoBot-master\src\plugins\nonebot_plugin_haruka_bot\plugins\__init__.py", line 1, in <module>
    from . import (  # noqa: F401
  File "E:\IDEAyes\BOT\CirnoBot-master\src\plugins\nonebot_plugin_haruka_bot\plugins\at\__init__.py", line 1, in <module>
    from . import at_on, at_off  # noqa: F401
  File "E:\IDEAyes\BOT\CirnoBot-master\src\plugins\nonebot_plugin_haruka_bot\plugins\at\at_on.py", line 3, in <module>
    from nonebot.params import State
ImportError: cannot import name 'State' from 'nonebot.params' (E:\IDEAyes\BOT\CirnoBot-master\venv\lib\site-packages\nonebot\params.py)

[ERROR] Failed to import "src.plugins.nonebot_plugin_haruka_bot"

我在conda里装了一个py3.8.3,又拉了一遍更新,结果:

02-16 01:11:30 [SUCCESS] nonebot | NoneBot is initializing...
02-16 01:11:30 [INFO] nonebot | Current Env: prod
02-16 01:11:30 [SUCCESS] nonebot | Succeeded to import "src.plugins.nonebot_plugin_apscheduler"
02-16 01:11:30 [SUCCESS] nonebot | Succeeded to import "src.plugins.nonebot_plugin_currency_conversion"
02-16 01:11:30 [SUCCESS] nonebot | Succeeded to import "src.plugins.nonebot_plugin_cute_message"
02-16 01:11:30 [SUCCESS] nonebot | Succeeded to import "src.plugins.nonebot_plugin_database_connector"
02-16 01:11:30 [SUCCESS] nonebot | Succeeded to import "src.plugins.nonebot_plugin_image_server"
02-16 01:11:30 [SUCCESS] nonebot | Succeeded to import "src.plugins.nonebot_plugin_kaiheila_check"
02-16 01:11:30 [SUCCESS] nonebot | Succeeded to import "src.plugins.nonebot_plugin_mc_info"
02-16 01:11:31 [SUCCESS] nonebot | Succeeded to import "src.plugins.nonebot_plugin_mc_fun"
02-16 01:11:31 [SUCCESS] nonebot | Succeeded to import "src.plugins.nonebot_plugin_mc_cocdicer"
02-16 01:11:31 [SUCCESS] nonebot | Succeeded to import "src.plugins.nonebot_plugin_message_recorder"
02-16 01:11:32 [SUCCESS] nonebot | Succeeded to import "src.plugins.nonebot_plugin_permission"
02-16 01:11:32 [SUCCESS] nonebot | Succeeded to import "src.plugins.nonebot_plugin_archive"
02-16 01:11:32 [SUCCESS] nonebot | Succeeded to import "src.plugins.nonebot_plugin_help"
/root/miniconda3/envs/mc/lib/python3.8/site-packages/apscheduler/util.py:95: PytzUsageWarning: The zone attribute is specific to pytz's interface; please migrate to a new time zone provider. For more details on how to do so, see https://pytz-deprecation-shim.readthedocs.io/en/latest/migration.html
  if obj.zone == 'local':
02-16 01:11:32 [SUCCESS] nonebot | Succeeded to import "nonebot_plugin_what2eat"
02-16 01:11:32 [SUCCESS] nonebot | Succeeded to import "nonebot_plugin_tarot"
02-16 01:11:33 [ERROR] nonebot | Failed to import "src.plugins.nonebot_plugin_haruka_bot"
Traceback (most recent call last):
  File "/root/miniconda3/envs/mc/bin/nb", line 8, in <module>
    sys.exit(main())
  File "/root/miniconda3/envs/mc/lib/python3.8/site-packages/click/core.py", line 1128, in __call__
    return self.main(*args, **kwargs)
  File "/root/miniconda3/envs/mc/lib/python3.8/site-packages/click/core.py", line 1053, in main
    rv = self.invoke(ctx)
  File "/root/miniconda3/envs/mc/lib/python3.8/site-packages/click/core.py", line 1659, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/root/miniconda3/envs/mc/lib/python3.8/site-packages/click/core.py", line 1395, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/root/miniconda3/envs/mc/lib/python3.8/site-packages/click/core.py", line 754, in invoke
    return __callback(*args, **kwargs)
  File "/root/miniconda3/envs/mc/lib/python3.8/site-packages/nb_cli/commands/main.py", line 30, in run
    run_bot(file, app)
  File "/root/miniconda3/envs/mc/lib/python3.8/site-packages/nb_cli/handlers/deploy.py", line 19, in run_bot
    module = importlib.import_module(module_name)
  File "/root/miniconda3/envs/mc/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 783, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "./bot.py", line 25, in <module>
    cirno_util.load_plugins()
  File "./cirno_util.py", line 45, in load_plugins
    nonebot.load_plugin(f"src.plugins.{plugin_name}")
  File "/root/miniconda3/envs/mc/lib/python3.8/site-packages/nonebot/plugin/load.py", line 30, in load_plugin
    return manager.load_plugin(module_path)
> File "/root/miniconda3/envs/mc/lib/python3.8/site-packages/nonebot/plugin/manager.py", line 92, in load_plugin
    module = importlib.import_module(name)
  File "/root/miniconda3/envs/mc/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "/root/miniconda3/envs/mc/lib/python3.8/site-packages/nonebot/plugin/manager.py", line 181, in exec_module
    super().exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 783, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "./src/plugins/nonebot_plugin_haruka_bot/__init__.py", line 10, in <module>
    from . import plugins  # noqa: F401
  File "./src/plugins/nonebot_plugin_haruka_bot/plugins/__init__.py", line 1, in <module>
    from . import (  # noqa: F401
  File "./src/plugins/nonebot_plugin_haruka_bot/plugins/at/__init__.py", line 1, in <module>
    from . import at_on, at_off  # noqa: F401
  File "./src/plugins/nonebot_plugin_haruka_bot/plugins/at/at_on.py", line 9, in <module>
    from ...database import DB
  File "./src/plugins/nonebot_plugin_haruka_bot/database/__init__.py", line 1, in <module>
    from .db import DB  # noqa: F401
  File "./src/plugins/nonebot_plugin_haruka_bot/database/db.py", line 304, in <module>
    get_driver().on_shutdown(Tortoise.close_connections)
AttributeError: type object 'Tortoise' has no attribute 'close_connections'
02-16 01:11:33 [SUCCESS] nonebot | Running NoneBot...
02-16 01:11:33 [INFO] uvicorn | Started server process [357544]
02-16 01:11:33 [INFO] uvicorn | Waiting for application startup.
/root/miniconda3/envs/mc/lib/python3.8/site-packages/apscheduler/triggers/cron/__init__.py:159: PytzUsageWarning: The localize method is no longer necessary, as this time zone supports the fold attribute (PEP 495). For more details on migrating to a PEP 495-compliant implementation, see https://pytz-deprecation-shim.readthedocs.io/en/latest/migration.html
  return self.timezone.localize(datetime(**values))
02-16 01:11:33 [INFO] src | Scheduler Started
02-16 01:11:33 [WARNING] src | 端口被占用,可能原因为图片存储服务器未正常退出,不再重复创建
02-16 01:11:33 [INFO] src | 正在检查 Chromium 更新
02-16 01:11:33 [ERROR] uvicorn | Traceback (most recent call last):
  File "/root/miniconda3/envs/mc/lib/python3.8/site-packages/starlette/routing.py", line 621, in lifespan
    async with self.lifespan_context(app):
  File "/root/miniconda3/envs/mc/lib/python3.8/site-packages/starlette/routing.py", line 518, in __aenter__
    await self._router.startup()
  File "/root/miniconda3/envs/mc/lib/python3.8/site-packages/starlette/routing.py", line 598, in startup
    await handler()
  File "./src/plugins/nonebot_plugin_haruka_bot/database/db.py", line 297, in init
    await db.init()
  File "./src/plugins/nonebot_plugin_haruka_bot/database/db.py", line 31, in init
    from . import models  # noqa: F401
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "/root/miniconda3/envs/mc/lib/python3.8/site-packages/nonebot/plugin/manager.py", line 163, in exec_module
    plugin = _new_plugin(self.name, module, self.manager)
  File "/root/miniconda3/envs/mc/lib/python3.8/site-packages/nonebot/plugin/plugin.py", line 97, in _new_plugin
    raise RuntimeError("Plugin already exists! Check your plugin name.")
RuntimeError: Plugin already exists! Check your plugin name.

02-16 01:11:33 [ERROR] uvicorn | Application startup failed. Exiting.
(mc) root@VM-12-12-ubuntu:/home/ubuntu/BOTS/CirnoBot-master (3)/CirnoBot-master# 

error: pip conflict

在py3.8.2和3.9.1的conda虚拟环境都做了测试,可以复现。

INFO: pip is looking at multiple versions of aiofiles to determine which version is compatible with other requirements. This could take a while.
ERROR: Cannot install -r requirements.txt (line 31), -r requirements.txt (line 45), httpx==0.18.2 and httpx[http2,socks]==0.22.0 because these package versions have conflicting dependencies.

The conflict is caused by:
    The user requested httpx==0.18.2
    haruka-bot 1.3.3 depends on httpx<0.19.0 and >=0.18.2
    nb-cli 0.6.5 depends on httpx<1.0.0 and >=0.18.0
    httpx[http2,socks] 0.22.0 depends on httpx 0.22.0 (from http://mirrors.tencentyun.com/pypi/packages/2f/d3/6a990516a43a522a72da356c4a91c03e09c0cddce8106e7e1215c120011f/httpx-0.22.0-py3-none-any.whl#sha256=e35e83d1d2b9b2a609ef367cc4c1e66fd80b750348b20cc9e19d1952fc2ca3f6 (from http://mirrors.tencentyun.com/pypi/simple/httpx/) (requires-python:>=3.6))

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/user_guide/#fixing-conflicting-dependencies

帮助插件报错`

08-30 21:46:42 [ERROR] nonebot | Running Matcher(type='message', module=src.plugins.nonebot_plugin_help) failed.
Traceback (most recent call last):
  File "D:\BOT\CirnoBot\bot.py", line 28, in <module>
    nonebot.run()
  File "D:\BOT\CirnoBot\venv\Lib\site-packages\nonebot\__init__.py", line 333, in run
    get_driver().run(*args, **kwargs)
  File "D:\BOT\CirnoBot\venv\Lib\site-packages\nonebot\drivers\fastapi.py", line 199, in run
    uvicorn.run(
  File "D:\BOT\CirnoBot\venv\Lib\site-packages\uvicorn\main.py", line 569, in run
    server.run()
  File "D:\BOT\CirnoBot\venv\Lib\site-packages\uvicorn\server.py", line 60, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "C:\Python311\Lib\asyncio\runners.py", line 190, in run
    return runner.run(main)
  File "C:\Python311\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
  File "C:\Python311\Lib\asyncio\base_events.py", line 640, in run_until_complete
    self.run_forever()
  File "C:\Python311\Lib\asyncio\windows_events.py", line 321, in run_forever
    super().run_forever()
  File "C:\Python311\Lib\asyncio\base_events.py", line 607, in run_forever
    self._run_once()
  File "C:\Python311\Lib\asyncio\base_events.py", line 1922, in _run_once
    handle._run()
  File "C:\Python311\Lib\asyncio\events.py", line 80, in _run
    self._context.run(self._callback, *self._args)
  File "D:\BOT\CirnoBot\venv\Lib\site-packages\nonebot\message.py", line 467, in check_and_run_matcher
    await _run_matcher(
> File "D:\BOT\CirnoBot\venv\Lib\site-packages\nonebot\message.py", line 419, in _run_matcher
    await matcher.run(bot, event, state, stack, dependency_cache)
  File "D:\BOT\CirnoBot\venv\Lib\site-packages\nonebot\internal\matcher\matcher.py", line 759, in run
    await self.simple_run(bot, event, state, stack, dependency_cache)
  File "D:\BOT\CirnoBot\venv\Lib\site-packages\nonebot\internal\matcher\matcher.py", line 734, in simple_run
    await handler(
  File "D:\BOT\CirnoBot\venv\Lib\site-packages\nonebot\dependencies\__init__.py", line 108, in __call__
    return await cast(Callable[..., Awaitable[R]], self.call)(**values)
  File "D:\BOT\CirnoBot\src\plugins\nonebot_plugin_help\__init__.py", line 11, in _help_image
    await help_image.finish(Message(MessageSegment.image(await get_help())))
  File "D:\BOT\CirnoBot\src\plugins\nonebot_plugin_help\generate_help_image.py", line 110, in get_help
    return await make_plugins_image(new_list)
  File "D:\BOT\CirnoBot\src\plugins\nonebot_plugin_help\generate_help_image.py", line 75, in make_plugins_image
    plugin_image_list.append(make_single_plugin_image(plugins_list[i], i))
  File "D:\BOT\CirnoBot\src\plugins\nonebot_plugin_help\generate_help_image.py", line 28, in make_single_plugin_image
    if measure_length(message_preprocessed + ch, text_font) > description_box_width:
  File "D:\BOT\CirnoBot\src\plugins\nonebot_plugin_help\generate_help_image.py", line 14, in measure_length
    width, height = font.getsize(line)
AttributeError: 'FreeTypeFont' object has no attribute 'getsize'

image

本地连接不上mc服务器,启动后报错关闭

发生情况:机器人和mc是在同一个服务器上面,mc服务器配置插件正常运行,但是bot启动后无法连接端口,报错后被关闭
以下是bot输出日志:

10-09 12:44:35 [SUCCESS] nonebot | NoneBot is initializing...
10-09 12:44:35 [INFO] nonebot | Current Env: prod
10-09 12:44:35 [SUCCESS] nonebot | Succeeded to import "src.plugins.nonebot_plugin_apscheduler"
10-09 12:44:35 [SUCCESS] nonebot | Succeeded to import "src.plugins.nonebot_plugin_database_connector"
10-09 12:44:35 [SUCCESS] nonebot | Succeeded to import "src.plugins.nonebot_plugin_image_server"
10-09 12:44:35 [SUCCESS] nonebot | Succeeded to import "src.plugins.nonebot_plugin_mc_info"
10-09 12:44:35 [SUCCESS] nonebot | Succeeded to import "src.plugins.nonebot_plugin_mc_fun"
10-09 12:44:35 [SUCCESS] nonebot | Succeeded to import "src.plugins.nonebot_plugin_mc_cocdicer"
10-09 12:44:35 [SUCCESS] nonebot | Succeeded to import "src.plugins.nonebot_plugin_message_recorder"
10-09 12:44:35 [SUCCESS] nonebot | Succeeded to import "src.plugins.nonebot_plugin_permission"
10-09 12:44:35 [SUCCESS] nonebot | Succeeded to import "src.plugins.nonebot_plugin_help"
10-09 12:44:35 [SUCCESS] nonebot | Running NoneBot...
10-09 12:44:35 [INFO] uvicorn | Started server process [128874]
10-09 12:44:35 [INFO] uvicorn | Waiting for application startup.
10-09 12:44:35 [INFO] src | Scheduler Started
10-09 12:44:35 [INFO] src | Connect to Sqlite
10-09 12:44:35 [WARNING] src | 端口被占用,可能原因为图片存储服务器未正常退出,不再重复创建
10-09 12:44:41 [WARNING] src | Connect to Minecraft server: 33333 failed! Please check config.
10-09 12:44:46 [ERROR] uvicorn | Traceback (most recent call last):
  File "/usr/local/lib/python3.10/dist-packages/httpcore/backends/asyncio.py", line 101, in connect_tcp
    stream: anyio.abc.ByteStream = await anyio.connect_tcp(
  File "/usr/local/lib/python3.10/dist-packages/anyio/_core/_sockets.py", line 175, in connect_tcp
    async with create_task_group() as tg:
  File "/usr/local/lib/python3.10/dist-packages/anyio/_backends/_asyncio.py", line 574, in __aexit__
    raise exceptions[0]
  File "/usr/local/lib/python3.10/dist-packages/anyio/_core/_sockets.py", line 127, in try_connect
    stream = await asynclib.connect_tcp(remote_host, remote_port, local_address)
  File "/usr/local/lib/python3.10/dist-packages/anyio/_backends/_asyncio.py", line 1518, in connect_tcp
    await get_running_loop().create_connection(StreamProtocol, host, port,
  File "uvloop/loop.pyx", line 2014, in create_connection
  File "uvloop/loop.pyx", line 2001, in uvloop.loop.Loop.create_connection
asyncio.exceptions.CancelledError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.10/dist-packages/httpcore/_exceptions.py", line 8, in map_exceptions
    yield
  File "/usr/local/lib/python3.10/dist-packages/httpcore/backends/asyncio.py", line 100, in connect_tcp
    with anyio.fail_after(timeout):
  File "/usr/local/lib/python3.10/dist-packages/anyio/_core/_tasks.py", line 103, in __exit__
    raise TimeoutError
TimeoutError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.10/dist-packages/httpx/_transports/default.py", line 60, in map_httpcore_exceptions
    yield
  File "/usr/local/lib/python3.10/dist-packages/httpx/_transports/default.py", line 353, in handle_async_request
    resp = await self._pool.handle_async_request(req)
  File "/usr/local/lib/python3.10/dist-packages/httpcore/_async/connection_pool.py", line 253, in handle_async_request
    raise exc
  File "/usr/local/lib/python3.10/dist-packages/httpcore/_async/connection_pool.py", line 237, in handle_async_request
    response = await connection.handle_async_request(request)
  File "/usr/local/lib/python3.10/dist-packages/httpcore/_async/connection.py", line 86, in handle_async_request
    raise exc
  File "/usr/local/lib/python3.10/dist-packages/httpcore/_async/connection.py", line 63, in handle_async_request
    stream = await self._connect(request)
  File "/usr/local/lib/python3.10/dist-packages/httpcore/_async/connection.py", line 111, in _connect
    stream = await self._network_backend.connect_tcp(**kwargs)
  File "/usr/local/lib/python3.10/dist-packages/httpcore/backends/auto.py", line 23, in connect_tcp
    return await self._backend.connect_tcp(
  File "/usr/local/lib/python3.10/dist-packages/httpcore/backends/asyncio.py", line 99, in connect_tcp
    with map_exceptions(exc_map):
  File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
    self.gen.throw(typ, value, traceback)
  File "/usr/local/lib/python3.10/dist-packages/httpcore/_exceptions.py", line 12, in map_exceptions
    raise to_exc(exc)
httpcore.ConnectTimeout

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/local/lib/python3.10/dist-packages/starlette/routing.py", line 621, in lifespan
    async with self.lifespan_context(app):
  File "/usr/local/lib/python3.10/dist-packages/starlette/routing.py", line 518, in __aenter__
    await self._router.startup()
  File "/usr/local/lib/python3.10/dist-packages/starlette/routing.py", line 598, in startup
    await handler()
  File "/root/bot/CirnoBot-master/./src/plugins/nonebot_plugin_mc_fun/__init__.py", line 26, in init
    await check_server()
  File "/root/bot/CirnoBot-master/./src/plugins/nonebot_plugin_mc_fun/util.py", line 96, in check_server
    server_plugins = await server.get_plugins()
  File "/root/bot/CirnoBot-master/./src/plugins/nonebot_plugin_mc_info/connect.py", line 385, in get_plugins
    response = await client.get(f"http://{self.server_uri}/v1/plugins", headers={"key": self.auth_key})
  File "/usr/local/lib/python3.10/dist-packages/httpx/_client.py", line 1729, in get
    return await self.request(
  File "/usr/local/lib/python3.10/dist-packages/httpx/_client.py", line 1506, in request
    return await self.send(request, auth=auth, follow_redirects=follow_redirects)
  File "/usr/local/lib/python3.10/dist-packages/httpx/_client.py", line 1593, in send
    response = await self._send_handling_auth(
  File "/usr/local/lib/python3.10/dist-packages/httpx/_client.py", line 1621, in _send_handling_auth
    response = await self._send_handling_redirects(
  File "/usr/local/lib/python3.10/dist-packages/httpx/_client.py", line 1658, in _send_handling_redirects
    response = await self._send_single_request(request)
  File "/usr/local/lib/python3.10/dist-packages/httpx/_client.py", line 1695, in _send_single_request
    response = await transport.handle_async_request(request)
  File "/usr/local/lib/python3.10/dist-packages/httpx/_transports/default.py", line 352, in handle_async_request
    with map_httpcore_exceptions():
  File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
    self.gen.throw(typ, value, traceback)
  File "/usr/local/lib/python3.10/dist-packages/httpx/_transports/default.py", line 77, in map_httpcore_exceptions
    raise mapped_exc(message) from exc
httpx.ConnectTimeout

10-09 12:44:46 [ERROR] uvicorn | Application startup failed. Exiting.
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/dist-packages/websockets/legacy/client.py", line 654, in __await_impl__
    transport, protocol = await self._create_connection()
  File "uvloop/loop.pyx", line 2014, in create_connection
  File "uvloop/loop.pyx", line 2001, in uvloop.loop.Loop.create_connection
asyncio.exceptions.CancelledError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.10/asyncio/tasks.py", line 456, in wait_for
    return fut.result()
asyncio.exceptions.CancelledError

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/lib/python3.10/threading.py", line 1009, in _bootstrap_inner
    self.run()
  File "/root/bot/CirnoBot-master/./src/plugins/nonebot_plugin_mc_info/connect.py", line 148, in run
    asyncio.run(self.fun())
  File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "uvloop/loop.pyx", line 1501, in uvloop.loop.Loop.run_until_complete
  File "/root/bot/CirnoBot-master/./src/plugins/nonebot_plugin_mc_info/connect.py", line 171, in _ws_connect
    async with websockets.connect(f"ws://{self.server_uri}/v1/ws/console",
  File "/usr/local/lib/python3.10/dist-packages/websockets/legacy/client.py", line 633, in __aenter__
    return await self
  File "/usr/local/lib/python3.10/dist-packages/websockets/legacy/client.py", line 650, in __await_impl_timeout__
    return await asyncio.wait_for(self.__await_impl__(), self.open_timeout)
  File "/usr/lib/python3.10/asyncio/tasks.py", line 458, in wait_for
    raise exceptions.TimeoutError() from exc
asyncio.exceptions.TimeoutError

bot配置文件:
image
image

mc服务器servertap插件配置:
image

mc服务器端是mohist端,求助我需要怎么做才能连接

无法启动

ella@Alinda  ~/CirnoBot   master  nb run 02-16 20:50:02 [SUCCESS] nonebot | NoneBot is initializing...
02-16 20:50:02 [INFO] nonebot | Current Env: prod
02-16 20:50:02 [SUCCESS] nonebot | Succeeded to import "src.plugins.nonebot_plugin_apscheduler"
02-16 20:50:02 [SUCCESS] nonebot | Succeeded to import "src.plugins.nonebot_plugin_currency_conversion"
02-16 20:50:02 [SUCCESS] nonebot | Succeeded to import "src.plugins.nonebot_plugin_cute_message"
02-16 20:50:02 [SUCCESS] nonebot | Succeeded to import "src.plugins.nonebot_plugin_database_connector"
02-16 20:50:02 [SUCCESS] nonebot | Succeeded to import "src.plugins.nonebot_plugin_image_server"
02-16 20:50:02 [SUCCESS] nonebot | Succeeded to import "src.plugins.nonebot_plugin_kaiheila_check"
02-16 20:50:02 [SUCCESS] nonebot | Succeeded to import "src.plugins.nonebot_plugin_mc_info"
02-16 20:50:03 [SUCCESS] nonebot | Succeeded to import "src.plugins.nonebot_plugin_mc_fun"
02-16 20:50:04 [SUCCESS] nonebot | Succeeded to import "src.plugins.nonebot_plugin_mc_cocdicer"
02-16 20:50:04 [SUCCESS] nonebot | Succeeded to import "src.plugins.nonebot_plugin_message_recorder"
02-16 20:50:04 [SUCCESS] nonebot | Succeeded to import "src.plugins.nonebot_plugin_permission"
02-16 20:50:04 [SUCCESS] nonebot | Succeeded to import "src.plugins.nonebot_plugin_archive"
02-16 20:50:04 [SUCCESS] nonebot | Succeeded to import "src.plugins.nonebot_plugin_help"
02-16 20:50:05 [SUCCESS] nonebot | Succeeded to import "nonebot_plugin_gocqhttp"
/usr/lib/python3.10/site-packages/apscheduler/util.py:95: PytzUsageWarning: The zone attribute is specific to pytz's interface; please migrate to a new time zone provider. For more details on how to do so, see https://pytz-deprecation-shim.readthedocs.io/en/latest/migration.html
if obj.zone == 'local':
02-16 20:50:06 [SUCCESS] nonebot | Succeeded to import "nonebot_plugin_what2eat"
02-16 20:50:06 [SUCCESS] nonebot | Succeeded to import "nonebot_plugin_tarot"
02-16 20:50:06 [ERROR] nonebot | Failed to import "src.plugins.nonebot_plugin_haruka_bot"
Traceback (most recent call last):
File "/usr/bin/nb", line 8, in
sys.exit(main())
File "/usr/lib/python3.10/site-packages/click/core.py", line 1128, in call
return self.main(*args, **kwargs)
File "/usr/lib/python3.10/site-packages/click/core.py", line 1053, in main
rv = self.invoke(ctx)
File "/usr/lib/python3.10/site-packages/click/core.py", line 1659, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/lib/python3.10/site-packages/click/core.py", line 1395, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/lib/python3.10/site-packages/click/core.py", line 754, in invoke
return __callback(*args, **kwargs)
File "/usr/lib/python3.10/site-packages/nb_cli/commands/main.py", line 30, in run run_bot(file, app)
File "/usr/lib/python3.10/site-packages/nb_cli/handlers/deploy.py", line 19, in run_bot
module = importlib.import_module(module_name)
File "/usr/lib/python3.10/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "/home/ella/CirnoBot/./bot.py", line 25, in
cirno_util.load_plugins()
File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "/home/ella/CirnoBot/./bot.py", line 25, in
cirno_util.load_plugins()
File "/home/ella/CirnoBot/./cirno_util.py", line 45, in load_plugins
nonebot.load_plugin(f"src.plugins.{plugin_name}")
File "/usr/lib/python3.10/site-packages/nonebot/plugin/load.py", line 30, in load_plugin
return manager.load_plugin(module_path)

File "/usr/lib/python3.10/site-packages/nonebot/plugin/manager.py", line 92, in load_plugin
module = importlib.import_module(name)
File "/usr/lib/python3.10/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "/usr/lib/python3.10/site-packages/nonebot/plugin/manager.py", line 181, in exec_module
super().exec_module(module)
File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "/home/ella/CirnoBot/./src/plugins/nonebot_plugin_haruka_bot/init.py", line 10, in
from . import plugins # noqa: F401
File "/home/ella/CirnoBot/./src/plugins/nonebot_plugin_haruka_bot/plugins/init.py", line 1, in
from . import ( # noqa: F401
File "/home/ella/CirnoBot/./src/plugins/nonebot_plugin_haruka_bot/plugins/at/init.py", line 1, in
from . import at_on, at_off # noqa: F401
File "/home/ella/CirnoBot/./src/plugins/nonebot_plugin_haruka_bot/plugins/at/at_on.py", line 9, in
from ...database import DB
File "/home/ella/CirnoBot/./src/plugins/nonebot_plugin_haruka_bot/database/init.py", line 1, in
from .db import DB # noqa: F401
File "/home/ella/CirnoBot/./src/plugins/nonebot_plugin_haruka_bot/database/db.py", line 12, in
from ..utils import get_path
File "/home/ella/CirnoBot/./src/plugins/nonebot_plugin_haruka_bot/utils/init.py", line 115, in
from .browser import get_dynamic_screenshot # noqa
File "/home/ella/CirnoBot/./src/plugins/nonebot_plugin_haruka_bot/utils/browser.py", line 9, in
from playwright.async_api import Browser, async_playwright
ModuleNotFoundError: No module named 'playwright.async_api'
02-16 20:50:06 [SUCCESS] nonebot | Running NoneBot...
02-16 20:50:06 [INFO] uvicorn | Started server process [645376]
02-16 20:50:06 [INFO] uvicorn | Waiting for application startup.
/usr/lib/python3.10/site-packages/apscheduler/triggers/cron/init.py:159: PytzUsageWarning: The localize method is no longer necessary, as this time zone supports the fold attribute (PEP 495). For more details on migrating to a PEP 495-compliant implementation, see https://pytz-deprecation-shim.readthedocs.io/en/latest/migration.html
return self.timezone.localize(datetime(**values))
/usr/lib/python3.10/site-packages/apscheduler/triggers/cron/init.py:146: PytzUsageWarning: The normalize method is no longer necessary, as this time zone supports the fold attribute (PEP 495). For more details on migrating to a PEP 495-compliant implementation, see https://pytz-deprecation-shim.readthedocs.io/en/latest/migration.html
return self.timezone.normalize(dateval + difference), fieldnum
02-16 20:50:06 [INFO] src | Scheduler Started
02-16 20:50:06 [INFO] src | 图片存储服务器启动成功
02-16 20:50:06 [INFO] nonebot_plugin_gocqhttp | Begin to Download binary from https://download.fastgit.org/Mrs4s/go-cqhttp/releases/latest/download/go-cqhttp_linux_amd64.tar.gz
INFO:waitress:Serving on http://0.0.0.0:4500
02-16 20:50:06 [ERROR] nonebot_plugin_gocqhttp | An error has been caught in function 'startup', process 'MainProcess' (645376), thread 'MainThread' (140229702616896):
Traceback (most recent call last):
File "/usr/bin/nb", line 8, in
sys.exit(main())
File "/usr/lib/python3.10/site-packages/click/core.py", line 1128, in call
return self.main(*args, **kwargs)
File "/usr/lib/python3.10/site-packages/click/core.py", line 1053, in main
rv = self.invoke(ctx)
File "/usr/lib/python3.10/site-packages/click/core.py", line 1659, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/lib/python3.10/site-packages/click/core.py", line 1395, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/lib/python3.10/site-packages/click/core.py", line 754, in invoke
return __callback(*args, **kwargs)
File "/usr/lib/python3.10/site-packages/nb_cli/commands/main.py", line 30, in run run_bot(file, app)
File "/usr/lib/python3.10/site-packages/nb_cli/handlers/deploy.py", line 24, in run_bot
nonebot.run(app=f"{module_name}:{app}")
File "/usr/lib/python3.10/site-packages/nonebot/init.py", line 300, in run
get_driver().run(*args, **kwargs)
File "/usr/lib/python3.10/site-packages/nonebot/drivers/fastapi.py", line 232, in run
uvicorn.run(
File "/home/ella/.local/lib/python3.10/site-packages/uvicorn/main.py", line 447, in run
server.run()
File "/home/ella/.local/lib/python3.10/site-packages/uvicorn/server.py", line 68, in run
return asyncio.run(self.serve(sockets=sockets))
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/home/ella/.local/lib/python3.10/site-packages/uvicorn/lifespan/on.py", line 84, in main
await app(scope, self.receive, self.send)
File "/home/ella/.local/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 75, in call
return await self.app(scope, receive, send)
File "/usr/lib/python3.10/site-packages/fastapi/applications.py", line 208, in call
await super().call(scope, receive, send)
File "/usr/lib/python3.10/site-packages/starlette/applications.py", line 112, in call
await self.middleware_stack(scope, receive, send)
File "/usr/lib/python3.10/site-packages/starlette/middleware/errors.py", line 146, in call
await self.app(scope, receive, send)
File "/usr/lib/python3.10/site-packages/starlette/exceptions.py", line 58, in call
await self.app(scope, receive, send)
File "/usr/lib/python3.10/site-packages/starlette/routing.py", line 645, in call
await self.lifespan(scope, receive, send)
File "/usr/lib/python3.10/site-packages/starlette/routing.py", line 621, in lifespan
async with self.lifespan_context(app):
File "/usr/lib/python3.10/site-packages/starlette/routing.py", line 518, in aenter
await self._router.startup()
File "/usr/lib/python3.10/site-packages/starlette/routing.py", line 598, in startup
await handler()
File "/usr/lib/python3.10/site-packages/nonebot_plugin_gocqhttp/init.py", line 32, in startup
await download_gocq()
File "/usr/lib/python3.10/site-packages/nonebot_plugin_gocqhttp/process/download.py", line 56, in download_gocq
response.raise_for_status()
File "/usr/lib/python3.10/site-packages/httpx/_models.py", line 1510, in raise_for_status
raise HTTPStatusError(message, request=request, response=self)
httpx.HTTPStatusError: Server error '503 Service Temporarily Unavailable' for url 'https://download.fastgit.org/Mrs4s/go-cqhttp/releases/latest/download/go-cqhttp_linux_amd64.tar.gz'
For more information check: https://httpstatuses.com/503
02-16 20:50:06 [ERROR] uvicorn | Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/starlette/routing.py", line 621, in lifespan
async with self.lifespan_context(app):
File "/usr/lib/python3.10/site-packages/starlette/routing.py", line 518, in aenter
await self._router.startup()
File "/usr/lib/python3.10/site-packages/starlette/routing.py", line 598, in startup
await handler()
File "/usr/lib/python3.10/site-packages/nonebot_plugin_gocqhttp/init.py", line 32, in startup
await download_gocq()
File "/home/ella/.local/lib/python3.10/site-packages/loguru/_logger.py", line 1206, in catch_wrapper
return await function(*args, **kwargs)
File "/usr/lib/python3.10/site-packages/nonebot_plugin_gocqhttp/process/download.py", line 56, in download_gocq
response.raise_for_status()
File "/usr/lib/python3.10/site-packages/httpx/_models.py", line 1510, in raise_for_status
raise HTTPStatusError(message, request=request, response=self)
httpx.HTTPStatusError: Server error '503 Service Temporarily Unavailable' for url 'https://download.fastgit.org/Mrs4s/go-cqhttp/releases/latest/download/go-cqhttp_linux_amd64.tar.gz'
For more information check: https://httpstatuses.com/503

02-16 20:50:06 [ERROR] uvicorn | Application startup failed. Exiting.

please help me!

报错:
sqlite3.OperationalError: no such column: true
(求
(谢谢

部分依赖找不到

我已经安装了requirements中的所有依赖,但还是提示包找不到

09-08 05:54:49 [SUCCESS] nonebot | NoneBot is initializing...
09-08 05:54:49 [INFO] nonebot | Current Env: prod
09-08 05:54:49 [SUCCESS] nonebot | Succeeded to import "nonebot_plugin_apscheduler"
09-08 05:54:49 [ERROR] nonebot | Failed to import "nonebot_plugin_cute_message"
Traceback (most recent call last):
  File "bot.py", line 25, in <module>
    cirno_util.load_plugins()
  File "/home/ancares/CirnoBot/cirno_util.py", line 47, in load_plugins
    nonebot.load_plugin(plugin_name)
  File "/home/ancares/CirnoBot/venv/lib/python3.8/site-packages/nonebot/plugin/load.py", line 34, in load_plugin
    return manager.load_plugin(module_path)
> File "/home/ancares/CirnoBot/venv/lib/python3.8/site-packages/nonebot/plugin/manager.py", line 141, in load_plugin
    module = importlib.import_module(name)
  File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 973, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'nonebot_plugin_cute_message'
09-08 05:54:49 [ERROR] nonebot | Failed to import "nonebot_plugin_database_connector"
Traceback (most recent call last):
  File "bot.py", line 25, in <module>
    cirno_util.load_plugins()
  File "/home/ancares/CirnoBot/cirno_util.py", line 47, in load_plugins
    nonebot.load_plugin(plugin_name)
  File "/home/ancares/CirnoBot/venv/lib/python3.8/site-packages/nonebot/plugin/load.py", line 34, in load_plugin
    return manager.load_plugin(module_path)
> File "/home/ancares/CirnoBot/venv/lib/python3.8/site-packages/nonebot/plugin/manager.py", line 141, in load_plugin
    module = importlib.import_module(name)
  File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 973, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'nonebot_plugin_database_connector'
09-08 05:54:49 [ERROR] nonebot | Failed to import "nonebot_plugin_image_server"
Traceback (most recent call last):
  File "bot.py", line 25, in <module>
    cirno_util.load_plugins()
  File "/home/ancares/CirnoBot/cirno_util.py", line 47, in load_plugins
    nonebot.load_plugin(plugin_name)
  File "/home/ancares/CirnoBot/venv/lib/python3.8/site-packages/nonebot/plugin/load.py", line 34, in load_plugin
    return manager.load_plugin(module_path)
> File "/home/ancares/CirnoBot/venv/lib/python3.8/site-packages/nonebot/plugin/manager.py", line 141, in load_plugin
    module = importlib.import_module(name)
  File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 973, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'nonebot_plugin_image_server'
09-08 05:54:49 [ERROR] nonebot | Failed to import "nonebot_plugin_kaiheila_check"
Traceback (most recent call last):
  File "bot.py", line 25, in <module>
    cirno_util.load_plugins()
  File "/home/ancares/CirnoBot/cirno_util.py", line 47, in load_plugins
    nonebot.load_plugin(plugin_name)
  File "/home/ancares/CirnoBot/venv/lib/python3.8/site-packages/nonebot/plugin/load.py", line 34, in load_plugin
    return manager.load_plugin(module_path)
> File "/home/ancares/CirnoBot/venv/lib/python3.8/site-packages/nonebot/plugin/manager.py", line 141, in load_plugin
    module = importlib.import_module(name)
  File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 973, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'nonebot_plugin_kaiheila_check'
09-08 05:54:49 [SUCCESS] nonebot | Succeeded to import "src.plugins.nonebot_plugin_mc_info"
09-08 05:54:49 [SUCCESS] nonebot | Succeeded to import "src.plugins.nonebot_plugin_mc_fun"
09-08 05:54:49 [SUCCESS] nonebot | Succeeded to import "src.plugins.nonebot_plugin_permission"
09-08 05:54:49 [ERROR] nonebot | Failed to import "nonebot_plugin_archive"
Traceback (most recent call last):
  File "bot.py", line 25, in <module>
    cirno_util.load_plugins()
  File "/home/ancares/CirnoBot/cirno_util.py", line 47, in load_plugins
    nonebot.load_plugin(plugin_name)
  File "/home/ancares/CirnoBot/venv/lib/python3.8/site-packages/nonebot/plugin/load.py", line 34, in load_plugin
    return manager.load_plugin(module_path)
> File "/home/ancares/CirnoBot/venv/lib/python3.8/site-packages/nonebot/plugin/manager.py", line 141, in load_plugin
    module = importlib.import_module(name)
  File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 973, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'nonebot_plugin_archive'
09-08 05:54:49 [SUCCESS] nonebot | Succeeded to import "src.plugins.nonebot_plugin_help"
09-08 05:54:50 [SUCCESS] nonebot | Succeeded to import "nonebot_plugin_gocqhttp"
09-08 05:54:50 [ERROR] nonebot | Failed to import "nonebot_plugin_what2eat"
Traceback (most recent call last):
  File "bot.py", line 25, in <module>
    cirno_util.load_plugins()
  File "/home/ancares/CirnoBot/cirno_util.py", line 47, in load_plugins
    nonebot.load_plugin(plugin_name)
  File "/home/ancares/CirnoBot/venv/lib/python3.8/site-packages/nonebot/plugin/load.py", line 34, in load_plugin
    return manager.load_plugin(module_path)
> File "/home/ancares/CirnoBot/venv/lib/python3.8/site-packages/nonebot/plugin/manager.py", line 141, in load_plugin
    module = importlib.import_module(name)
  File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 973, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'nonebot_plugin_what2eat'
09-08 05:54:50 [ERROR] nonebot | Failed to import "nonebot_plugin_tarot"
Traceback (most recent call last):
  File "bot.py", line 25, in <module>
    cirno_util.load_plugins()
  File "/home/ancares/CirnoBot/cirno_util.py", line 47, in load_plugins
    nonebot.load_plugin(plugin_name)
  File "/home/ancares/CirnoBot/venv/lib/python3.8/site-packages/nonebot/plugin/load.py", line 34, in load_plugin
    return manager.load_plugin(module_path)
> File "/home/ancares/CirnoBot/venv/lib/python3.8/site-packages/nonebot/plugin/manager.py", line 141, in load_plugin
    module = importlib.import_module(name)
  File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 973, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'nonebot_plugin_tarot'
09-08 05:54:50 [ERROR] nonebot | Failed to import "nonebot_plugin_haruka_bot"
Traceback (most recent call last):
  File "bot.py", line 25, in <module>
    cirno_util.load_plugins()
  File "/home/ancares/CirnoBot/cirno_util.py", line 47, in load_plugins
    nonebot.load_plugin(plugin_name)
  File "/home/ancares/CirnoBot/venv/lib/python3.8/site-packages/nonebot/plugin/load.py", line 34, in load_plugin
    return manager.load_plugin(module_path)
> File "/home/ancares/CirnoBot/venv/lib/python3.8/site-packages/nonebot/plugin/manager.py", line 141, in load_plugin
    module = importlib.import_module(name)
  File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 973, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'nonebot_plugin_haruka_bot'
09-08 05:54:50 [SUCCESS] nonebot | Running NoneBot...
09-08 05:54:50 [INFO] uvicorn | Started server process [20472]
09-08 05:54:50 [INFO] uvicorn | Waiting for application startup.
09-08 05:54:50 [INFO] nonebot_plugin_apscheduler | Scheduler Started

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.