{"id":1077,"date":"2023-11-27T17:00:23","date_gmt":"2023-11-27T22:00:23","guid":{"rendered":"https:\/\/jasonralph.org\/?p=1077"},"modified":"2023-11-28T21:29:20","modified_gmt":"2023-11-29T02:29:20","slug":"requestsdependencywarning-urllib3-1-26-18-or-chardet-3-0-4-doesnt-match-a-supported-version","status":"publish","type":"post","link":"https:\/\/jasonralph.org\/?p=1077","title":{"rendered":"RequestsDependencyWarning: urllib3 (1.26.18) or chardet (3.0.4) doesn&#8217;t match a supported version!"},"content":{"rendered":"<p>I ran into this issue on a CENTOS8 server that has yet to be updated to RHEL8, after upgrading some packages via Pip: <\/p>\n<pre class=\"theme:solarized-dark lang:default decode:true \" >\r\n[root@server01 site-packages]# python3.6\r\nPython 3.6.8 (default, Sep 10 2021, 09:13:53) \r\n[GCC 8.5.0 20210514 (Red Hat 8.5.0-3)] on linux\r\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\r\n>>> import requests\r\n\/usr\/local\/lib\/python3.6\/site-packages\/requests\/__init__.py:91: RequestsDependencyWarning: urllib3 (1.26.18) or chardet (3.0.4) doesn't match a supported version!\r\n  RequestsDependencyWarning)\r\n>>> quit()\r\n<\/pre>\n<p>Turns out:<\/p>\n<blockquote><p>Module python3-requests is not compatible with locally installed third party module urllib3 of version 1.26.8 and get conflicting with Red Hat provided python3-urllib3 version 1.24.2-5.el8.<\/p><\/blockquote>\n<p>I was able to get around this by upgrading URLLIB3 and REQUESTS:<\/p>\n<pre class=\"theme:solarized-dark lang:default decode:true \" >\r\n[root@server01 site-packages]# pip3.6 install -U urllib3 requests\r\n<\/pre>\n<p>Works Now:<\/p>\n<pre class=\"theme:solarized-dark lang:default decode:true \" >\r\n[root@server01 site-packages]# python3.6\r\nPython 3.6.8 (default, Sep 10 2021, 09:13:53) \r\n[GCC 8.5.0 20210514 (Red Hat 8.5.0-3)] on linux\r\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\r\n>>> import requests\r\n>>> quit()\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>I ran into this issue on a CENTOS8 server that has yet to be updated to RHEL8, after upgrading some packages via Pip: [root@server01 site-packages]# python3.6 Python 3.6.8 (default, Sep 10 2021, 09:13:53) [GCC 8.5.0 20210514 (Red Hat 8.5.0-3)] on linux Type &#8220;help&#8221;, &#8220;copyright&#8221;, &#8220;credits&#8221; or &#8220;license&#8221; for more information. >>> import requests \/usr\/local\/lib\/python3.6\/site-packages\/requests\/__init__.py:91: RequestsDependencyWarning: [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[84,24,81,105,131,130,132],"class_list":["post-1077","post","type-post","status-publish","format-standard","hentry","category-python","tag-match","tag-python-2","tag-python3","tag-requests","tag-supported","tag-urllib3","tag-version"],"_links":{"self":[{"href":"https:\/\/jasonralph.org\/index.php?rest_route=\/wp\/v2\/posts\/1077","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jasonralph.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jasonralph.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jasonralph.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jasonralph.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1077"}],"version-history":[{"count":4,"href":"https:\/\/jasonralph.org\/index.php?rest_route=\/wp\/v2\/posts\/1077\/revisions"}],"predecessor-version":[{"id":1081,"href":"https:\/\/jasonralph.org\/index.php?rest_route=\/wp\/v2\/posts\/1077\/revisions\/1081"}],"wp:attachment":[{"href":"https:\/\/jasonralph.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1077"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jasonralph.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1077"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jasonralph.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1077"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}