Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

没有打开“使用内置gocqhttp”导致的参数问题 #87

Open
SoulGI opened this issue Jun 12, 2023 · 1 comment
Open

没有打开“使用内置gocqhttp”导致的参数问题 #87

SoulGI opened this issue Jun 12, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request question Further information is requested

Comments

@SoulGI
Copy link

SoulGI commented Jun 12, 2023

描述问题 | Describe the question
请尽可能地使用简洁语言描述,以方便开发者快速定位重点.
进入虚拟环境运行python main.py报错如下

(atri-py3.8) ubuntu@VM-8-10-ubuntu:~/ATRI$ python main.py
Traceback (most recent call last):
File "main.py", line 3, in
import ATRI
File "/home/ubuntu/ATRI/ATRI/init.py", line 13, in
conf = __conf.parse()
File "/home/ubuntu/ATRI/ATRI/configs/config.py", line 38, in parse
return ConfigModel.parse_obj(self.config)
File "pydantic/main.py", line 526, in pydantic.main.BaseModel.parse_obj
File "pydantic/main.py", line 341, in pydantic.main.BaseModel.init
pydantic.error_wrappers.ValidationError: 2 validation errors for ConfigModel
WithGoCQHTTP -> accounts -> 0 -> uin
value is not a valid integer (type=type_error.integer)
WithGoCQHTTP -> accounts -> 0 -> protocol
value is not a valid integer (type=type_error.integer)

疑似是因为我没有打开“使用内置gocqhttp”导致的参数问题
(把花括号去了然后装模做样输点数据就能跑了)
这算不算bug()

补充内容 | Additional context
你可以在此添加其它说明.

@SoulGI SoulGI added the question Further information is requested label Jun 12, 2023
@Kyomotoi
Copy link
Owner

Kyomotoi commented Jun 12, 2023

应该算 model 设计的不严谨,后续会推送更新以修复)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants