Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(docker): fix pegasus-build-env of ubuntu:18.04 Dockerfile (cherry-pick #1558) #1767

Merged

Conversation

empiredan
Copy link
Contributor

@empiredan empiredan commented Dec 13, 2023

#1559

Fix the error of pip3 install --no-cache-dir cmake

This PR is to cherry-pick #1558 to solve #1559.

The reported error is:

#9 [5/7] RUN pip3 install --no-cache-dir cmake
#9 0.807 Collecting cmake
#9 1.125   Downloading https://files.pythonhosted.org/packages/3e/6b/76ca411a4317bdc0012de597c245a59c824aef1f71dd83e8de0b5ec9bc32/cmake-3.27.9.tar.gz (42kB)
#9 1.206     Complete output from command python setup.py egg_info:
#9 1.207     Traceback (most recent call last):
#9 1.207       File "<string>", line 1, in <module>
#9 1.207     ModuleNotFoundError: No module named 'setuptools'
#9 1.207     
#9 1.207     ----------------------------------------
#9 1.213 Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-unj51r_u/cmake/
#9 ERROR: process "/bin/sh -c pip3 install --no-cache-dir cmake" did not complete successfully: exit code: 1
------
 > [5/7] RUN pip3 install --no-cache-dir cmake:
0.807 Collecting cmake
1.125   Downloading https://files.pythonhosted.org/packages/3e/6b/76ca411a4317bdc0012de597c245a59c824aef1f71dd83e8de0b5ec9bc32/cmake-3.27.9.tar.gz (42kB)
1.206     Complete output from command python setup.py egg_info:
1.207     Traceback (most recent call last):
1.207       File "<string>", line 1, in <module>
1.207     ModuleNotFoundError: No module named 'setuptools'
1.207     
1.207     ----------------------------------------
1.213 Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-unj51r_u/cmake/
------
Dockerfile:63
--------------------
  61 |         rm -rf /var/lib/apt/lists/*
  62 |     
  63 | >>> RUN pip3 install --no-cache-dir cmake
  64 |     
  65 |     RUN wget --progress=dot:giga https://github.com/apache/thrift/archive/refs/tags/0.11.0.tar.gz -P /opt/thrift && \
--------------------
ERROR: failed to solve: process "/bin/sh -c pip3 install --no-cache-dir cmake" did not complete successfully: exit code: 1
Error: buildx failed with: ERROR: failed to solve: process "/bin/sh -c pip3 install --no-cache-dir cmake" did not complete successfully: exit code: 1

@empiredan empiredan added the 2.4 issues and pull requests dedicated to v2.4 label Dec 13, 2023
@empiredan empiredan merged commit 0a6b743 into apache:v2.4 Dec 13, 2023
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.4 issues and pull requests dedicated to v2.4 docker
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants