ansible报错"RequestsDependencyWarning"

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ansible报错"RequestsDependencyWarning"相关的知识,希望对你有一定的参考价值。

报错提示

ans -m ping devS
/usr/lib/python2.7/site-packages/requests/__init__.py:91: RequestsDependencyWarning: urllib3 (1.23) or chardet (2.2.1) doesn‘t match a supported version!
  RequestsDependencyWarning)
E05 | SUCCESS => {
    "changed": false, 
    "ping": "pong"
}
E04 | SUCCESS => {
    "changed": false, 
    "ping": "pong"
}
E18 | SUCCESS => {
    "changed": false, 
    "ping": "pong"
}
E17 | SUCCESS => {
    "changed": false, 
    "ping": "pong"
}

原因:

python库中urllib3 (1.21.1) or chardet (2.2.1) 的版本不兼容

解决方法:

pip uninstall urllib3

pip uninstall  chardet

pip install requests
总结:发现一例,解决一例,记录一例,总结一例!

以上是关于ansible报错"RequestsDependencyWarning"的主要内容,如果未能解决你的问题,请参考以下文章

Ansible报错:module_stdout": "/bin/sh: 1: /usr/bin/python: not found

ansible报错

Ansible virtualenv下pip3安装requirements报错

Ansible virtualenv下pip3安装requirements报错

ansible报错记录

Ansible报错