From 3f13d374cca051d12291ec540d1e5c8f37a41728 Mon Sep 17 00:00:00 2001 From: Gabriele Picco Date: Fri, 18 Jun 2021 17:47:39 +0200 Subject: [PATCH] Specify packaging version to be more than 17.0 Older version of packaging causes an error when saving model checkpoint. The error is in the atomic_save: `if Version(torch.__version__).release[:3] == (1, 6, 0):` For old version of packaging (e.g., 16.8) the call produce the following errror: `AttributeError: 'Version' object has no attribute 'release'` --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index b564e13551a54..001bb24219597 100644 --- a/requirements.txt +++ b/requirements.txt @@ -9,5 +9,5 @@ fsspec[http]>=2021.05.0, !=2021.06.0 tensorboard>=2.2.0, !=2.5.0 # 2.5.0 GPU CI error: 'Couldn't build proto file into descriptor pool!' torchmetrics>=0.3.2 pyDeprecate==0.3.1 -packaging +packaging>=17.0 typing-extensions # TypedDict support for python<3.8