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

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

Open
endlesslin opened this issue Nov 29, 2023 · 0 comments

Comments

@endlesslin
Copy link

运行环境

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

@endlesslin endlesslin changed the title 【错误回报】 【错误回报】ImportError: cannot import name 'DotenvType' from 'pydantic.env_settings' Nov 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant