Sudden failure on pip install of awsebcli NameError: name 'platform_system' is not defined

Sudden failure on pip install of awsebcli NameError: name 'platform_system' is not defined

我有一个通过 Shippable 部署的 Node 应用程序。几周前,我的构建在没有任何环境变化的情况下开始失败(上次成功构建是 10/15/19)

我正在部署到 Node v 6.11.5,但它在 awsebcli 安装上失败了

CI/CD 管道需要 AWS Elastic Beanstalk CLI 并且在我前一段时间设置它时返回我认为我们需要下面的特定版本才能使所有内容与此节点版本和所有

pip install --force-reinstall awsebcli==3.14.5 是失败的行,错误是

NameError: name 'platform_system' is not defined

我想我希望我只需要针对不同版本的 awsebcli,但我似乎不知道该怎么做

以及完整的错误日志...

Downloading/unpacking docker-compose>=1.21.2,<1.22.0 (from awsebcli==3.14.5)
Downloading/unpacking blessed>=1.9.5 (from awsebcli==3.14.5)
Cleaning up...
Exception:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in main
    status = self.run(options, args)
  File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 278, in run
    requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
  File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1266, in prepare_files
    req_to_install.extras):
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2291, in requires
    dm = self._dep_map
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2484, in _dep_map
    self.__dep_map = self._compute_dependencies()
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2517, in _compute_dependencies
    common = frozenset(reqs_for_extra(None))
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2514, in reqs_for_extra
    if req.marker_fn(override={'extra':extra}):
  File "/usr/share/python-wheels/setuptools-3.3-py2.py3-none-any.whl/_markerlib/markers.py", line 113, in marker_fn
    return eval(compiled_marker, environment)
  File "<environment marker>", line 1, in <module>
NameError: name 'platform_system' is not defined

setuptools-3.3 was released in 2014!一定要升级:

pip install --upgrade setuptools