我试图在AWS Minikube上安装SAP Vora 2.0,但出现此错误:“Docker构建失败。”已尝试使用Vora 2.1版本,但仍遇到类似错误。
这是我得到的实际错误日志:
Downloading/unpacking kubernetes
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 290, 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 2401, in requires
dm = self._dep_map
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2597, in _dep_map
self.__dep_map = self._compute_dependencies()
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2621, in _compute_dependencies
parsed = next(parse_requirements(distvers))
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 49, in <lambda>
next = lambda o: o.next()
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2721, in parse_requirements
"version spec")
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2697, in scan_list
raise ValueError(msg, line, "at", line[p:])
ValueError: ("Expected ',' or end-of-list in", 'websocket-client !=0.40.0,!=0.41.*,!=0.42.*,>=0.32.0', 'at', '*,!=0.42.*,>=0.32.0')
Storing debug log for failure in /root/.pip/pip.log
The command '/bin/sh -c apt-get update && apt-get install -y --no-install-recommends python python-pip python-twisted krb5-user vim && pip install kubernetes urllib3==1.19.1' returned a non-zero code: 2
Docker build failed !
最佳答案
请遵循以下SAP注释来解决此问题:
https://launchpad.support.sap.com/#/notes/2608651
编辑帖子:
我们需要编辑2个文件来解决此问题。
在Vora安装包中找到以下文件并进行编辑以添加版本:
{rootInstallDirectory} /images/vora-dqp/download_and_install_os_packages.sh
if [ -f /usr/bin/apt-get ]; then
...
pip install kubernetes==4.0.0 protobuf==3.5.1 httplib2==0.10.3 oauth2client==4.1.2 PySocks==1.6.8
...
elif [ -f /usr/bin/yum ]; then
pip install kubernetes==4.0.0 protobuf==3.5.1 httplib2==0.10.3 oauth2client==4.1.2 PySocks==1.6.8
...
修改第二个文件:{rootInstallDirectory} / images / vora-security-operator / init-container / Dockerfile
RUN apt-get update && \
...
pip install kubernetes==4.0.0 urllib3==1.19.1 PySocks==1.6.8
...
此问题将在下一个Vora修补程序中修复。
关于python-2.7 - Docker构建失败,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/48980857/