You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
prisma generate crashes with this error when pydantic 1.9.1 is installed by pip as a dependency:
$ prisma generate
Prisma schema loaded from prisma/schema.prisma
Error:
File "pydantic/main.py", line 341, in pydantic.main.BaseModel.__init__
pydantic.error_wrappers.ValidationError: 1 validation error for Model
info
cannot pickle 'generator' object (type=type_error)
How to reproduce
Install prisma from pip
If the installed version of pydantic is not 1.9.1, force the install of this version with pip install pydantic==1.9.1
Bug description
prisma generate
crashes with this error when pydantic 1.9.1 is installed by pip as a dependency:How to reproduce
pip install pydantic==1.9.1
prisma generate
any schemaExpected behavior
No error
Prisma information
Environment & setup
The text was updated successfully, but these errors were encountered: