SK-415/HarukaBot

【错误回报】ImportError: cannot import name 'DotenvType' from 'pydantic.env_settings'

endlesslin opened this issue · 0 comments

运行环境

Ubuntu 22.04 LTS/Ubuntu 20.04 LTS

HarukaBot 版本

Version: 1.6.0.post5

go-cqhttp 版本

v1.2.0

错误描述

在windows上部署成功,试图在ubuntu上部署就遇到了这个问题
换了20.04和22.04两个版本都不行,试过海外的VPS和本地的VMWARE虚拟机,都不行

go-cqhttp运行没问题

hb run后报这个错误,hb run的目录里也没有生成log
不熟python这套东西,见笑了

root@iZ6we1w87toeuj8jamu1ufZ:~/hb# hb run
Traceback (most recent call last):
File "/usr/local/bin/hb", line 5, in
from haruka_bot.main import main
File "/usr/local/lib/python3.8/dist-packages/haruka_bot/init.py", line 1, in
from nonebot.plugin import PluginMetadata
File "/usr/local/lib/python3.8/dist-packages/nonebot/init.py", line 50, in
from pydantic.env_settings import DotenvType
ImportError: cannot import name 'DotenvType' from 'pydantic.env_settings' (/usr/local/lib/python3.8/dist-packages/pydantic/env_settings.py)

报错日志(如果有)

No response