Open oldking139 opened 1 year ago
抄送 @YRFBK
系统缺少中文字体,需自行安装。
刚刚在windows上使用docker再次进行了测试。
镜像版本:
zaphakiel/sagiri-bot:latest
zaphakiel/sagiri-mah:latest
测试的结果是一样的,文字同样是方块。
同时,之前并没有注意,不过sagiri-bot在收到帮助
指令时,容器抛出如下错误日志:
modules.required.helper True
modules.required.about not found!
modules.required.backend_api not found!
modules.required.chat_recorder not found!
modules.required.command not found!
modules.required.exception_catcher not found!
modules.required.group_member_backup not found!
modules.required.message_revoke not found!
modules.required.mirai_events not found!
modules.required.saya_manager not found!
modules.required.system_status not found!
modules.self_contained.abbreviated_prediction not found!
modules.self_contained.abstract_message_transform not found!
modules.self_contained.ai_text2img not found!
modules.self_contained.aminer not found!
modules.self_contained.anti_revoke not found!
modules.self_contained.apex_stat not found!
modules.self_contained.av_bt not found!
modules.self_contained.bangumi_info_searcher not found!
modules.self_contained.bangumi_searcher not found!
modules.self_contained.bilibili_bangumi_scheduler not found!
modules.self_contained.bilibili_resolve not found!
modules.self_contained.bt not found!
modules.self_contained.chat_gpt not found!
modules.self_contained.color_card not found!
modules.self_contained.cp_generator not found!
modules.self_contained.daily_newspaper not found!
modules.self_contained.dd_check not found!
modules.self_contained.dice not found!
modules.self_contained.emoji_mix not found!
modules.self_contained.genshin_chara_card not found!
modules.self_contained.genshin_voice not found!
modules.self_contained.github_info not found!
modules.self_contained.google_verification not found!
modules.self_contained.group_team not found!
modules.self_contained.homo_number_converter not found!
modules.self_contained.hot_words_explainer not found!
modules.self_contained.i_have_a_friend not found!
modules.self_contained.ill not found!
modules.self_contained.image_searcher not found!
modules.self_contained.joke not found!
modules.self_contained.keyword_respondent not found!
modules.self_contained.kugimiya_voice not found!
modules.self_contained.leetcode_info not found!
modules.self_contained.lolicon_keyword_searcher not found!
modules.self_contained.marketing_content_generator not found!
modules.self_contained.mockingbird not found!
modules.self_contained.music not found!
modules.self_contained.network_compiler not found!
modules.self_contained.pdf_searcher not found!
modules.self_contained.pero_dog not found!
modules.self_contained.phantom_tank not found!
modules.self_contained.pica not found!
modules.self_contained.qrcode_generator not found!
modules.self_contained.random_character not found!
modules.self_contained.random_food not found!
modules.self_contained.random_wife not found!
modules.self_contained.speak not found!
modules.self_contained.steam_game_info_searcher not found!
modules.self_contained.style_picture_generator not found!
modules.self_contained.super_resolution not found!
modules.self_contained.tarot not found!
modules.self_contained.test_plugin not found!
modules.self_contained.the_wondering_earth_counting_down not found!
modules.self_contained.trending not found!
modules.self_contained.wolfram_alpha not found!
modules.self_contained.wordcloud not found!
modules.self_contained.wordle not found!
modules.self_contained.xslist not found!
在Linux与Windows的docker环境测试后,个人觉得该问题应该与docker镜像构建环境有关。
可能需要在apt install
处理相关依赖前处理容器镜像的语言环境。
https://github.com/SAGIRI-kawaii/sagiri-bot/blob/f4d16e0d6216c6c0dec20cc535dd99e515e76213/Dockerfile#L1
https://github.com/SAGIRI-kawaii/sagiri-bot/blob/f4d16e0d6216c6c0dec20cc535dd99e515e76213/Dockerfile#L5-L13
刚刚在windows上使用docker再次进行了测试。
镜像版本:
zaphakiel/sagiri-bot:latest zaphakiel/sagiri-mah:latest
测试的结果是一样的,文字同样是方块。 同时,之前并没有注意,不过sagiri-bot在收到
帮助
指令时,容器抛出如下错误日志:modules.required.helper True modules.required.about not found! modules.required.backend_api not found! modules.required.chat_recorder not found! modules.required.command not found! modules.required.exception_catcher not found! modules.required.group_member_backup not found! modules.required.message_revoke not found! modules.required.mirai_events not found! modules.required.saya_manager not found! modules.required.system_status not found! modules.self_contained.abbreviated_prediction not found! modules.self_contained.abstract_message_transform not found! modules.self_contained.ai_text2img not found! modules.self_contained.aminer not found! modules.self_contained.anti_revoke not found! modules.self_contained.apex_stat not found! modules.self_contained.av_bt not found! modules.self_contained.bangumi_info_searcher not found! modules.self_contained.bangumi_searcher not found! modules.self_contained.bilibili_bangumi_scheduler not found! modules.self_contained.bilibili_resolve not found! modules.self_contained.bt not found! modules.self_contained.chat_gpt not found! modules.self_contained.color_card not found! modules.self_contained.cp_generator not found! modules.self_contained.daily_newspaper not found! modules.self_contained.dd_check not found! modules.self_contained.dice not found! modules.self_contained.emoji_mix not found! modules.self_contained.genshin_chara_card not found! modules.self_contained.genshin_voice not found! modules.self_contained.github_info not found! modules.self_contained.google_verification not found! modules.self_contained.group_team not found! modules.self_contained.homo_number_converter not found! modules.self_contained.hot_words_explainer not found! modules.self_contained.i_have_a_friend not found! modules.self_contained.ill not found! modules.self_contained.image_searcher not found! modules.self_contained.joke not found! modules.self_contained.keyword_respondent not found! modules.self_contained.kugimiya_voice not found! modules.self_contained.leetcode_info not found! modules.self_contained.lolicon_keyword_searcher not found! modules.self_contained.marketing_content_generator not found! modules.self_contained.mockingbird not found! modules.self_contained.music not found! modules.self_contained.network_compiler not found! modules.self_contained.pdf_searcher not found! modules.self_contained.pero_dog not found! modules.self_contained.phantom_tank not found! modules.self_contained.pica not found! modules.self_contained.qrcode_generator not found! modules.self_contained.random_character not found! modules.self_contained.random_food not found! modules.self_contained.random_wife not found! modules.self_contained.speak not found! modules.self_contained.steam_game_info_searcher not found! modules.self_contained.style_picture_generator not found! modules.self_contained.super_resolution not found! modules.self_contained.tarot not found! modules.self_contained.test_plugin not found! modules.self_contained.the_wondering_earth_counting_down not found! modules.self_contained.trending not found! modules.self_contained.wolfram_alpha not found! modules.self_contained.wordcloud not found! modules.self_contained.wordle not found! modules.self_contained.xslist not found!
在Linux与Windows的docker环境测试后,个人觉得该问题应该与docker镜像构建环境有关。 可能需要在
apt install
处理相关依赖前处理容器镜像的语言环境。
此处非错误日志,只是插件管理检测到插件不在信息文件内显示的提示,随后会将其信息写入文件
docker确实没有考虑到系统字体,之后会更改,也欢迎pr
所以这个没有中文应该怎么办呢
所以这个没有中文应该怎么办呢
可能的解决方案:
补充: 方案 2 & 3 可能出现渲染 timeout (https://github.com/ProjectNu11/Eric/issues/53)
问题
无法正常将中文渲染在图片上。 在Sagiri-bot启动后,使用
帮助
唤出机器人,机器人能够正常回答,但所有中文字符是方块。如何复现
使用环境:请见下文 mcl正常启动,sagiri-bot正常启动并连接mirai。
发送
帮助
唤出机器人,等待机器人回复图片帮助信息。预期行为
中文能够正常渲染在图片上。
使用环境
日志/截图
日志
图例