RHEL8.5 urllib3 python warning, problem and solution

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
tzimmermanFSU
Posts: 8
Joined: Fri Sep 07, 2018 2:09 pm

RHEL8.5 urllib3 python warning, problem and solution

Post by tzimmermanFSU »

I found that after running the installer shell script for Nagios XI on RHEL8.5 that whenever I ran a python based tool like yum or subscription-manager I was getting this warning: /usr/lib/python3.6/site-packages/requests/__init__.py:91: RequestsDependencyWarning: urllib3 (1.26.8) or chardet (3.0.4) doesn't match a supported version! RequestsDependencyWarning)

Playing around with some VMs, I found this behavior didn't happen if I ran the installer on RHEL8.2. But install on RHEL8.5 or update later to RHEL8.5, the warning would start happening. It didn't seem to break either yum or subscription-manager.

Pip3 list showed a higher version of urllib3 (1.26.8) than the installed RPM version (1.24.2). I couldn't find what was causing the urllib3 to upgrade in pip3.

Solution that worked for me:
# pip3 uninstall urllib3
# yum reinstall -y python3-urllib3

Hopefully this will help someone else.
gsmith
Posts: 1253
Joined: Tue Mar 02, 2021 11:15 am

Re: RHEL8.5 urllib3 python warning, problem and solution

Post by gsmith »

Hi

Thanks for sharing your solution!

I just tried to replicate on my RHEL8 instance but didn't see the same error as you.
However, "pip3 list" shows urllib3 (1.26.7) while "yum list installed" doesn't show
python3-urllib3 at all. I'm not sure why there is a discrepancy between your and my
systems, but at least you have documented a solution so if someone else runs into
the same issue they'll know what to do.

Thank you!
Locked