RHEL8.5 urllib3 python warning, problem and solution
Posted: Thu Feb 03, 2022 3:06 pm
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.
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.