Closed ziyuwan closed 11 months ago
I've found an official code transformation tool here, which is helpful for migration from v1 to v2
Hello, sorry about that, the new environment.yaml has fixed the problem by downgrading the version of pydantic to 1.10.11 at PR#3
ok, thanks for your help! I'll close this issue
Hi, I'm trying to run the testing scripts of
test_reflexion.sh
and I got the following error:And on the doc of pydantic, there is also some description about the usage errors in Version 2:
This indicates that in Pydantic V2 there are no longer
field
parameter, which is used in the code like herehowever, when I check the
environment.yml
again, I find the required version ispydantic==2.3.0, pydantic-core==2.6.3
and I've got the above PydanticUserError with the required versions.Therefore, is there any mistakes I've made during the environment setup or should I change the version of
pydantic
to V1?