Closed iiSlash closed 2 years ago
系统版本:Ubuntu 20.04
真寻版本:0.1.6.3
错误截图
08-27 01:14:20 [ERROR] nonebot | Failed to import "bilibili_sub" Traceback (most recent call last): File "bot.py", line 14, in <module> nonebot.load_plugins("plugins") File "/usr/local/lib/python3.8/dist-packages/nonebot/plugin/load.py", line 39, in load_plugins return manager.load_all_plugins() File "/usr/local/lib/python3.8/dist-packages/nonebot/plugin/manager.py", line 128, in load_all_plugins return set( File "/usr/local/lib/python3.8/dist-packages/nonebot/plugin/manager.py", line 129, in <genexpr> filter(None, (self.load_plugin(name) for name in self.list_plugins())) > File "/usr/local/lib/python3.8/dist-packages/nonebot/plugin/manager.py", line 106, in load_plugin module = importlib.import_module( 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 975, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 671, in _load_unlocked File "/usr/local/lib/python3.8/dist-packages/nonebot/plugin/manager.py", line 194, in exec_module super().exec_module(module) File "<frozen importlib._bootstrap_external>", line 848, in exec_module File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed File "/home/zhenxun_bot/plugins/bilibili_sub/__init__.py", line 7, in <module> from .data_source import ( File "/home/zhenxun_bot/plugins/bilibili_sub/data_source.py", line 1, in <module> from bilireq.exceptions import ResponseCodeError ModuleNotFoundError: No module named 'bilireq'
08-27 01:14:20 [ERROR] nonebot | Failed to import "parse_bilibili_json" Traceback (most recent call last): File "bot.py", line 14, in <module> nonebot.load_plugins("plugins") File "/usr/local/lib/python3.8/dist-packages/nonebot/plugin/load.py", line 39, in load_plugins return manager.load_all_plugins() File "/usr/local/lib/python3.8/dist-packages/nonebot/plugin/manager.py", line 128, in load_all_plugins return set( File "/usr/local/lib/python3.8/dist-packages/nonebot/plugin/manager.py", line 129, in <genexpr> filter(None, (self.load_plugin(name) for name in self.list_plugins())) > File "/usr/local/lib/python3.8/dist-packages/nonebot/plugin/manager.py", line 106, in load_plugin module = importlib.import_module( 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 975, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 671, in _load_unlocked File "/usr/local/lib/python3.8/dist-packages/nonebot/plugin/manager.py", line 194, in exec_module super().exec_module(module) File "<frozen importlib._bootstrap_external>", line 848, in exec_module File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed File "/home/zhenxun_bot/plugins/parse_bilibili_json.py", line 17, in <module> from bilireq import video ModuleNotFoundError: No module named 'bilireq'
08-27 01:14:21 [ERROR] uvicorn | Traceback (most recent call last): File "/usr/local/lib/python3.8/dist-packages/starlette/routing.py", line 621, in lifespan async with self.lifespan_context(app): File "/usr/local/lib/python3.8/dist-packages/starlette/routing.py", line 518, in __aenter__ await self._router.startup() File "/usr/local/lib/python3.8/dist-packages/starlette/routing.py", line 598, in startup await handler() File "/home/zhenxun_bot/basic_plugins/init_plugin_config/__init__.py", line 39, in _ init_plugins_settings(DATA_PATH) File "/home/zhenxun_bot/basic_plugins/init_plugin_config/init_plugins_settings.py", line 39, in init_plugins_settings metadata = _plugin.metadata AttributeError: 'Plugin' object has no attribute 'metadata' 08-27 01:14:21 [ERROR] uvicorn | Application startup failed. Exiting.
日志截图
root@VM-16-17-ubuntu:/home/zhenxun_bot# python3 bot.py 08-27 01:14:10 [SUCCESS] nonebot | NoneBot is initializing... 08-27 01:14:10 [INFO] nonebot | Current Env: dev 08-27 01:14:10 [SUCCESS] nonebot | Succeeded to import "nonebot_plugin_apscheduler" 08-27 01:14:11 [SUCCESS] nonebot | Succeeded to import "ban" 08-27 01:14:12 [SUCCESS] nonebot | Succeeded to import "admin_help" 08-27 01:14:12 [SUCCESS] nonebot | Succeeded to import "scripts" 08-27 01:14:12 [SUCCESS] nonebot | Succeeded to import "help" 08-27 01:14:12 [SUCCESS] nonebot | Succeeded to import "group_handle" 08-27 01:14:12 [SUCCESS] nonebot | Succeeded to import "broadcast" 08-27 01:14:12 [SUCCESS] nonebot | Succeeded to import "my_props" 08-27 01:14:12 [SUCCESS] nonebot | Succeeded to import "reset_today_gold" 08-27 01:14:12 [SUCCESS] nonebot | Succeeded to import "use" 08-27 01:14:12 [SUCCESS] nonebot | Succeeded to import "shop_handle" 08-27 01:14:13 [SUCCESS] nonebot | Succeeded to import "shop_handle" 08-27 01:14:13 [SUCCESS] nonebot | Succeeded to import "buy" 08-27 01:14:13 [SUCCESS] nonebot | Succeeded to import "gold" 08-27 01:14:13 [SUCCESS] nonebot | Succeeded to import "shop" 08-27 01:14:13 [SUCCESS] nonebot | Succeeded to import "hooks" 08-27 01:14:13 [SUCCESS] nonebot | Succeeded to import "super_help" 08-27 01:14:13 [SUCCESS] nonebot | Succeeded to import "reload_setting" 08-27 01:14:13 [SUCCESS] nonebot | Succeeded to import "clear_data" 08-27 01:14:13 [SUCCESS] nonebot | Succeeded to import "bot_friend_group" 08-27 01:14:13 [SUCCESS] nonebot | Succeeded to import "manager_group" 08-27 01:14:13 [SUCCESS] nonebot | Succeeded to import "exec_sql" 08-27 01:14:13 [SUCCESS] nonebot | Succeeded to import "set_admin_permissions" 08-27 01:14:13 [SUCCESS] nonebot | Succeeded to import "update_friend_group_info" 08-27 01:14:13 [SUCCESS] nonebot | Succeeded to import "super_task_switch" 08-27 01:14:13 [SUCCESS] nonebot | Succeeded to import "super_cmd" 08-27 01:14:13 [SUCCESS] nonebot | Succeeded to import "plugin_shop" 08-27 01:14:13 [SUCCESS] nonebot | Succeeded to import "update_info" 08-27 01:14:13 [SUCCESS] nonebot | Succeeded to import "invite_manager" 08-27 01:14:14 [SUCCESS] nonebot | Succeeded to import "chat_message_handle" 08-27 01:14:14 [SUCCESS] nonebot | Succeeded to import "chat_message" 08-27 01:14:14 [SUCCESS] nonebot | Succeeded to import "chat_history" 08-27 01:14:14 [SUCCESS] nonebot | Succeeded to import "nickname" 08-27 01:14:14 [SUCCESS] nonebot | Succeeded to import "init_plugin_config" 08-27 01:14:14 [SUCCESS] nonebot | Succeeded to import "apscheduler" 08-27 01:14:14 [SUCCESS] nonebot | Succeeded to import "custom_welcome_message" 08-27 01:14:14 [SUCCESS] nonebot | Succeeded to import "admin_config" 08-27 01:14:14 [SUCCESS] nonebot | Succeeded to import "switch_rule" 08-27 01:14:14 [SUCCESS] nonebot | Succeeded to import "update_group_member_info" 08-27 01:14:14 [SUCCESS] nonebot | Succeeded to import "rule" 08-27 01:14:14 [SUCCESS] nonebot | Succeeded to import "timing_task" 08-27 01:14:14 [SUCCESS] nonebot | Succeeded to import "admin_bot_manage" 08-27 01:14:14 [SUCCESS] nonebot | Succeeded to import "weather" 08-27 01:14:14 [SUCCESS] nonebot | Succeeded to import "search_image" 08-27 01:14:14 [SUCCESS] nonebot | Succeeded to import "group_welcome_msg" 08-27 01:14:14 [SUCCESS] nonebot | Succeeded to import "update_setu" 08-27 01:14:14 [SUCCESS] nonebot | Succeeded to import "send_setu" 08-27 01:14:14 [SUCCESS] nonebot | Succeeded to import "send_setu_" 08-27 01:14:15 [SUCCESS] nonebot | Succeeded to import "search_anime" 08-27 01:14:15 [SUCCESS] nonebot | Succeeded to import "white2black_image" 08-27 01:14:15 [SUCCESS] nonebot | Succeeded to import "withdraw" 08-27 01:14:15 [SUCCESS] nonebot | Succeeded to import "pid_search" 08-27 01:14:15 [SUCCESS] nonebot | Succeeded to import "nbnhhsh" 08-27 01:14:15 [SUCCESS] nonebot | Succeeded to import "pixiv_rank_search" 08-27 01:14:15 [SUCCESS] nonebot | Succeeded to import "dialogue" 08-27 01:14:15 [SUCCESS] nonebot | Succeeded to import "update_gocqhttp" 08-27 01:14:15 [SUCCESS] nonebot | Succeeded to import "aconfig" 08-27 01:14:15 [SUCCESS] nonebot | Succeeded to import "check" 08-27 01:14:15 [SUCCESS] nonebot | Succeeded to import "word_handle" 08-27 01:14:15 [SUCCESS] nonebot | Succeeded to import "message_handle" 08-27 01:14:15 [SUCCESS] nonebot | Succeeded to import "word_bank" 08-27 01:14:15 [SUCCESS] nonebot | Succeeded to import "check_zhenxun_update" 08-27 01:14:15 [SUCCESS] nonebot | Succeeded to import "translate" 08-27 01:14:15 [SUCCESS] nonebot | Succeeded to import "coser" 08-27 01:14:15 [SUCCESS] nonebot | Succeeded to import "fake_msg" 08-27 01:14:16 [SUCCESS] nonebot | Succeeded to import "word_clouds" 08-27 01:14:16 [SUCCESS] nonebot | Succeeded to import "one_friend" 08-27 01:14:16 [SUCCESS] nonebot | Succeeded to import "my_info" 08-27 01:14:16 [SUCCESS] nonebot | Succeeded to import "roll" 08-27 01:14:16 [SUCCESS] nonebot | Succeeded to import "update_picture" 08-27 01:14:16 [SUCCESS] nonebot | Succeeded to import "jitang" 08-27 01:14:16 [SUCCESS] nonebot | Succeeded to import "comments_163" 08-27 01:14:16 [SUCCESS] nonebot | Succeeded to import "poetry" 08-27 01:14:16 [SUCCESS] nonebot | Succeeded to import "cover" 08-27 01:14:16 [SUCCESS] nonebot | Succeeded to import "alapi" 08-27 01:14:16 [SUCCESS] nonebot | Succeeded to import "what_anime" 08-27 01:14:16 [SUCCESS] nonebot | Succeeded to import "send_dinggong_voice" 08-27 01:14:17 [SUCCESS] nonebot | Succeeded to import "bt" 08-27 01:14:17 [SUCCESS] nonebot | Succeeded to import "luxun" 08-27 01:14:17 [SUCCESS] nonebot | Succeeded to import "music" 08-27 01:14:17 [SUCCESS] nonebot | Succeeded to import "yiqing" 08-27 01:14:17 [SUCCESS] nonebot | Succeeded to import "query_resource_points" 08-27 01:14:17 [SUCCESS] nonebot | Succeeded to import "query_memo" 08-27 01:14:17 [SUCCESS] nonebot | Succeeded to import "query_role" 08-27 01:14:17 [SUCCESS] nonebot | Succeeded to import "bind" 08-27 01:14:17 [SUCCESS] nonebot | Succeeded to import "resin_remind" 08-27 01:14:17 [SUCCESS] nonebot | Succeeded to import "reset_today_query_user_data" 08-27 01:14:17 [SUCCESS] nonebot | Succeeded to import "genshin_sign" 08-27 01:14:17 [SUCCESS] nonebot | Succeeded to import "mihoyobbs_sign" 08-27 01:14:17 [SUCCESS] nonebot | Succeeded to import "query_user" 08-27 01:14:17 [SUCCESS] nonebot | Succeeded to import "material_remind" 08-27 01:14:17 [SUCCESS] nonebot | Succeeded to import "almanac" 08-27 01:14:17 [SUCCESS] nonebot | Succeeded to import "genshin" 08-27 01:14:17 [SUCCESS] nonebot | Succeeded to import "about" 08-27 01:14:17 [SUCCESS] nonebot | Succeeded to import "poke" 08-27 01:14:17 [SUCCESS] nonebot | Succeeded to import "wbtop" 08-27 01:14:17 [SUCCESS] nonebot | Succeeded to import "pix" 08-27 01:14:18 [SUCCESS] nonebot | Succeeded to import "pix_show_info" 08-27 01:14:18 [SUCCESS] nonebot | Succeeded to import "pix_update" 08-27 01:14:18 [SUCCESS] nonebot | Succeeded to import "pix_pass_del_keyword" 08-27 01:14:18 [SUCCESS] nonebot | Succeeded to import "pix_add_keyword" 08-27 01:14:18 [SUCCESS] nonebot | Succeeded to import "pix_gallery" 08-27 01:14:18 [SUCCESS] nonebot | Succeeded to import "sign_in" 08-27 01:14:18 [SUCCESS] nonebot | Succeeded to import "open_cases" 08-27 01:14:18 [SUCCESS] nonebot | Succeeded to import "fudu" 08-27 01:14:18 [SUCCESS] nonebot | Succeeded to import "move_image" 08-27 01:14:18 [SUCCESS] nonebot | Succeeded to import "send_image" 08-27 01:14:18 [SUCCESS] nonebot | Succeeded to import "delete_image" 08-27 01:14:18 [SUCCESS] nonebot | Succeeded to import "upload_image" 08-27 01:14:18 [SUCCESS] nonebot | Succeeded to import "image_management" 08-27 01:14:20 [SUCCESS] nonebot | Succeeded to import "draw_card" 08-27 01:14:20 [SUCCESS] nonebot | Succeeded to import "web_ui" 08-27 01:14:20 [ERROR] nonebot | Failed to import "bilibili_sub" Traceback (most recent call last): File "bot.py", line 14, in <module> nonebot.load_plugins("plugins") File "/usr/local/lib/python3.8/dist-packages/nonebot/plugin/load.py", line 39, in load_plugins return manager.load_all_plugins() File "/usr/local/lib/python3.8/dist-packages/nonebot/plugin/manager.py", line 128, in load_all_plugins return set( File "/usr/local/lib/python3.8/dist-packages/nonebot/plugin/manager.py", line 129, in <genexpr> filter(None, (self.load_plugin(name) for name in self.list_plugins())) > File "/usr/local/lib/python3.8/dist-packages/nonebot/plugin/manager.py", line 106, in load_plugin module = importlib.import_module( 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 975, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 671, in _load_unlocked File "/usr/local/lib/python3.8/dist-packages/nonebot/plugin/manager.py", line 194, in exec_module super().exec_module(module) File "<frozen importlib._bootstrap_external>", line 848, in exec_module File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed File "/home/zhenxun_bot/plugins/bilibili_sub/__init__.py", line 7, in <module> from .data_source import ( File "/home/zhenxun_bot/plugins/bilibili_sub/data_source.py", line 1, in <module> from bilireq.exceptions import ResponseCodeError ModuleNotFoundError: No module named 'bilireq' 08-27 01:14:20 [SUCCESS] nonebot | Succeeded to import "ai" 08-27 01:14:20 [SUCCESS] nonebot | Succeeded to import "russian" 08-27 01:14:20 [SUCCESS] nonebot | Succeeded to import "gold_redbag" 08-27 01:14:20 [SUCCESS] nonebot | Succeeded to import "mute" 08-27 01:14:20 [ERROR] nonebot | Failed to import "parse_bilibili_json" Traceback (most recent call last): File "bot.py", line 14, in <module> nonebot.load_plugins("plugins") File "/usr/local/lib/python3.8/dist-packages/nonebot/plugin/load.py", line 39, in load_plugins return manager.load_all_plugins() File "/usr/local/lib/python3.8/dist-packages/nonebot/plugin/manager.py", line 128, in load_all_plugins return set( File "/usr/local/lib/python3.8/dist-packages/nonebot/plugin/manager.py", line 129, in <genexpr> filter(None, (self.load_plugin(name) for name in self.list_plugins())) > File "/usr/local/lib/python3.8/dist-packages/nonebot/plugin/manager.py", line 106, in load_plugin module = importlib.import_module( 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 975, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 671, in _load_unlocked File "/usr/local/lib/python3.8/dist-packages/nonebot/plugin/manager.py", line 194, in exec_module super().exec_module(module) File "<frozen importlib._bootstrap_external>", line 848, in exec_module File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed File "/home/zhenxun_bot/plugins/parse_bilibili_json.py", line 17, in <module> from bilireq import video ModuleNotFoundError: No module named 'bilireq' 08-27 01:14:21 [SUCCESS] nonebot | Succeeded to import "epic" 08-27 01:14:21 [SUCCESS] nonebot | Succeeded to import "search_buff_skin_price" 08-27 01:14:21 [SUCCESS] nonebot | Succeeded to import "statistics_handle" 08-27 01:14:21 [SUCCESS] nonebot | Succeeded to import "statistics_hook" 08-27 01:14:21 [SUCCESS] nonebot | Succeeded to import "statistics" 08-27 01:14:21 [SUCCESS] nonebot | Succeeded to import "quotations" 08-27 01:14:21 [SUCCESS] nonebot | Succeeded to import "black_word" 08-27 01:14:21 [SUCCESS] nonebot | Succeeded to import "ban_hook" 08-27 01:14:21 [SUCCESS] nonebot | Succeeded to import "other_hook" 08-27 01:14:21 [SUCCESS] nonebot | Succeeded to import "chkdsk_hook" 08-27 01:14:21 [SUCCESS] nonebot | Succeeded to import "auth_hook" 08-27 01:14:21 [SUCCESS] nonebot | Succeeded to import "task_hook" 08-27 01:14:21 [SUCCESS] nonebot | Succeeded to import "withdraw_message_hook" 08-27 01:14:21 [SUCCESS] nonebot | Running NoneBot... 08-27 01:14:21 [INFO] uvicorn | Started server process [3292824] 08-27 01:14:21 [INFO] uvicorn | Waiting for application startup. 08-27 01:14:21 [INFO] services | Database loaded successfully! /usr/local/lib/python3.8/dist-packages/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) 08-27 01:14:21 [INFO] nonebot_plugin_apscheduler | Scheduler Started 08-27 01:14:21 [WARNING] basic_plugins | 配置文件 模块:open_cases 获取 plugin_name 失败...'Plugin' object has no attribute 'metadata' 08-27 01:14:21 [WARNING] basic_plugins | 配置文件 模块:dialogue 获取 plugin_name 失败...'Plugin' object has no attribute 'metadata' 08-27 01:14:21 [WARNING] basic_plugins | 配置文件 模块:search_buff_skin_price 获取 plugin_name 失败...'Plugin' object has no attribute 'metadata' 08-27 01:14:21 [WARNING] basic_plugins | 配置文件 模块:pix_show_info 获取 plugin_name 失败...'Plugin' object has no attribute 'metadata' 08-27 01:14:21 [WARNING] basic_plugins | 配置文件 模块:black_word 获取 plugin_name 失败...'Plugin' object has no attribute 'metadata' 08-27 01:14:21 [WARNING] basic_plugins | 配置文件 模块:query_resource_points 获取 plugin_name 失败...'Plugin' object has no attribute 'metadata' 08-27 01:14:21 [WARNING] basic_plugins | 配置文件 模块:material_remind 获取 plugin_name 失败...'Plugin' object has no attribute 'metadata' 08-27 01:14:21 [WARNING] basic_plugins | 配置文件 模块:use 获取 plugin_name 失败...'Plugin' object has no attribute 'metadata' 08-27 01:14:21 [WARNING] basic_plugins | 配置文件 模块:buy 获取 plugin_name 失败...'Plugin' object has no attribute 'metadata' 08-27 01:14:21 [WARNING] basic_plugins | 配置文件 模块:shop_handle 获取 plugin_name 失败...'Plugin' object has no attribute 'metadata' 08-27 01:14:21 [WARNING] basic_plugins | 配置文件 模块:gold 获取 plugin_name 失败...'Plugin' object has no attribute 'metadata' 08-27 01:14:21 [WARNING] basic_plugins | 配置文件 模块:my_props 获取 plugin_name 失败...'Plugin' object has no attribute 'metadata' 08-27 01:14:21 [WARNING] basic_plugins | 配置文件 模块:update_info 获取 plugin_name 失败...'Plugin' object has no attribute 'metadata' 08-27 01:14:21 [WARNING] basic_plugins | 配置文件 模块:chat_message_handle 获取 plugin_name 失败...'Plugin' object has no attribute 'metadata' 08-27 01:14:21 [WARNING] basic_plugins | 配置文件 模块:fake_msg 获取 plugin_name 失败...'Plugin' object has no attribute 'metadata' 08-27 01:14:21 [WARNING] basic_plugins | 配置文件 模块:send_setu 获取 plugin_name 失败...'Plugin' object has no attribute 'metadata' 08-27 01:14:21 [WARNING] basic_plugins | 配置文件 模块:update_picture 获取 plugin_name 失败...'Plugin' object has no attribute 'metadata' 08-27 01:14:21 [WARNING] basic_plugins | 配置文件 模块:nbnhhsh 获取 plugin_name 失败...'Plugin' object has no attribute 'metadata' 08-27 01:14:21 [WARNING] basic_plugins | 配置文件 模块:sign_in 获取 plugin_name 失败...'Plugin' object has no attribute 'metadata' 08-27 01:14:21 [WARNING] basic_plugins | 配置文件 模块:send_image 获取 plugin_name 失败...'Plugin' object has no attribute 'metadata' 08-27 01:14:21 [WARNING] basic_plugins | 配置文件 模块:coser 获取 plugin_name 失败...'Plugin' object has no attribute 'metadata' 08-27 01:14:21 [WARNING] basic_plugins | 配置文件 模块:pid_search 获取 plugin_name 失败...'Plugin' object has no attribute 'metadata' 08-27 01:14:21 [WARNING] basic_plugins | 配置文件 模块:search_image 获取 plugin_name 失败...'Plugin' object has no attribute 'metadata' 08-27 01:14:21 [WARNING] basic_plugins | 配置文件 模块:weather 获取 plugin_name 失败...'Plugin' object has no attribute 'metadata' 08-27 01:14:21 [WARNING] basic_plugins | 配置文件 模块:send_dinggong_voice 获取 plugin_name 失败...'Plugin' object has no attribute 'metadata' 08-27 01:14:21 [WARNING] basic_plugins | 配置文件 模块:white2black_image 获取 plugin_name 失败...'Plugin' object has no attribute 'metadata' 08-27 01:14:21 [WARNING] basic_plugins | 配置文件 模块:search_anime 获取 plugin_name 失败...'Plugin' object has no attribute 'metadata' 08-27 01:14:21 [WARNING] basic_plugins | 配置文件 模块:pixiv_rank_search 获取 plugin_name 失败...'Plugin' object has no attribute 'metadata' 08-27 01:14:21 [WARNING] basic_plugins | 配置文件 模块:yiqing 获取 plugin_name 失败...'Plugin' object has no attribute 'metadata' 08-27 01:14:21 [WARNING] basic_plugins | 配置文件 模块:russian 获取 plugin_name 失败...'Plugin' object has no attribute 'metadata' 08-27 01:14:21 [WARNING] basic_plugins | 配置文件 模块:roll 获取 plugin_name 失败...'Plugin' object has no attribute 'metadata' 08-27 01:14:21 [WARNING] basic_plugins | 配置文件 模块:gold_redbag 获取 plugin_name 失败...'Plugin' object has no attribute 'metadata' 08-27 01:14:21 [WARNING] basic_plugins | 配置文件 模块:group_welcome_msg 获取 plugin_name 失败...'Plugin' object has no attribute 'metadata' 08-27 01:14:21 [WARNING] basic_plugins | 配置文件 模块:what_anime 获取 plugin_name 失败...'Plugin' object has no attribute 'metadata' 08-27 01:14:21 [WARNING] basic_plugins | 配置文件 模块:luxun 获取 plugin_name 失败...'Plugin' object has no attribute 'metadata' 08-27 01:14:21 [WARNING] basic_plugins | 配置文件 模块:epic 获取 plugin_name 失败...'Plugin' object has no attribute 'metadata' 08-27 01:14:21 [WARNING] basic_plugins | 配置文件 模块:bt 获取 plugin_name 失败...'Plugin' object has no attribute 'metadata' 08-27 01:14:21 [WARNING] basic_plugins | 配置文件 模块:quotations 获取 plugin_name 失败...'Plugin' object has no attribute 'metadata' 08-27 01:14:21 [WARNING] basic_plugins | 配置文件 模块:jitang 获取 plugin_name 失败...'Plugin' object has no attribute 'metadata' 08-27 01:14:21 [WARNING] basic_plugins | 配置文件 模块:wbtop 获取 plugin_name 失败...'Plugin' object has no attribute 'metadata' 08-27 01:14:21 [WARNING] basic_plugins | 配置文件 模块:cover 获取 plugin_name 失败...'Plugin' object has no attribute 'metadata' 08-27 01:14:21 [WARNING] basic_plugins | 配置文件 模块:comments_163 获取 plugin_name 失败...'Plugin' object has no attribute 'metadata' 08-27 01:14:21 [WARNING] basic_plugins | 配置文件 模块:poetry 获取 plugin_name 失败...'Plugin' object has no attribute 'metadata' 08-27 01:14:21 [WARNING] basic_plugins | 配置文件 模块:pix 获取 plugin_name 失败...'Plugin' object has no attribute 'metadata' 08-27 01:14:21 [WARNING] basic_plugins | 配置文件 模块:music 获取 plugin_name 失败...'Plugin' object has no attribute 'metadata' 08-27 01:14:21 [WARNING] basic_plugins | 配置文件 模块:statistics_handle 获取 plugin_name 失败...'Plugin' object has no attribute 'metadata' 08-27 01:14:21 [WARNING] basic_plugins | 配置文件 模块:poke 获取 plugin_name 失败...'Plugin' object has no attribute 'metadata' 08-27 01:14:21 [WARNING] basic_plugins | 配置文件 模块:translate 获取 plugin_name 失败...'Plugin' object has no attribute 'metadata' 08-27 01:14:21 [WARNING] basic_plugins | 配置文件 模块:about 获取 plugin_name 失败...'Plugin' object has no attribute 'metadata' 08-27 01:14:21 [WARNING] basic_plugins | 配置文件 模块:bilibili_sub 获取 plugin_name 失败...'NoneType' object has no attribute 'module' 08-27 01:14:21 [WARNING] basic_plugins | 配置文件 模块:almanac 获取 plugin_name 失败...'Plugin' object has no attribute 'metadata' 08-27 01:14:21 [WARNING] basic_plugins | 配置文件 模块:query_memo 获取 plugin_name 失败...'Plugin' object has no attribute 'metadata' 08-27 01:14:21 [WARNING] basic_plugins | 配置文件 模块:resin_remind 获取 plugin_name 失败...'Plugin' object has no attribute 'metadata' 08-27 01:14:21 [WARNING] basic_plugins | 配置文件 模块:bind 获取 plugin_name 失败...'Plugin' object has no attribute 'metadata' 08-27 01:14:21 [WARNING] basic_plugins | 配置文件 模块:genshin_sign 获取 plugin_name 失败...'Plugin' object has no attribute 'metadata' 08-27 01:14:21 [WARNING] basic_plugins | 配置文件 模块:query_role 获取 plugin_name 失败...'Plugin' object has no attribute 'metadata' 08-27 01:14:21 [WARNING] basic_plugins | 配置文件 模块:one_friend 获取 plugin_name 失败...'Plugin' object has no attribute 'metadata' 08-27 01:14:21 [WARNING] basic_plugins | 配置文件 模块:ai 获取 plugin_name 失败...'Plugin' object has no attribute 'metadata' 08-27 01:14:21 [WARNING] basic_plugins | 配置文件 模块:draw_card 获取 plugin_name 失败...'Plugin' object has no attribute 'metadata' 08-27 01:14:21 [WARNING] basic_plugins | 配置文件 模块:word_clouds 获取 plugin_name 失败...'Plugin' object has no attribute 'metadata' 08-27 01:14:21 [WARNING] basic_plugins | 配置文件 模块:nickname 获取 plugin_name 失败...'Plugin' object has no attribute 'metadata' 08-27 01:14:21 [ERROR] uvicorn | Traceback (most recent call last): File "/usr/local/lib/python3.8/dist-packages/starlette/routing.py", line 621, in lifespan async with self.lifespan_context(app): File "/usr/local/lib/python3.8/dist-packages/starlette/routing.py", line 518, in __aenter__ await self._router.startup() File "/usr/local/lib/python3.8/dist-packages/starlette/routing.py", line 598, in startup await handler() File "/home/zhenxun_bot/basic_plugins/init_plugin_config/__init__.py", line 39, in _ init_plugins_settings(DATA_PATH) File "/home/zhenxun_bot/basic_plugins/init_plugin_config/init_plugins_settings.py", line 39, in init_plugins_settings metadata = _plugin.metadata AttributeError: 'Plugin' object has no attribute 'metadata' 08-27 01:14:21 [ERROR] uvicorn | Application startup failed. Exiting.
依赖版本
root@VM-16-17-ubuntu:/home/zhenxun_bot# poetry show /usr/lib/python3/dist-packages/requests/__init__.py:89: RequestsDependencyWarning: urllib3 (1.26.9) or chardet (4.0.0) doesn't match a supported version! warnings.warn("urllib3 ({}) or chardet ({}) doesn't match a supported " aiofiles 0.8.0 File support for asyncio. aiohttp 3.7.4.post0 Async http client/server framework (asyncio) anyio 3.6.1 High level compatibility layer for multiple asynchronous event loop implementations apscheduler 3.9.1 In-process task scheduler with Cron-like capabilities async-timeout 3.0.1 Timeout context manager for asyncio programs asyncpg 0.26.0 An asyncio PostgreSQL driver attrs 22.1.0 Classes Without Boilerplate backports.zoneinfo 0.2.1 Backport of the standard library zoneinfo module beautifulsoup4 4.9.3 Screen-scraping library bilireq 0.2.0.post2 black 22.6.0 The uncompromising code formatter. certifi 2022.6.15 Python package for providing Mozilla's CA Bundle. chardet 4.0.0 Universal encoding detector for Python 2 and 3 click 8.1.3 Composable command line interface toolkit cn2an 0.5.17 Convert Chinese numerals and Arabic numerals. commonmark 0.9.1 Python parser for the CommonMark Markdown spec cycler 0.11.0 Composable style cycles dateparser 1.1.1 Date parsing library designed to parse dates from HTML pages ecdsa 0.18.0 ECDSA cryptographic signature library (pure python) emoji 1.7.0 Emoji for Python fastapi 0.79.1 FastAPI framework, high performance, easy to learn, fast to code, ready for production feedparser 6.0.10 Universal feed parser, handles RSS 0.9x, RSS 1.0, RSS 2.0, CDF, Atom 0.3, and Atom 1.0 feeds fonttools 4.37.1 Tools to manipulate font files gino 1.0.1 GINO Is Not ORM - a Python asyncio ORM on SQLAlchemy core. greenlet 1.1.2 Lightweight in-process concurrent programming grpcio 1.48.0 HTTP/2-based RPC framework h11 0.12.0 A pure-Python, bring-your-own-I/O implementation of HTTP/1.1 httpcore 0.15.0 A minimal low-level HTTP client. httptools 0.4.0 A collection of framework independent HTTP protocol utils. httpx 0.23.0 The next generation HTTP client. idna 3.3 Internationalized Domain Names in Applications (IDNA) imagehash 4.2.1 Image Hashing library jieba 0.42.1 Chinese Words Segmentation Utilities kiwisolver 1.4.4 A fast implementation of the Cassowary constraint solver loguru 0.6.0 Python logging made (stupidly) simple lxml 4.6.5 Powerful and Pythonic XML processing library combining libxml2/libxslt with the ElementTree API. matplotlib 3.5.3 Python plotting package msgpack 1.0.4 MessagePack serializer multidict 6.0.2 multidict implementation mypy-extensions 0.4.3 Experimental type system extensions for programs checked with the mypy typechecker. nonebot-adapter-onebot 2.1.3 OneBot(CQHTTP) adapter for nonebot2 nonebot-plugin-apscheduler 0.1.4 APScheduler Support for NoneBot2 nonebot2 2.0.0b5 An asynchronous python bot framework. numpy 1.23.2 NumPy is the fundamental package for array computing with Python. opencv-python 4.6.0.66 Wrapper package for OpenCV python bindings. packaging 21.3 Core utilities for Python packages pathspec 0.9.0 Utility library for gitignore style pattern matching of file paths. pillow 9.2.0 Python Imaging Library (Fork) platformdirs 2.5.2 A small Python module for determining appropriate platform-specific dirs, e.g. a "user data dir". playwright 1.25.2 A high-level API to automate web browsers proces 0.1.2 text preprocess. protobuf 3.20.1 Protocol Buffers psutil 5.9.1 Cross-platform lib for process and system monitoring in Python. pyasn1 0.4.8 ASN.1 types and codecs pydantic 1.9.2 Data validation and settings management using python type hints pyee 8.1.0 A port of node.js's EventEmitter to python. pygments 2.13.0 Pygments is a syntax highlighting package written in Python. pygtrie 2.5.0 A pure Python trie data structure implementation. pyparsing 3.0.9 pyparsing module - Classes and methods to define and execute parsing grammars pypinyin 0.46.0 汉字拼音转换模块/工具. python-dateutil 2.8.2 Extensions to the standard Python datetime module python-dotenv 0.20.0 Read key-value pairs from a .env file and set them as environment variables python-jose 3.3.0 JOSE implementation in Python python-multipart 0.0.5 A streaming multipart parser for Python pytz 2022.2.1 World timezone definitions, modern and historical pytz-deprecation-shim 0.1.0.post0 Shims to make deprecation of pytz easier pywavelets 1.3.0 PyWavelets, wavelet transform module pyyaml 5.4.1 YAML parser and emitter for Python regex 2022.3.2 Alternative regular expression module, to replace re. retrying 1.3.3 Retrying rfc3986 1.5.0 Validating URI References per RFC 3986 rich 12.5.1 Render rich text, tables, progress bars, syntax highlighting, markdown and more to the terminal rsa 4.9 Pure-Python RSA implementation ruamel.yaml 0.17.21 ruamel.yaml is a YAML parser/emitter that supports roundtrip preservation of comments, seq/map flow style, and map key order ruamel.yaml.clib 0.2.6 C version of reader, parser and emitter for ruamel.yaml derived from libyaml scipy 1.9.0 Fundamental algorithms for scientific computing in Python setuptools-scm 6.4.2 the blessed package to manage your versions by scm tags sgmllib3k 1.0.0 Py3k port of sgmllib. six 1.16.0 Python 2 and 3 compatibility utilities sniffio 1.2.0 Sniff out which async library your code is running under soupsieve 2.3.2.post1 A modern CSS selector implementation for Beautiful Soup. sqlalchemy 1.3.24 Database Abstraction Library starlette 0.19.1 The little ASGI library that shines. tomli 2.0.1 A lil' TOML parser tomlkit 0.11.4 Style preserving TOML library typing-extensions 4.3.0 Backported and Experimental Type Hints for Python 3.7+ tzdata 2022.1 Provider of IANA time zone data tzlocal 4.2 tzinfo object for the local timezone ujson 5.4.0 Ultra fast JSON encoder and decoder for Python uvicorn 0.18.3 The lightning-fast ASGI server. uvloop 0.16.0 Fast implementation of asyncio event loop on top of libuv watchfiles 0.16.1 Simple, modern and high performance file watching and code reload in python. websockets 10.1 An implementation of the WebSocket Protocol (RFC 6455 & 7692) wordcloud 1.8.2.2 A little word cloud generator yarl 1.8.1 Yet another URL library zhconv 1.4.3 A simple implementation of Simplified-Traditional Chinese conversion.
错误说明
B站转发解析某次更新后无法使用没管,昨天更新0.1.6.3后无法启动提示没有metadata,尝试过poetry install和update,poetry还有警告urllib3和chardet版本 不知该怎么解决
metadata的问题,如果是poetry,就在poetry里进行sudo pip install nonebot2=2.0.0b5
即可解决
不过好像你就是b5,那打扰了,或许可以在外面也安装一次试试?
已经是b5直接重启就行了
已经是b5直接重启就行了
重启报错和上面一样
更新到了是不会有这样的报错的
nonebot2 2.0.0b5 An asynchronous python bot framework. 但是poetry里确实是最新了
卧槽,我也是一模一样的问题,大佬解决了吗
卧槽,我也是一模一样的问题,大佬解决了吗
还是不行 我准备等下个版本更新一下试试 再不行就重装了
系统版本:Ubuntu 20.04
真寻版本:0.1.6.3
错误截图
日志截图
依赖版本
错误说明
B站转发解析某次更新后无法使用没管,昨天更新0.1.6.3后无法启动提示没有metadata,尝试过poetry install和update,poetry还有警告urllib3和chardet版本 不知该怎么解决