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

Docker - Build Error #7083

Open
yuexinz04 opened this issue Aug 13, 2024 · 0 comments
Open

Docker - Build Error #7083

yuexinz04 opened this issue Aug 13, 2024 · 0 comments

Comments

@yuexinz04
Copy link

Hi all! I was trying to build the cpu version caffe image with docker. How could I resolve those issues? Thank you so much!!

[internal] load build definition from Dockerfile
transferring 1618/0 0.005
[internal] load metadata for docker.io/library/ubuntu:16.04
[internal] load .dockerignore
transferring 2/0 0.002
[3/6] WORKDIR /opt/caffe
[4/6] RUN git clone -b 1.0 --depth 1 https://github.com/BVLC/caffe.git . && pip install --upgrade pip && cd python && for req in $(cat requirements.txt) pydot; do pip install $req; done && cd .. && mkdir build && cd build && cmake -DCPU_ONLY=1 .. && make -j"$(nproc)"
Cloning into '.'...
Note: checking out 'eeebdab16155d34ff8f5f42137da7df4d1c7eab0'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

git checkout -b <new-branch-name>
Collecting pip
Downloading https://files.pythonhosted.org/packages/4d/87/fb90046e096a03aeab235e139436b3fe804cdd447ed2093b0d70eba3f7f8/pip-24.2.tar.gz (1.9MB)
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
IOError: [Errno 2] No such file or directory: '/tmp/pip-build-w9AVri/pip/setup.py'

----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-w9AVri/pip/
You are using pip version 8.1.1, however version 24.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

[1/6] FROM docker.io/library/ubuntu:16.04@sha256:1f1a2d56de1d604801a9671f301190704c25d604a416f59e03c04f5c6ffee0d6
[2/6] RUN apt-get update && apt-get install -y --no-install-recommends build-essential cmake git wget libatlas-base-dev libboost-all-dev libgflags-dev libgoogle-glog-dev libhdf5-serial-dev libleveldb-dev liblmdb-dev libopencv-dev libprotobuf-dev libsnappy-dev protobuf-compiler python-dev python-numpy python-pip python-setuptools python-scipy && rm -rf /var/lib/apt/lists/*


[+] Building 3.2s (7/9)                       docker:desktop-linux
 => [internal] load build definition from Dockerfile          0.0s
 => => transferring dockerfile: 1.62kB                        0.0s
 => [internal] load metadata for docker.io/library/ubuntu:16  0.2s
 => [internal] load .dockerignore                             0.0s
 => => transferring context: 2B                               0.0s
 => [1/6] FROM docker.io/library/ubuntu:16.04@sha256:1f1a2d5  0.0s
 => CACHED [2/6] RUN apt-get update && apt-get install -y --  0.0s
 => CACHED [3/6] WORKDIR /opt/caffe                           0.0s
 => ERROR [4/6] RUN git clone -b 1.0 --depth 1 https://githu  2.9s
------                                                             
 > [4/6] RUN git clone -b 1.0 --depth 1 https://github.com/BVLC/caffe.git . &&     pip install --upgrade pip &&     cd python && for req in $(cat requirements.txt) pydot; do pip install $req; done && cd .. &&     mkdir build && cd build &&     cmake -DCPU_ONLY=1 .. &&     make -j"$(nproc)":                                            
0.108 Cloning into '.'...
0.937 Note: checking out 'eeebdab16155d34ff8f5f42137da7df4d1c7eab0'.
0.937 
0.937 You are in 'detached HEAD' state. You can look around, make experimental
0.937 changes and commit them, and you can discard any commits you make in this
0.937 state without impacting any branches by performing another checkout.
0.937 
0.937 If you want to create a new branch to retain commits you create, you may
0.937 do so (now or later) by using -b with the checkout command again. Example:
0.937 
0.937   git checkout -b <new-branch-name>
0.937 
1.884 Collecting pip
2.020   Downloading https://files.pythonhosted.org/packages/4d/87/fb90046e096a03aeab235e139436b3fe804cdd447ed2093b0d70eba3f7f8/pip-24.2.tar.gz (1.9MB)
2.518     Complete output from command python setup.py egg_info:
2.518     Traceback (most recent call last):
2.518       File "<string>", line 1, in <module>
2.518     IOError: [Errno 2] No such file or directory: '/tmp/pip-build-lHdp2g/pip/setup.py'
2.518     
2.518     ----------------------------------------
2.527 Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-lHdp2g/pip/
2.806 You are using pip version 8.1.1, however version 24.2 is available.
2.806 You should consider upgrading via the 'pip install --upgrade pip' command.
------

 5 warnings found (use docker --debug to expand):
 - LegacyKeyValueFormat: "LABEL key=value" should be used instead of legacy "LABEL key value" format (line 2)
 - LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 41)
 - UndefinedVar: Usage of undefined variable '$PYTHONPATH' (line 42)
 - LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 42)
 - LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 43)
Dockerfile:34
--------------------
  33 |     
  34 | >>> RUN git clone -b ${CLONE_TAG} --depth 1 https://github.com/BVLC/caffe.git . && \
  35 | >>>     pip install --upgrade pip && \
  36 | >>>     cd python && for req in $(cat requirements.txt) pydot; do pip install $req; done && cd .. && \
  37 | >>>     mkdir build && cd build && \
  38 | >>>     cmake -DCPU_ONLY=1 .. && \
  39 | >>>     make -j"$(nproc)"
  40 |     
--------------------
ERROR: failed to solve: process "/bin/sh -c git clone -b ${CLONE_TAG} --depth 1 https://github.com/BVLC/caffe.git . &&     pip install --upgrade pip &&     cd python && for req in $(cat requirements.txt) pydot; do pip install $req; done && cd .. &&     mkdir build && cd build &&     cmake -DCPU_ONLY=1 .. &&     make -j\"$(nproc)\"" did not complete successfully: exit code: 1

View build details: docker-desktop://dashboard/build/desktop-linux/desktop-linux/jjmo7c6k6gcm01e23m64acl9f

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