Comments (3)
poetry run python main.py
from sagiri-bot.
启动后有一个报错
`2023-02-14 09:38:10.708 | ERROR | core:install_modules:258 -
Traceback (most recent call last):
File "/home/ubuntu/Production/sagiri-bot/main.py", line 110, in
core.install_modules(Path("modules") / "self_contained")
│ │ └ <class 'pathlib.Path'>
│ └ <staticmethod(<function Sagiri.install_modules at 0xffff7e66bf40>)>
└ <core.Sagiri object at 0xffff7e6727d0>
File "/home/ubuntu/Production/sagiri-bot/core/init.py", line 252, in install_modules
saya.require(f"{module_base_path}.{module}")
│ └ <function Saya.require at 0xffff7f64d870>
└ <graia.saya.Saya object at 0xffff7e672620>
File "/home/ubuntu/.cache/pypoetry/virtualenvs/sagiri-bot-AVwYQ3_2-py3.10/lib/python3.10/site-packages/graia/saya/init.py", line 118, in require
channel = self.require_resolve(module)
│ │ └ 'modules.self_contained.chat_gpt'
│ └ <function Saya.require_resolve at 0xffff7f64d750>
└ <graia.saya.Saya object at 0xffff7e672620>
File "/home/ubuntu/.cache/pypoetry/virtualenvs/sagiri-bot-AVwYQ3_2-py3.10/lib/python3.10/site-packages/graia/saya/init.py", line 76, in require_resolve
imported_module = importlib.import_module(module, module)
│ │ │ └ 'modules.self_contained.chat_gpt'
│ │ └ 'modules.self_contained.chat_gpt'
│ └ <function import_module at 0xffff80650af0>
└ <module 'importlib' from '/usr/lib/python3.10/importlib/init.py'>
File "/usr/lib/python3.10/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
│ │ │ │ │ └ 0
│ │ │ │ └ 'modules.self_contained.chat_gpt'
│ │ │ └ 0
│ │ └ 'modules.self_contained.chat_gpt'
│ └ <function _gcd_import at 0xffff8076f400>
└ <module '_frozen_importlib' (frozen)>
File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "/home/ubuntu/Production/sagiri-bot/modules/self_contained/chat_gpt/init.py", line 16, in
from .conversation_manager import ConversationManager
File "/home/ubuntu/Production/sagiri-bot/modules/self_contained/chat_gpt/conversation_manager.py", line 17, in
email = configs.get("email")
└ None
AttributeError: 'NoneType' object has no attribute 'get'`
发出的图片中缺少字体
from sagiri-bot.
- 报错正常,将在后续更新中移除该模块
- 检查系统中是否安装对应字体
from sagiri-bot.
Related Issues (20)
- [Bug Report] <Pica功能报错> HOT 1
- [Bug Report] <title>无法启动机器人 HOT 2
- [Bug Report] 未正确安装 `GitPython` `git` 时的类型注解问题
- 无法连接至mah HOT 6
- 初始化时对账号可用性进行检查 HOT 1
- [Feature Request] Wordle
- [Bug Report] 无法启动机器人Traceback (most recent call last) HOT 2
- [Docs/Feature Request] 在readme中添加配置需求 HOT 2
- [Bug Report] Docker环境下:中文字符无法正常渲染/方块文字 HOT 6
- [Feature Request] 启动时间统计
- [Bug Report] 插件的channel.description文本错误
- [Feature Request] PDM Support
- 重写Pica插件
- [Bug Report] 更新 wordcloud HOT 1
- 新增插件 HOT 1
- SAGIRI-BOT V5 - Avilla HOT 3
- [Feature Request] 使用 rich 打印启动时间统计
- python main.py启动报错 HOT 6
- [Bug Report] 点歌插件失效
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sagiri-bot.