zangxx66 / nonebot_plugin_blive_danmaku

B站直播间路灯插件
MIT License
15 stars 0 forks source link

tortoise.exceptions.ConfigurationError: default_connection for the model <class 'nonebot_plugin_blive_danmaku.database.model.Sub'> cannot be None #6

Closed cj1357 closed 1 year ago

cj1357 commented 1 year ago

更新到版本0.1.4启动bot有报错,用0.1.3版本的正常 系统debian11 .env.dev里面配置danmaku_group_notice = True image

cj1357 commented 1 year ago

更新到版本0.1.4启动bot有报错,用0.1.3版本的正常 系统debian11 .env.dev里面配置danmaku_group_notice = True image

image 这个是上面报错后再接下来的报错,导致bot停止运行了,不知道是不是上面的报错导致的

zangxx66 commented 1 year ago

已更新,pip或者nb-cli更新一下插件

cj1357 commented 1 year ago

但是这个版本号好像还是0.1.4?难道本地没有推上来么🙁

zangxx66 commented 1 year ago

但是这个版本号好像还是0.1.4?难道本地没有推上来么🙁

从pypi获取

cj1357 commented 1 year ago

更新了但是还会报这个错:tortoise.exceptions.ConfigurationError: default_connection for the model <class 'nonebot_plugin_blive_danmaku.database.model.Sub'> cannot be None 但是这次没有导致bot进程结束了,只是插件报错 我还是先用0.1.3版本的好了 image image image

zangxx66 commented 1 year ago

更新了但是还会报这个错:tortoise.exceptions.ConfigurationError: default_connection for the model <class 'nonebot_plugin_blive_danmaku.database.model.Sub'> cannot be None 但是这次没有导致bot进程结束了,只是插件报错 我还是先用0.1.3版本的好了 image image image

把你的bot根目录/data/danmakuBot.sqlite3的这个文件删了,重新运行看看

cj1357 commented 1 year ago

把这3个文件都删掉了,重启还是报同样的错,然后data文件夹里面又重新生成了那3个文件,再次重启还是报错 再次重新安装0.1.3版本的,删掉那3个文件重启没有报错,正常运行(有这个路灯的功能已经超棒了🤗,再不济的话我可以一直用0.1.3版本😁) 6CY{XY}G3QE5J79WZZS7I)U

zangxx66 commented 1 year ago

把这3个文件都删掉了,重启还是报同样的错,然后data文件夹里面又重新生成了那3个文件,再次重启还是报错 再次重新安装0.1.3版本的,删掉那3个文件重启没有报错,正常运行(有这个路灯的功能已经超棒了🤗,再不济的话我可以一直用0.1.3版本😁) 6CY{XY}G3QE5J79WZZS7I)U

更新一下插件,应该是可以了

cj1357 commented 1 year ago

更新了,这次加载插件没有报错了,但是使用命令"查看订阅"的时候会报list的错 image

cj1357 commented 1 year ago

更新了,这次加载插件没有报错了,但是使用命令"查看订阅"的时候会报list的错 image

添加订阅、删除订阅、开启路灯都是正常的,就这个查看订阅会报错,如果没有订阅,使用查看订阅不会报错

zangxx66 commented 1 year ago

更新了,这次加载插件没有报错了,但是使用命令"查看订阅"的时候会报list的错 image

添加订阅、删除订阅、开启路灯都是正常的,就这个查看订阅会报错,如果没有订阅,使用查看订阅不会报错

更新一下插件再试试看

cj1357 commented 1 year ago

版本是0.1.64,可以了,谢谢😺 image 默认开播提醒是打开的么,喔,那是我在env配置了true image

zangxx66 commented 1 year ago

默认是关,在env配置了以env的为准

cj1357 commented 1 year ago

默认是关,在env配置了以env的为准

明白了😺