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

[BUG]Pydantic2 Error : pydantic.error_wrappers:ErrorWrapper has been removed #609

Closed
zhuxining opened this issue Jul 7, 2023 · 1 comment

Comments

@zhuxining
Copy link

Describe the bug

use pydantic2.02, "from beanie import PydanticObjectId" has a PydanticImportError

To Reproduce

from beanie import PydanticObjectId

.......

Expected behavior

normal use PydanticObjectId

Additional context

Exception has occurred: PydanticImportError
`pydantic.error_wrappers:ErrorWrapper` has been removed in V2.

pydantic.errors.PydanticImportError: `pydantic.error_wrappers:ErrorWrapper` has been removed in V2.
For further information visit https://errors.pydantic.dev/2.0.2/u/import-error
@zhuxining zhuxining changed the title [BUG]Pydantic2 Error : from beanie Import PydanticObjectId [BUG]Pydantic2 Error : pydantic.error_wrappers:ErrorWrapper has been removed Jul 7, 2023
@sanders41
Copy link
Contributor

Pydantic 2 is not supported yet.

"pydantic>=1.10.0,<2.0.0"

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

2 participants