02-25 16:12:14 [ERROR] nonebot | Failed to import "nonebot_plugin_gpt3"
Traceback (most recent call last):
File "", line 14, in
File "/opt/openai-bot/.venv/lib/python3.9/site-packages/nonebot/plugin/load.py", line 122, in load_from_toml
return load_all_plugins(plugins, plugin_dirs)
File "/opt/openai-bot/.venv/lib/python3.9/site-packages/nonebot/plugin/load.py", line 59, in load_all_plugins
return manager.load_all_plugins()
File "/opt/openai-bot/.venv/lib/python3.9/site-packages/nonebot/plugin/manager.py", line 168, in load_all_plugins
return set(
File "/opt/openai-bot/.venv/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 "/opt/openai-bot/.venv/lib/python3.9/site-packages/nonebot/plugin/manager.py", line 141, in load_plugin
module = importlib.import_module(name)
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 "/opt/openai-bot/.venv/lib/python3.9/site-packages/nonebot/plugin/manager.py", line 233, in exec_module
super().exec_module(module)
File "", line 790, in exec_module
File "", line 228, in _call_with_frames_removed
File "/opt/openai-bot/.venv/lib/python3.9/site-packages/nonebot_plugin_gpt3/init.py", line 10, in
from .config import *
File "/opt/openai-bot/.venv/lib/python3.9/site-packages/nonebot_plugin_gpt3/config.py", line 24, in
config = Config.parse_obj(global_config)
File "pydantic/main.py", line 527, in pydantic.main.BaseModel.parse_obj
return cls(**obj)
File "pydantic/env_settings.py", line 39, in pydantic.env_settings.BaseSettings.init
super().init(
File "pydantic/main.py", line 342, in pydantic.main.BaseModel.init
raise validation_error
pydantic.error_wrappers.ValidationError: 1 validation error for Config
gpt3_api_key_list_from_env
value is not a valid list (type=type_error.list)
02-25 16:12:14 [ERROR] nonebot | Failed to import "nonebot_plugin_gpt3" Traceback (most recent call last): File "", line 14, in
File "/opt/openai-bot/.venv/lib/python3.9/site-packages/nonebot/plugin/load.py", line 122, in load_from_toml
return load_all_plugins(plugins, plugin_dirs)
File "/opt/openai-bot/.venv/lib/python3.9/site-packages/nonebot/plugin/load.py", line 59, in load_all_plugins
return manager.load_all_plugins()
File "/opt/openai-bot/.venv/lib/python3.9/site-packages/nonebot/plugin/manager.py", line 168, in load_all_plugins
return set(
File "/opt/openai-bot/.venv/lib/python3.9/site-packages/nonebot/plugin/manager.py", line 169, in
filter(None, (self.load_plugin(name) for name in self.available_plugins))
系统环境&软件版本:Python3.9、Debian11、NoneBot2