我通过以下命令安装了弹性搜索策展人.
sudo pip install -U elasticsearch-curator
这一切都安装好了.
但是现在当我做以下事情时
curator_cli --version
我得到以下依赖警告.
/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
如何修复警告或隐藏警告?
所以我花了很多东西让这个工作.
首先,我根据Mufeeds的建议升级了cyptography
sudo pip install --upgrade cryptography
每次我做的时候都会给我一个新的错误 pip
Traceback (most recent call last): File "/usr/local/bin/pip", line 7, infrom pip._internal import main File "/usr/local/lib/python2.7/dist-packages/pip/_internal/__init__.py", line 42, in from pip._internal import cmdoptions File "/usr/local/lib/python2.7/dist-packages/pip/_internal/cmdoptions.py", line 16, in from pip._internal.index import ( File "/usr/local/lib/python2.7/dist-packages/pip/_internal/index.py", line 15, in from pip._vendor import html5lib, requests, six File "/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/__init__.py", line 86, in from pip._vendor.urllib3.contrib import pyopenssl File "/usr/local/lib/python2.7/dist-packages/pip/_vendor/urllib3/contrib/pyopenssl.py", line 46, in import OpenSSL.SSL File "/usr/lib/python2.7/dist-packages/OpenSSL/__init__.py", line 8, in from OpenSSL import rand, crypto, SSL File "/usr/lib/python2.7/dist-packages/OpenSSL/SSL.py", line 118, in SSL_ST_INIT = _lib.SSL_ST_INIT AttributeError: 'module' object has no attribute 'SSL_ST_INIT'
通过重新绑定PyOpenSSL解决了这个问题
sudo python -m easy_install --upgrade pyOpenSSL
策展人现在按预期工作,没有警告
curator_cli --version > curator_cli, version 5.5.4