1

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

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

CI/CD 管道需要 AWS Elastic Beanstalk CLI,当我前段时间设置它时,我想我们需要下面的特定版本才能使一切都与这个 Node 版本和所有

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

NameError:未定义名称“platform_system”

我想我希望我只需要针对不同版本的 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
4

1 回答 1

2

setuptools-3.3 于 2014 年发布!一定要升级:

pip install --upgrade setuptools
于 2019-11-09T13:49:29.467 回答