Urllib3 warning when running docker-compose

When running docker-compose i.e. docker-compose --version the follow warning appears in console:

/usr/lib/python3.11/site-packages/requests/__init__.py:109: RequestsDependencyWarning: urllib3 (1.26.12) or chardet (None)/charset_normalizer (3.0.0) doesn't match a supported version!
  warnings.warn(

Running pip3 install --upgrade requests shows that requirements are satisfied.

$ pip3 install requests
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: requests in /usr/lib/python3.11/site-packages (2.28.1)
Requirement already satisfied: charset_normalizer in /usr/lib/python3.11/site-packages (from requests) (3.0.0)
Requirement already satisfied: idna<4,>=2.5 in /usr/lib/python3.11/site-packages (from requests) (3.4)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /usr/lib/python3.11/site-packages (from requests) (1.26.12)
Requirement already satisfied: certifi>=2017.4.17 in /usr/lib/python3.11/site-packages (from requests) (2021.10.8)

1 sudo su

2 sudo swupd bundle-add python3-basic

3 sudo pip3 install scrapy

No this isn’t going to fix it. docker-compose package in clearlinux is out of date. Manually updating it to the new standalone version addresses that issue.

1 Like