简体   繁体   English

Python Urllib ContextualVersionConflict

[英]Python Urllib ContextualVersionConflict

Till Oct 20, it was fine.直到10月20日,一切都很好。 Oct 21, it failed with the below messages. 10 月 21 日,它失败并显示以下消息。 Can any one help here任何人都可以在这里提供帮助

     command: /usr/local/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-i8sl36tr/elasticsearch-curator/setup.py'"'"'; __file__='"'"'/tmp/pip-install-i8sl36tr/elasticsearch-curator/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-et0c4kgw
         cwd: /tmp/pip-install-i8sl36tr/elasticsearch-curator/
    Complete output (20 lines):
    Traceback (most recent call last):
      File "/tmp/pip-install-i8sl36tr/elasticsearch-curator/setup.py", line 39, in <module>
        from cx_Freeze import setup, Executable
    ModuleNotFoundError: No module named 'cx_Freeze'
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-i8sl36tr/elasticsearch-curator/setup.py", line 177, in <module>
        tests_require = ["mock", "nose", "coverage", "nosexcover"]
      File "/usr/local/lib/python3.7/site-packages/setuptools/__init__.py", line 152, in setup
        _install_setup_requires(attrs)
      File "/usr/local/lib/python3.7/site-packages/setuptools/__init__.py", line 147, in _install_setup_requires
        dist.fetch_build_eggs(dist.setup_requires)
      File "/usr/local/lib/python3.7/site-packages/setuptools/dist.py", line 676, in fetch_build_eggs
        replace_conflicting=True,
      File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 775, in resolve
        raise VersionConflict(dist, req).with_context(dependent_req)
    pkg_resources.ContextualVersionConflict: (urllib3 1.24.3 (/tmp/pip-install-i8sl36tr/elasticsearch-curator/.eggs/urllib3-1.24.3-py3.7.egg), Requirement.parse('urllib3<1.26,>=1.25.4'), {'botocore'})
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.```

On 19.10.2020 AWS released new botocore version 1.19.0. 2020 年 10 月 19 日,AWS 发布了新的 botocore 版本 1.19.0。 So far versions 1.19.0, 1.19.1, 1.19.2 are not compatible with elasticsearch-curator - version 5.8.1.到目前为止,版本 1.19.0、1.19.1、1.19.2 与 elasticsearch-curator - 版本 5.8.1 不兼容。 I had same problem and temporary fixed issue by installing older version of elasticsearch-curator - version 5.6.0.通过安装旧版本的 elasticsearch-curator - 5.6.0 版,我遇到了同样的问题和临时修复的问题。 I believe AWS will soon release botocore version that is compatible with elasticsearch-curator - version 5.8.1.我相信 AWS 将很快发布与 elasticsearch-curator 兼容的 botocore 版本 - 版本 5.8.1。

It looks like your Python environment is inconsistent with the versions requires by your packages.看起来您的 Python 环境与您的包所需的版本不一致。 Have you tried installing your environment with the --use-feature=2020-resolver flag?您是否尝试使用--use-feature=2020-resolver标志安装您的环境?

python -m pip install --use-feature=2020-resolver elasticsearch elasticsearch-curator ...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM