nonebot / nb-cli

NoneBot2 脚手架 / CLI for NoneBot2
https://cli.nonebot.dev
MIT License
156 stars 17 forks source link

ValueError("'tool' in toml file is not a Table!") #45

Closed koonoohaa closed 1 year ago

koonoohaa commented 1 year ago

阿里云 Ubuntu 20.04 运行 nb plugin install nonebot_plugin_apscheduler QQ截图20221120183637 QQ截图20221120183746 运行 nb plugin install nonebot_plugin_gocqhttp 出现同样的问题 相同报错 ValueError("'tool' in toml file is not a Table!")

yanyongyu commented 1 year ago

你的pyproject.toml文件内容长啥样

koonoohaa commented 1 year ago

你的pyproject.toml文件内容长啥样

你好,找了一会不知道这个文件路径在哪

yanyongyu commented 1 year ago

你的bot文件夹啊

koonoohaa commented 1 year ago

pyproject.toml

QQ截图20221120185608

yanyongyu commented 1 year ago

看上去并没有什么问题,不知道是不是tomlkit有什么变化,或者可以尝试用tomlkit加载一下文件看看内容长啥样

koonoohaa commented 1 year ago

QQ截图20221120192319 请问是这么操作吗

yanyongyu commented 1 year ago

先open文件,read出来再loads

koonoohaa commented 1 year ago

image

yanyongyu commented 1 year ago

看下tool值的类型

koonoohaa commented 1 year ago

你好 该怎么查看tool值的类型呢 我对这一块不是很熟悉

yanyongyu commented 1 year ago

你好 该怎么查看tool值的类型呢 我对这一块不是很熟悉

type(data['tool'])

koonoohaa commented 1 year ago

image

StarHeartHunt commented 1 year ago

试试更新 0.6.8,这个问题应该解决了