Replies: 4 comments 2 replies
-
|
你报错的图片上传失败了,另外你的 nonebot2 版本是? |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
nonebot 1.4.2 已确认更新
…---Original---
From: ***@***.***>
Date: Sun, Dec 15, 2024 18:07 PM
To: ***@***.***>;
Cc: ***@***.******@***.***>;
Subject: Re: [nonebot/discussions] ImportError: cannot import name'ModelField' from 'pydantic.fields'(C:\Users\wyhma\wyhmaster\.venv\Lib\site-packages\pydantic\fields.py)(Discussion #543)
你报错的图片上传失败了,另外你的 nonebot2 版本是?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
-
|
找到了,2.3.3
…---Original---
From: ***@***.***>
Date: Sun, Dec 15, 2024 21:21 PM
To: ***@***.***>;
Cc: ***@***.******@***.***>;
Subject: Re: [nonebot/discussions] ImportError: cannot import name'ModelField' from 'pydantic.fields'(C:\Users\wyhma\wyhmaster\.venv\Lib\site-packages\pydantic\fields.py)(Discussion #543)
nonebot2 没有 1.4.2 这个版本。。。你看的是nb-cli吧,pip show nonebot2
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
-
|
不知道怎么解决了,重新部署了一次bot,再打开就不报错了
…---Original---
From: ***@***.***>
Date: Sun, Dec 15, 2024 22:56 PM
To: ***@***.***>;
Cc: ***@***.******@***.***>;
Subject: Re: [nonebot/discussions] ImportError: cannot import name'ModelField' from 'pydantic.fields'(C:\Users\wyhma\wyhmaster\.venv\Lib\site-packages\pydantic\fields.py)(Discussion #543)
那就不是nb的问题了,看你报错是谁导致的
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
部署bot后,出现 ImportError: cannot import name 'ModelField' from 'pydantic.fields' (C:\Users\wyhma\wyhmaster.venv\Lib\site-packages\pydantic\fields.py)这一行错误,部署操作正确。
![Uploading 89C2989A709BE661395C7E6649ABDD05.png…]()
Beta Was this translation helpful? Give feedback.
All reactions