Harry-Jing / nonebot-plugin-bing-chat

一个可以使用新版Bing进行聊天的NoneBot插件
GNU General Public License v3.0
168 stars 12 forks source link

加载插件提示SyntaxError: invalid syntax #30

Closed saferabbit closed 1 year ago

saferabbit commented 1 year ago

报错日志: File "/home/zhenxun_bot/bot.py", line 16, in nonebot.load_plugins("extensive_plugin") File "/root/.cache/pypoetry/virtualenvs/zhenxun-bot-UH4sDRIh-py3.9/lib/python3.9/site-packages/nonebot/plugin/load.py", line 45, in load_plugins return manager.load_all_plugins() File "/root/.cache/pypoetry/virtualenvs/zhenxun-bot-UH4sDRIh-py3.9/lib/python3.9/site-packages/nonebot/plugin/manager.py", line 168, in load_all_plugins return set( File "/root/.cache/pypoetry/virtualenvs/zhenxun-bot-UH4sDRIh-py3.9/lib/python3.9/site-packages/nonebot/plugin/manager.py", line 169, in filter(None, (self.load_plugin(name) for name in self.available_plugins))

File "/root/.cache/pypoetry/virtualenvs/zhenxun-bot-UH4sDRIh-py3.9/lib/python3.9/site-packages/nonebot/plugin/manager.py", line 145, in load_plugin module = importlib.import_module( File "/usr/lib/python3.9/importlib/init.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1030, in _gcd_import File "", line 1007, in _find_and_load File "", line 986, in _find_and_load_unlocked File "", line 680, in _load_unlocked File "/root/.cache/pypoetry/virtualenvs/zhenxun-bot-UH4sDRIh-py3.9/lib/python3.9/site-packages/nonebot/plugin/manager.py", line 233, in exec_module super().exec_module(module) File "", line 850, in exec_module File "", line 228, in _call_with_frames_removed File "/home/zhenxun_bot/extensive_plugin/nonebot_plugin_bing_chat/init.py", line 1, in from .common.utils import initFile File "/home/zhenxun_bot/extensive_plugin/nonebot_plugin_bing_chat/common/utils.py", line 13, in from .dataModel import Config File "/home/zhenxun_bot/extensive_plugin/nonebot_plugin_bing_chat/common/dataModel.py", line 80 match v: ^ SyntaxError: invalid syntax

系统:Ubuntu20.04 问题描述: 手动加载,提示这个。

Harry-Jing commented 1 year ago

仅支持python3.10+

Harry-Jing commented 1 year ago

请尝试使用此分支 https://github.com/Ikaros-521/nonebot-plugin-bing-chat