From c5c21a3ae432028649ac607a1185439f9f4af482 Mon Sep 17 00:00:00 2001 From: tiger_fu Date: Tue, 28 May 2024 15:10:55 +0800 Subject: [PATCH] [Build] Fix build fail due to python module 'request' error: 'Not supported URL scheme http+docker' Why I did it: Build fail and console display the below message: - requests.exceptions.InvalidURL: Not supported URL scheme http+docker How I dit it: Follow docker-py PR: https://github.com/docker/docker-py/issues/3256 to fix this issue. - Revert to requests 2.31.0 without any other changes fixes the problem. How to verify it: Build sonic-broadcom.bin successfully. --- build_debian.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/build_debian.sh b/build_debian.sh index 1f9bc8eba042..e445878f6b6d 100755 --- a/build_debian.sh +++ b/build_debian.sh @@ -548,6 +548,7 @@ sudo https_proxy=$https_proxy LANG=C chroot $FILESYSTEM_ROOT pip3 install 'setup sudo https_proxy=$https_proxy LANG=C chroot $FILESYSTEM_ROOT pip3 install 'wheel==0.35.1' # docker Python API package is needed by Ansible docker module as well as some SONiC applications +sudo https_proxy=$https_proxy LANG=C chroot $FILESYSTEM_ROOT pip3 install 'requests<2.32.0' sudo https_proxy=$https_proxy LANG=C chroot $FILESYSTEM_ROOT pip3 install 'docker==6.1.1' # Install scapy