Skip to content

[Bug] 安装时出现问题,没法用啦 #54

@SDUBB666

Description

@SDUBB666

Plugin Version

最新

AstrBot Version

最新

Database Type

SQLite (default)

Operating System

Linux

Bug Description

[2026-02-22 15:17:53.309] [Plug] [INFO] [core.factory:98]: 创建消息收集器成功
[2026-02-22 15:17:53.326] [Plug] [ERRO] [v4.17.6] [core.factory:425]: 导入多维度分析器失败: No module named 'emoji'
Traceback (most recent call last):
File "/AstrBot/data/plugins/astrbot_plugin_self_learning/core/factory.py", line 401, in create_multidimensional_analyzer
from ..services.multidimensional_analyzer import MultidimensionalAnalyzer
File "/AstrBot/data/plugins/astrbot_plugin_self_learning/services/multidimensional_analyzer.py", line 12, in
import emoji # 导入 emoji 库
^^^^^^^^^^^^
ModuleNotFoundError: No module named 'emoji'
[2026-02-22 15:17:53.330] [Plug] [ERRO] [v4.17.6] [astrbot_plugin_self_learning.main:347]: 自学习服务初始化失败: 创建多维度分析器失败: No module named 'emoji'
[2026-02-22 15:17:53.330] [Core] [ERRO] [v4.17.6] [star.star_manager:776]: ----- 插件 astrbot_plugin_self_learning 载入失败 -----
[2026-02-22 15:17:53.332] [Core] [ERRO] [v4.17.6] [star.star_manager:779]: | Traceback (most recent call last):
[2026-02-22 15:17:53.332] [Core] [ERRO] [v4.17.6] [star.star_manager:779]: | File "/AstrBot/data/plugins/astrbot_plugin_self_learning/core/factory.py", line 401, in create_multidimensional_analyzer
[2026-02-22 15:17:53.333] [Core] [ERRO] [v4.17.6] [star.star_manager:779]: | from ..services.multidimensional_analyzer import MultidimensionalAnalyzer
[2026-02-22 15:17:53.333] [Core] [ERRO] [v4.17.6] [star.star_manager:779]: | File "/AstrBot/data/plugins/astrbot_plugin_self_learning/services/multidimensional_analyzer.py", line 12, in
[2026-02-22 15:17:53.333] [Core] [ERRO] [v4.17.6] [star.star_manager:779]: | import emoji # 导入 emoji 库
[2026-02-22 15:17:53.333] [Core] [ERRO] [v4.17.6] [star.star_manager:779]: | ^^^^^^^^^^^^
[2026-02-22 15:17:53.333] [Core] [ERRO] [v4.17.6] [star.star_manager:779]: | ModuleNotFoundError: No module named 'emoji'
[2026-02-22 15:17:53.334] [Core] [ERRO] [v4.17.6] [star.star_manager:779]: |
[2026-02-22 15:17:53.334] [Core] [ERRO] [v4.17.6] [star.star_manager:779]: | During handling of the above exception, another exception occurred:
[2026-02-22 15:17:53.334] [Core] [ERRO] [v4.17.6] [star.star_manager:779]: |
[2026-02-22 15:17:53.334] [Core] [ERRO] [v4.17.6] [star.star_manager:779]: | Traceback (most recent call last):
[2026-02-22 15:17:53.334] [Core] [ERRO] [v4.17.6] [star.star_manager:779]: | File "/AstrBot/astrbot/core/star/star_manager.py", line 680, in load
[2026-02-22 15:17:53.334] [Core] [ERRO] [v4.17.6] [star.star_manager:779]: | obj = getattr(module, classes[0])(
[2026-02-22 15:17:53.335] [Core] [ERRO] [v4.17.6] [star.star_manager:779]: | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2026-02-22 15:17:53.335] [Core] [ERRO] [v4.17.6] [star.star_manager:779]: | File "/AstrBot/data/plugins/astrbot_plugin_self_learning/main.py", line 116, in init
[2026-02-22 15:17:53.335] [Core] [ERRO] [v4.17.6] [star.star_manager:779]: | self._initialize_services()
[2026-02-22 15:17:53.335] [Core] [ERRO] [v4.17.6] [star.star_manager:779]: | File "/AstrBot/data/plugins/astrbot_plugin_self_learning/main.py", line 269, in _initialize_services
[2026-02-22 15:17:53.335] [Core] [ERRO] [v4.17.6] [star.star_manager:779]: | self.multidimensional_analyzer = self.service_factory.create_multidimensional_analyzer()
[2026-02-22 15:17:53.336] [Core] [ERRO] [v4.17.6] [star.star_manager:779]: | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2026-02-22 15:17:53.336] [Core] [ERRO] [v4.17.6] [star.star_manager:779]: | File "/AstrBot/data/plugins/astrbot_plugin_self_learning/core/factory.py", line 426, in create_multidimensional_analyzer
[2026-02-22 15:17:53.336] [Core] [ERRO] [v4.17.6] [star.star_manager:779]: | raise ServiceError(f"创建多维度分析器失败: {str(e)}")
[2026-02-22 15:17:53.336] [Core] [ERRO] [v4.17.6] [star.star_manager:779]: | data.plugins.astrbot_plugin_self_learning.exceptions.ServiceError: 创建多维度分析器失败: No module named 'emoji'
[2026-02-22 15:17:53.336] [Core] [ERRO] [v4.17.6] [star.star_manager:779]: |
[2026-02-22 15:17:53.336] [Core] [ERRO] [v4.17.6] [star.star_manager:780]: ----------------------------------
[2026-02-22 15:17:53.348] [Core] [WARN] [v4.17.6] [star.star_manager:826]: 已清理安装失败的插件目录: /AstrBot/data/plugins/astrbot_plugin_self_learning
[2026-02-22 15:17:53.348] [Core] [WARN] [v4.17.6] [star.star_manager:839]: 已清理安装失败插件配置: /AstrBot/data/config/astrbot_plugin_self_learning_config.json
[2026-02-22 15:17:53.349] [Core] [ERRO] [v4.17.6] [routes.plugin:499]: Traceback (most recent call last):
File "/AstrBot/astrbot/dashboard/routes/plugin.py", line 481, in install_plugin
plugin_info = await self.plugin_manager.install_plugin(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/AstrBot/astrbot/core/star/star_manager.py", line 886, in install_plugin
raise Exception(
Exception: 加载 astrbot_plugin_self_learning 插件时出现问题,原因 创建多维度分析器失败: No module named 'emoji'。

Steps to Reproduce

[2026-02-22 15:17:53.309] [Plug] [INFO] [core.factory:98]: 创建消息收集器成功
[2026-02-22 15:17:53.326] [Plug] [ERRO] [v4.17.6] [core.factory:425]: 导入多维度分析器失败: No module named 'emoji'
Traceback (most recent call last):
File "/AstrBot/data/plugins/astrbot_plugin_self_learning/core/factory.py", line 401, in create_multidimensional_analyzer
from ..services.multidimensional_analyzer import MultidimensionalAnalyzer
File "/AstrBot/data/plugins/astrbot_plugin_self_learning/services/multidimensional_analyzer.py", line 12, in
import emoji # 导入 emoji 库
^^^^^^^^^^^^
ModuleNotFoundError: No module named 'emoji'
[2026-02-22 15:17:53.330] [Plug] [ERRO] [v4.17.6] [astrbot_plugin_self_learning.main:347]: 自学习服务初始化失败: 创建多维度分析器失败: No module named 'emoji'
[2026-02-22 15:17:53.330] [Core] [ERRO] [v4.17.6] [star.star_manager:776]: ----- 插件 astrbot_plugin_self_learning 载入失败 -----
[2026-02-22 15:17:53.332] [Core] [ERRO] [v4.17.6] [star.star_manager:779]: | Traceback (most recent call last):
[2026-02-22 15:17:53.332] [Core] [ERRO] [v4.17.6] [star.star_manager:779]: | File "/AstrBot/data/plugins/astrbot_plugin_self_learning/core/factory.py", line 401, in create_multidimensional_analyzer
[2026-02-22 15:17:53.333] [Core] [ERRO] [v4.17.6] [star.star_manager:779]: | from ..services.multidimensional_analyzer import MultidimensionalAnalyzer
[2026-02-22 15:17:53.333] [Core] [ERRO] [v4.17.6] [star.star_manager:779]: | File "/AstrBot/data/plugins/astrbot_plugin_self_learning/services/multidimensional_analyzer.py", line 12, in
[2026-02-22 15:17:53.333] [Core] [ERRO] [v4.17.6] [star.star_manager:779]: | import emoji # 导入 emoji 库
[2026-02-22 15:17:53.333] [Core] [ERRO] [v4.17.6] [star.star_manager:779]: | ^^^^^^^^^^^^
[2026-02-22 15:17:53.333] [Core] [ERRO] [v4.17.6] [star.star_manager:779]: | ModuleNotFoundError: No module named 'emoji'
[2026-02-22 15:17:53.334] [Core] [ERRO] [v4.17.6] [star.star_manager:779]: |
[2026-02-22 15:17:53.334] [Core] [ERRO] [v4.17.6] [star.star_manager:779]: | During handling of the above exception, another exception occurred:
[2026-02-22 15:17:53.334] [Core] [ERRO] [v4.17.6] [star.star_manager:779]: |
[2026-02-22 15:17:53.334] [Core] [ERRO] [v4.17.6] [star.star_manager:779]: | Traceback (most recent call last):
[2026-02-22 15:17:53.334] [Core] [ERRO] [v4.17.6] [star.star_manager:779]: | File "/AstrBot/astrbot/core/star/star_manager.py", line 680, in load
[2026-02-22 15:17:53.334] [Core] [ERRO] [v4.17.6] [star.star_manager:779]: | obj = getattr(module, classes[0])(
[2026-02-22 15:17:53.335] [Core] [ERRO] [v4.17.6] [star.star_manager:779]: | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2026-02-22 15:17:53.335] [Core] [ERRO] [v4.17.6] [star.star_manager:779]: | File "/AstrBot/data/plugins/astrbot_plugin_self_learning/main.py", line 116, in init
[2026-02-22 15:17:53.335] [Core] [ERRO] [v4.17.6] [star.star_manager:779]: | self._initialize_services()
[2026-02-22 15:17:53.335] [Core] [ERRO] [v4.17.6] [star.star_manager:779]: | File "/AstrBot/data/plugins/astrbot_plugin_self_learning/main.py", line 269, in _initialize_services
[2026-02-22 15:17:53.335] [Core] [ERRO] [v4.17.6] [star.star_manager:779]: | self.multidimensional_analyzer = self.service_factory.create_multidimensional_analyzer()
[2026-02-22 15:17:53.336] [Core] [ERRO] [v4.17.6] [star.star_manager:779]: | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2026-02-22 15:17:53.336] [Core] [ERRO] [v4.17.6] [star.star_manager:779]: | File "/AstrBot/data/plugins/astrbot_plugin_self_learning/core/factory.py", line 426, in create_multidimensional_analyzer
[2026-02-22 15:17:53.336] [Core] [ERRO] [v4.17.6] [star.star_manager:779]: | raise ServiceError(f"创建多维度分析器失败: {str(e)}")
[2026-02-22 15:17:53.336] [Core] [ERRO] [v4.17.6] [star.star_manager:779]: | data.plugins.astrbot_plugin_self_learning.exceptions.ServiceError: 创建多维度分析器失败: No module named 'emoji'
[2026-02-22 15:17:53.336] [Core] [ERRO] [v4.17.6] [star.star_manager:779]: |
[2026-02-22 15:17:53.336] [Core] [ERRO] [v4.17.6] [star.star_manager:780]: ----------------------------------
[2026-02-22 15:17:53.348] [Core] [WARN] [v4.17.6] [star.star_manager:826]: 已清理安装失败的插件目录: /AstrBot/data/plugins/astrbot_plugin_self_learning
[2026-02-22 15:17:53.348] [Core] [WARN] [v4.17.6] [star.star_manager:839]: 已清理安装失败插件配置: /AstrBot/data/config/astrbot_plugin_self_learning_config.json
[2026-02-22 15:17:53.349] [Core] [ERRO] [v4.17.6] [routes.plugin:499]: Traceback (most recent call last):
File "/AstrBot/astrbot/dashboard/routes/plugin.py", line 481, in install_plugin
plugin_info = await self.plugin_manager.install_plugin(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/AstrBot/astrbot/core/star/star_manager.py", line 886, in install_plugin
raise Exception(
Exception: 加载 astrbot_plugin_self_learning 插件时出现问题,原因 创建多维度分析器失败: No module named 'emoji'。

Expected Behavior

[2026-02-22 15:17:53.309] [Plug] [INFO] [core.factory:98]: 创建消息收集器成功
[2026-02-22 15:17:53.326] [Plug] [ERRO] [v4.17.6] [core.factory:425]: 导入多维度分析器失败: No module named 'emoji'
Traceback (most recent call last):
File "/AstrBot/data/plugins/astrbot_plugin_self_learning/core/factory.py", line 401, in create_multidimensional_analyzer
from ..services.multidimensional_analyzer import MultidimensionalAnalyzer
File "/AstrBot/data/plugins/astrbot_plugin_self_learning/services/multidimensional_analyzer.py", line 12, in
import emoji # 导入 emoji 库
^^^^^^^^^^^^
ModuleNotFoundError: No module named 'emoji'
[2026-02-22 15:17:53.330] [Plug] [ERRO] [v4.17.6] [astrbot_plugin_self_learning.main:347]: 自学习服务初始化失败: 创建多维度分析器失败: No module named 'emoji'
[2026-02-22 15:17:53.330] [Core] [ERRO] [v4.17.6] [star.star_manager:776]: ----- 插件 astrbot_plugin_self_learning 载入失败 -----
[2026-02-22 15:17:53.332] [Core] [ERRO] [v4.17.6] [star.star_manager:779]: | Traceback (most recent call last):
[2026-02-22 15:17:53.332] [Core] [ERRO] [v4.17.6] [star.star_manager:779]: | File "/AstrBot/data/plugins/astrbot_plugin_self_learning/core/factory.py", line 401, in create_multidimensional_analyzer
[2026-02-22 15:17:53.333] [Core] [ERRO] [v4.17.6] [star.star_manager:779]: | from ..services.multidimensional_analyzer import MultidimensionalAnalyzer
[2026-02-22 15:17:53.333] [Core] [ERRO] [v4.17.6] [star.star_manager:779]: | File "/AstrBot/data/plugins/astrbot_plugin_self_learning/services/multidimensional_analyzer.py", line 12, in
[2026-02-22 15:17:53.333] [Core] [ERRO] [v4.17.6] [star.star_manager:779]: | import emoji # 导入 emoji 库
[2026-02-22 15:17:53.333] [Core] [ERRO] [v4.17.6] [star.star_manager:779]: | ^^^^^^^^^^^^
[2026-02-22 15:17:53.333] [Core] [ERRO] [v4.17.6] [star.star_manager:779]: | ModuleNotFoundError: No module named 'emoji'
[2026-02-22 15:17:53.334] [Core] [ERRO] [v4.17.6] [star.star_manager:779]: |
[2026-02-22 15:17:53.334] [Core] [ERRO] [v4.17.6] [star.star_manager:779]: | During handling of the above exception, another exception occurred:
[2026-02-22 15:17:53.334] [Core] [ERRO] [v4.17.6] [star.star_manager:779]: |
[2026-02-22 15:17:53.334] [Core] [ERRO] [v4.17.6] [star.star_manager:779]: | Traceback (most recent call last):
[2026-02-22 15:17:53.334] [Core] [ERRO] [v4.17.6] [star.star_manager:779]: | File "/AstrBot/astrbot/core/star/star_manager.py", line 680, in load
[2026-02-22 15:17:53.334] [Core] [ERRO] [v4.17.6] [star.star_manager:779]: | obj = getattr(module, classes[0])(
[2026-02-22 15:17:53.335] [Core] [ERRO] [v4.17.6] [star.star_manager:779]: | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2026-02-22 15:17:53.335] [Core] [ERRO] [v4.17.6] [star.star_manager:779]: | File "/AstrBot/data/plugins/astrbot_plugin_self_learning/main.py", line 116, in init
[2026-02-22 15:17:53.335] [Core] [ERRO] [v4.17.6] [star.star_manager:779]: | self._initialize_services()
[2026-02-22 15:17:53.335] [Core] [ERRO] [v4.17.6] [star.star_manager:779]: | File "/AstrBot/data/plugins/astrbot_plugin_self_learning/main.py", line 269, in _initialize_services
[2026-02-22 15:17:53.335] [Core] [ERRO] [v4.17.6] [star.star_manager:779]: | self.multidimensional_analyzer = self.service_factory.create_multidimensional_analyzer()
[2026-02-22 15:17:53.336] [Core] [ERRO] [v4.17.6] [star.star_manager:779]: | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2026-02-22 15:17:53.336] [Core] [ERRO] [v4.17.6] [star.star_manager:779]: | File "/AstrBot/data/plugins/astrbot_plugin_self_learning/core/factory.py", line 426, in create_multidimensional_analyzer
[2026-02-22 15:17:53.336] [Core] [ERRO] [v4.17.6] [star.star_manager:779]: | raise ServiceError(f"创建多维度分析器失败: {str(e)}")
[2026-02-22 15:17:53.336] [Core] [ERRO] [v4.17.6] [star.star_manager:779]: | data.plugins.astrbot_plugin_self_learning.exceptions.ServiceError: 创建多维度分析器失败: No module named 'emoji'
[2026-02-22 15:17:53.336] [Core] [ERRO] [v4.17.6] [star.star_manager:779]: |
[2026-02-22 15:17:53.336] [Core] [ERRO] [v4.17.6] [star.star_manager:780]: ----------------------------------
[2026-02-22 15:17:53.348] [Core] [WARN] [v4.17.6] [star.star_manager:826]: 已清理安装失败的插件目录: /AstrBot/data/plugins/astrbot_plugin_self_learning
[2026-02-22 15:17:53.348] [Core] [WARN] [v4.17.6] [star.star_manager:839]: 已清理安装失败插件配置: /AstrBot/data/config/astrbot_plugin_self_learning_config.json
[2026-02-22 15:17:53.349] [Core] [ERRO] [v4.17.6] [routes.plugin:499]: Traceback (most recent call last):
File "/AstrBot/astrbot/dashboard/routes/plugin.py", line 481, in install_plugin
plugin_info = await self.plugin_manager.install_plugin(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/AstrBot/astrbot/core/star/star_manager.py", line 886, in install_plugin
raise Exception(
Exception: 加载 astrbot_plugin_self_learning 插件时出现问题,原因 创建多维度分析器失败: No module named 'emoji'。

Error Logs

Relevant Configuration

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions