From 14e8958f58b80e734fa0c338e841fe28f2aa5757 Mon Sep 17 00:00:00 2001 From: vikassnwloodles Date: Thu, 15 May 2025 05:02:18 +0530 Subject: [PATCH 1/2] Fix urllib3 conflict by pinning Gradio to 4.26.0 While installing MeloTTS with Python 3.9.22, a version conflict arose due to incompatible urllib3 requirements between gradio and botocore==1.38.16 (a dependency of cached_path). Since gradio was not pinned in requirements.txt, the latest version (4.44.1) was being installed. This version depends on a higher version of urllib3 than allowed by botocore==1.38.16, resulting in a dependency conflict. This commit pins gradio to version 4.26.0, which uses a lower urllib3 version compatible with botocore==1.38.16, resolving the issue. --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index a79f61599..3b8eef46e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -22,7 +22,7 @@ unidecode==1.3.7 pypinyin==0.50.0 cn2an==0.5.22 jieba==0.42.1 -gradio +gradio==4.26.0 langid==1.1.6 tqdm tensorboard==2.16.2 From c60abc3f6678698ca7dd70fdb66190d46b3d701e Mon Sep 17 00:00:00 2001 From: vikassnwloodles Date: Thu, 15 May 2025 05:29:20 +0530 Subject: [PATCH 2/2] Relax gradio version constraint to <=4.26.0 for compatibility flexibility Updated gradio==4.26.0 to gradio<=4.26.0 in requirements to allow compatibility with future patch versions while still maintaining urllib3 compatibility with botocore (via cached_path). This provides some upgrade flexibility without risking version conflicts. --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 3b8eef46e..3c4bc2a7e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -22,7 +22,7 @@ unidecode==1.3.7 pypinyin==0.50.0 cn2an==0.5.22 jieba==0.42.1 -gradio==4.26.0 +gradio<=4.26.0 langid==1.1.6 tqdm tensorboard==2.16.2