From 23c6998bf46e43092fc59543ea7795074a720f08 Mon Sep 17 00:00:00 2001 From: Brendan Roof Date: Fri, 17 Jan 2020 13:49:28 -0800 Subject: [PATCH] Add lower bound to tqdm for tqdm.auto - It appears that `tqdm` only introduced `tqdm.auto` in 4.27. - See https://github.com/tqdm/tqdm/releases/tag/v4.27.0. - Without the lower bound I received the following stack trace in an environment where I already had tqdm installed: ``` File "/home/brendanr/anaconda3/envs/allennlp/lib/python3.6/site-packages/transformers/__init__.py", line 20, in from .file_utils import (TRANSFORMERS_CACHE, PYTORCH_TRANSFORMERS_CACHE, PYTORCH_PRETRAINED_BERT_CACHE, File "/home/brendanr/anaconda3/envs/allennlp/lib/python3.6/site-packages/transformers/file_utils.py", line 24, in from tqdm.auto import tqdm ModuleNotFoundError: No module named 'tqdm.auto' ``` --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 3ba18fd1bf..4c908fe5e0 100644 --- a/setup.py +++ b/setup.py @@ -94,7 +94,7 @@ setup( # for downloading models over HTTPS "requests", # progress bars in model download and training scripts - "tqdm", + "tqdm >= 4.27", # for OpenAI GPT "regex != 2019.12.17", # for XLNet