question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: rllib3 (1.25.2) or chardet (3.0.4) doesn't match a supported version

See original GitHub issue

I now get this error after upgrading to 2.0.63-1 on Ubuntu 19.04 installed via apt using disco repository:

/opt/az/lib/python3.6/site-packages/requests/__init__.py:91: RequestsDependencyWarning: urllib3 (1.25.2) or chardet (3.0.4) doesn't match a supported version!
  RequestsDependencyWarning)

I am able to perform the first couple of basic queries that I could think of without issue. However I get this error every time.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

6reactions
2i18nscommented, May 8, 2019

pip install requests

when I reinstall requests this problem solved

2reactions
ghostcommented, May 2, 2019

@marstr you mentioned that this only impacts Ubuntu:Disco users, but I can confirm it is an issue on the latest version of MacOS. An excerpt from my install logs below for your reference:

$ curl -L https://aka.ms/InstallAzureCli | bash
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  1369  100  1369    0     0    982      0  0:00:01  0:00:01 --:--:--  1631
Downloading Azure CLI install script from https://azurecliprod.blob.core.windows.net/install.py to /var/folders/bl/hqlkvbvd075cvghtcv1vfvtc0000gn/T/azure_cli_install_tmp_XXXXXX.Wcqm4H2f.
######################################################################## 100.0%
/var/folders/bl/hqlkvbvd075cvghtcv1vfvtc0000gn/T/azure_cli_install_tmp_XXXXXX.Wcqm4H2f: OK
Running install script.
-- Verifying Python version.
-- Python version 2.7.10 okay.

... snip ...

Successfully built vsts-cd-manager azure-functions-devops-build sshtunnel pyyaml psutil tabulate pyperclip antlr4-python2-runtime vsts pycparser scandir
ERROR: requests 2.21.0 has requirement urllib3<1.25,>=1.21.1, but you'll have urllib3 1.25.2 which is incompatible.
ERROR: azure-cli-appservice 0.2.18 has requirement cryptography<2.5, but you'll have cryptography 2.6.1 which is incompatible.

... snip ...

 Using cached https://files.pythonhosted.org/packages/a1/6e/464d039ec6184234b188d6a9d199e658cce86b38afe4db0e8edd1629f3f6/azure_mgmt_nspkg-3.0.2-py2-none-any.whl
ERROR: azure-cli-appservice 0.2.18 has requirement cryptography<2.5, but you'll have cryptography 2.6.1 which is incompatible.
Installing collected packages: azure-nspkg, azure-mgmt-nspkg

Also, the warning when attempting az login:

$ az  login
/Users/me/lib/azure-cli/lib/python2.7/site-packages/requests/__init__.py:91: RequestsDependencyWarning: urllib3 (1.25.2) or chardet (3.0.4) doesn't match a supported version!
  RequestsDependencyWarning)

It appears as if I’ve logged in successfully, but the real issue is apparent when I attempt to terraform plan:

$ tf plan -var-file=environment/dev.tfvars 
Refreshing Terraform state in-memory prior to plan...
The refreshed state will be used to calculate this plan, but will not be
persisted to local or remote state storage.


------------------------------------------------------------------------

Error: Error running plan: 1 error(s) occurred:

* provider.azurerm: Error obtaining Authorization Token from the Azure CLI: Error retrieving access token from Azure CLI: /Users/me/lib/azure-cli/lib/python2.7/site-packages/requests/__init__.py:91: RequestsDependencyWarning: urllib3 (1.25.2) or chardet (3.0.4) doesn't match a supported version!
  RequestsDependencyWarning)

Read more comments on GitHub >

github_iconTop Results From Across the Web

urllib3 (1.25.2) or chardet (3.0.4) doesn't match a supported ...
I got this problem when I tried to run docker-compose: urllib3 (1.24.1) or chardet (3.0.4) doesn't match a supported version.
Read more >
urllib3 (1.26.1) or chardet (3.0.4) doesn't match a supported ...
In the startup logs is a warning ready(): initializing watson /home/valentijn/venv/lib/python3.8/site-packages/requests/__init__.py:89: ...
Read more >
urllib3 (1.26.6) or chardet (3.0.4) doesn't match a supported ...
So the problem was really because the "requests" python module needed to be installed additionally.
Read more >
RequestsDependencyWarning: urllib3 or chardet doesn't ...
I'm getting this error from python: % which pip /usr/bin/pip % pip ... (3.0.4) doesn't match a supported version! warnings.warn("urllib3 ...
Read more >
[Solved] urllib3 (1.25.3) or chardet (2.2.1) doesn't match a ...
Hi i have faced the same error while running some python script but was able to resolve it with below-given command, I hope...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found