-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Plugin Version
Next-2.0.6
AstrBot Version
v4.19.2
Database Type
SQLite (default)
Operating System
Windows
Bug Description
未能正常运行插件
Steps to Reproduce
1.启动AstrBot等待插件启动
2.出现错误
Expected Behavior
正常运行插件
Error Logs
[18:49:42] [Core] [ERRO] [core.plugin_lifecycle:269]: 服务层初始化过程中发生未知错误: No module named 'astrbot.core.agent.message'
Traceback (most recent call last):
File "G:\BOT\AstrBotLauncher-0.1.5.6\AstrBot\data\plugins\astrbot_plugin_self_learning\core\plugin_lifecycle.py", line 168, in bootstrap
from ..services.hooks.llm_hook_handler import LLMHookHandler
File "G:\BOT\AstrBotLauncher-0.1.5.6\AstrBot\data\plugins\astrbot_plugin_self_learning\services\hooks\llm_hook_handler.py", line 16, in <module>
from astrbot.core.agent.message import TextPart
ModuleNotFoundError: No module named 'astrbot.core.agent.message'
[18:49:42] [Core] [ERRO] [astrbot_plugin_self_learning.main:137]: 插件服务编排失败,部分功能将不可用: 插件初始化失败: No module named 'astrbot.core.agent.message'
Traceback (most recent call last):
File "G:\BOT\AstrBotLauncher-0.1.5.6\AstrBot\data\plugins\astrbot_plugin_self_learning\core\plugin_lifecycle.py", line 168, in bootstrap
from ..services.hooks.llm_hook_handler import LLMHookHandler
File "G:\BOT\AstrBotLauncher-0.1.5.6\AstrBot\data\plugins\astrbot_plugin_self_learning\services\hooks\llm_hook_handler.py", line 16, in <module>
from astrbot.core.agent.message import TextPart
ModuleNotFoundError: No module named 'astrbot.core.agent.message'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "G:\BOT\AstrBotLauncher-0.1.5.6\AstrBot\data\plugins\astrbot_plugin_self_learning\main.py", line 133, in __init__
self._lifecycle.bootstrap(
~~~~~~~~~~~~~~~~~~~~~~~~~^
self.plugin_config, self.context, self.group_id_to_unified_origin
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "G:\BOT\AstrBotLauncher-0.1.5.6\AstrBot\data\plugins\astrbot_plugin_self_learning\core\plugin_lifecycle.py", line 272, in bootstrap
raise SelfLearningError(
StatusMessages.INIT_FAILED_GENERIC.format(error=str(e))
) from e
data.plugins.astrbot_plugin_self_learning.exceptions.SelfLearningError: 插件初始化失败: No module named 'astrbot.core.agent.message'Relevant Configuration
Additional Context
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working