bot-ssttkkl / nonebot-plugin-access-control

Nonebot 权限控制插件
MIT License
43 stars 2 forks source link

加载插件出错 #26

Closed HanYaaaaaaa closed 9 months ago

HanYaaaaaaa commented 9 months ago

python版本:3.8.10 报错如下:[ERROR] nonebot | Failed to import "nonebot_plugin_access_control" Traceback (most recent call last): File "", line 18, in File "/usr/kabobot/.venv/lib/python3.8/site-packages/nonebot/plugin/load.py", line 130, in load_from_toml return load_all_plugins(plugins, plugin_dirs) File "/usr/kabobot/.venv/lib/python3.8/site-packages/nonebot/plugin/load.py", line 64, in load_all_plugins return manager.load_all_plugins() File "/usr/kabobot/.venv/lib/python3.8/site-packages/nonebot/plugin/manager.py", line 176, in load_all_plugins return set( File "/usr/kabobot/.venv/lib/python3.8/site-packages/nonebot/plugin/manager.py", line 177, in filter(None, (self.load_plugin(name) for name in self.available_plugins))

File "/usr/kabobot/.venv/lib/python3.8/site-packages/nonebot/plugin/manager.py", line 142, 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 "", line 1014, in _gcd_import File "", line 991, in _find_and_load File "", line 975, in _find_and_load_unlocked File "", line 671, in _load_unlocked File "/usr/kabobot/.venv/lib/python3.8/site-packages/nonebot/plugin/manager.py", line 242, in exec_module super().exec_module(module) File "", line 848, in exec_module File "", line 219, in _call_with_frames_removed File "/usr/kabobot/.venv/lib/python3.8/site-packages/nonebot_plugin_access_control/init.py", line 35, in from . import patcher File "/usr/kabobot/.venv/lib/python3.8/site-packages/nonebot_plugin_access_control/patcher.py", line 7 @get_driver().on_startup ^ SyntaxError: invalid syntax

ssttkkl commented 9 months ago

python需要3.9以上