From 6a767ecb86b17876792837fc2ada5d1641ad8972 Mon Sep 17 00:00:00 2001 From: caropen <69966551+caropen@users.noreply.github.com> Date: Thu, 13 Jul 2023 15:40:02 +0200 Subject: [PATCH] specified pydantic version 1.9.1 Pydantic package moved to version 2.0, "While we'll do our best to avoid breaking changes, some things will break.". When runnning a training in a newly set-up environment with 2.0 version one gets an error: me/config_utils.py", line 82, in _deprecated_fields_check if field.field_info.extra.get("deprecated", False): AttributeError: 'FieldInfo' object has no attribute 'field_info' --- requirements/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/requirements.txt b/requirements/requirements.txt index e40a19b622fc..3c0c776d215a 100755 --- a/requirements/requirements.txt +++ b/requirements/requirements.txt @@ -4,6 +4,6 @@ numpy packaging psutil py-cpuinfo -pydantic +pydantic==1.9.1 torch tqdm