Skip to content

docker build error "IOError: [Errno 2] No such file or directory: '/tmp/pip-build-6C9hSM/pip/setup.py'" #16607

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

Open
weiding9527 opened this issue Apr 25, 2025 · 1 comment

Comments

@weiding9527
Copy link

我把GitHub项目下载到了本地,然后直接进入docker/目录,不修改Dockerfile任何内容,执行命令【docker build -t h2o-ai:3.46.0.7 .】,但是报错如下:
root@nvidia4090-002 /opt/h2o-3-master # docker build -t h2o-ai:3.46.0.7 .
[+] Building 6.9s (6/9) docker:default
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 32B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for docker.io/library/ubuntu:16.04 0.0s
=> [1/6] FROM docker.io/library/ubuntu:16.04 0.0s
=> CACHED [2/6] RUN echo 'DPkg::Post-Invoke {"/bin/rm -f /var/cache/apt/archives/*.deb || true";};' | tee /etc/apt/apt.conf.d/no-cache && echo "deb http://mirror.math.princeton.edu/pub/ubuntu xenial main universe" >> /etc/apt/sources.list && apt-get update -q -y && apt-get dist-upgrade - 0.0s
=> ERROR [3/6] RUN pip install --upgrade pip && wget http://h2o-release.s3.amazonaws.com/h2o/latest_stable -O latest && wget -i latest -O /opt/h2o.zip && unzip -d /opt /opt/h2o.zip && rm /opt/h2o.zip && cd /opt && cd find . -name 'h2o.jar' | sed 's/.\///;s/\/h2o.jar//g' && cp h 6.8s

[3/6] RUN pip install --upgrade pip && wget http://h2o-release.s3.amazonaws.com/h2o/latest_stable -O latest && wget -i latest -O /opt/h2o.zip && unzip -d /opt /opt/h2o.zip && rm /opt/h2o.zip && cd /opt && cd find . -name 'h2o.jar' | sed 's/.\///;s/\/h2o.jar//g' && cp h2o.jar /opt && /usr/bin/pip install find . -name "*.whl" && printf '!/bin/bash\ncd /home/h2o\n./start-h2o-docker.sh\n' > /start-h2o-docker.sh && chmod +x /start-h2o-docker.sh:
2.504 Collecting pip
3.410 Downloading https://files.pythonhosted.org/packages/70/53/b309b4a497b09655cb7e07088966881a57d082f48ac3cb54ea729fd2c6cf/pip-25.0.1.tar.gz (2.0MB)
4.795 Complete output from command python setup.py egg_info:
4.795 Traceback (most recent call last):
4.795 File "", line 1, in
4.795 IOError: [Errno 2] No such file or directory: '/tmp/pip-build-6C9hSM/pip/setup.py'
4.795
4.795 ----------------------------------------
4.831 Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-6C9hSM/pip/
6.650 You are using pip version 8.1.1, however version 25.0.1 is available.
6.650 You should consider upgrading via the 'pip install --upgrade pip' command.


ERROR: failed to solve: executor failed running [/bin/sh -c pip install --upgrade pip && wget http://h2o-release.s3.amazonaws.com/h2o/latest_stable -O latest && wget -i latest -O /opt/h2o.zip && unzip -d /opt /opt/h2o.zip && rm /opt/h2o.zip && cd /opt && cd find . -name 'h2o.jar' | sed 's/.\///;s/\/h2o.jar//g' && cp h2o.jar /opt && /usr/bin/pip install find . -name "*.whl" && printf '!/bin/bash\ncd /home/h2o\n./start-h2o-docker.sh\n' > /start-h2o-docker.sh && chmod +x /start-h2o-docker.sh]: exit code: 1

搜索issue里面没有看到同样的问题。求教如何解决。

@weiding9527
Copy link
Author

修正一下,我没有进入docker/目录。而是在项目主目录下,Dockerfile文件在主目录。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant