I installed elastic search curator via the following command.
我通过以下命令安装了弹性搜索策展人。
sudo pip install -U elasticsearch-curator
It all installed OK.
这一切都安装好了。
However now when I do the following
但是现在当我做以下事情时
curator_cli --version
I get the following dependency warning.
我得到以下依赖性警告。
/usr/local/lib/python2.7/dist-packages/requests/__init__.py:83: RequestsDependencyWarning: Old version of cryptography ([1, 2, 3]) may cause slowdown.
warnings.warn(warning, RequestsDependencyWarning)
curator_cli, version 5.5.4
How do I either fix the warning or hide it?
如何修复警告或隐藏警告?
1 个解决方案
#1
19
So took a couple of things for me to get this working.
所以我花了很多东西让这个工作起来。
First I upgraded cyptography as per Mufeeds suggestion
首先,我按照Mufeeds的建议升级了cyptography
sudo pip install --upgrade cryptography
This then gave me a new error everytime I did pip <any command>
每次我做pip
Traceback (most recent call last):
File "/usr/local/bin/pip", line 7, in <module>
from pip._internal import main
File "/usr/local/lib/python2.7/dist-packages/pip/_internal/__init__.py", line 42, in <module>
from pip._internal import cmdoptions
File "/usr/local/lib/python2.7/dist-packages/pip/_internal/cmdoptions.py", line 16, in <module>
from pip._internal.index import (
File "/usr/local/lib/python2.7/dist-packages/pip/_internal/index.py", line 15, in <module>
from pip._vendor import html5lib, requests, six
File "/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/__init__.py", line 86, in <module>
from pip._vendor.urllib3.contrib import pyopenssl
File "/usr/local/lib/python2.7/dist-packages/pip/_vendor/urllib3/contrib/pyopenssl.py", line 46, in <module>
import OpenSSL.SSL
File "/usr/lib/python2.7/dist-packages/OpenSSL/__init__.py", line 8, in <module>
from OpenSSL import rand, crypto, SSL
File "/usr/lib/python2.7/dist-packages/OpenSSL/SSL.py", line 118, in <module>
SSL_ST_INIT = _lib.SSL_ST_INIT
AttributeError: 'module' object has no attribute 'SSL_ST_INIT'
Resolved this by resintalling PyOpenSSL
通过重新绑定PyOpenSSL解决了这个问题
sudo python -m easy_install --upgrade pyOpenSSL
Curator is now working as expected without the warnings
策展人现在按预期工作,没有警告
curator_cli --version
> curator_cli, version 5.5.4
#1
19
So took a couple of things for me to get this working.
所以我花了很多东西让这个工作起来。
First I upgraded cyptography as per Mufeeds suggestion
首先,我按照Mufeeds的建议升级了cyptography
sudo pip install --upgrade cryptography
This then gave me a new error everytime I did pip <any command>
每次我做pip
Traceback (most recent call last):
File "/usr/local/bin/pip", line 7, in <module>
from pip._internal import main
File "/usr/local/lib/python2.7/dist-packages/pip/_internal/__init__.py", line 42, in <module>
from pip._internal import cmdoptions
File "/usr/local/lib/python2.7/dist-packages/pip/_internal/cmdoptions.py", line 16, in <module>
from pip._internal.index import (
File "/usr/local/lib/python2.7/dist-packages/pip/_internal/index.py", line 15, in <module>
from pip._vendor import html5lib, requests, six
File "/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/__init__.py", line 86, in <module>
from pip._vendor.urllib3.contrib import pyopenssl
File "/usr/local/lib/python2.7/dist-packages/pip/_vendor/urllib3/contrib/pyopenssl.py", line 46, in <module>
import OpenSSL.SSL
File "/usr/lib/python2.7/dist-packages/OpenSSL/__init__.py", line 8, in <module>
from OpenSSL import rand, crypto, SSL
File "/usr/lib/python2.7/dist-packages/OpenSSL/SSL.py", line 118, in <module>
SSL_ST_INIT = _lib.SSL_ST_INIT
AttributeError: 'module' object has no attribute 'SSL_ST_INIT'
Resolved this by resintalling PyOpenSSL
通过重新绑定PyOpenSSL解决了这个问题
sudo python -m easy_install --upgrade pyOpenSSL
Curator is now working as expected without the warnings
策展人现在按预期工作,没有警告
curator_cli --version
> curator_cli, version 5.5.4