edgetpu-yolo
edgetpu-yolo copied to clipboard
Docker fails to build on Ubuntu 22.04
I have a fresh install of Ubuntu 22.04. When I try to do the docker build as in the instructions I get the following:
$ sudo docker build -t edgetpu .
[+] Building 3.1s (14/15) docker:default
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 716B 0.0s
=> [internal] load metadata for docker.io/library/ubuntu:20.04 0.8s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [ 1/12] FROM docker.io/library/ubuntu:20.04@sha256:bb1c41682308d7040f74d103022816d41c50d7b0c89e9d706a74b4e548636e54 0.0s
=> CACHED [ 2/12] RUN apt-get update && apt-get -y upgrade 0.0s
=> CACHED [ 3/12] RUN apt-get install -y git curl gnupg 0.0s
=> CACHED [ 4/12] RUN echo "deb https://packages.cloud.google.com/apt coral-edgetpu-stable main" | tee /etc/apt/sources.list.d/coral-edgetpu.list 0.0s
=> CACHED [ 5/12] RUN curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add - 0.0s
=> CACHED [ 6/12] RUN apt-get update && apt-get install -y gasket-dkms libedgetpu1-std python3-pycoral 0.0s
=> CACHED [ 7/12] RUN apt-get install -y python3 python3-pip 0.0s
=> CACHED [ 8/12] RUN pip3 install --upgrade pip setuptools wheel 0.0s
=> CACHED [ 9/12] RUN python3 -m pip install numpy 0.0s
=> CACHED [10/12] RUN python3 -m pip install opencv-python-headless 0.0s
=> ERROR [11/12] RUN python3 -m pip install tqdm pyyaml json 2.2s
------
> [11/12] RUN python3 -m pip install tqdm pyyaml json:
1.031 Collecting tqdm
1.677 Downloading tqdm-4.66.1-py3-none-any.whl.metadata (57 kB)
1.855 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 57.6/57.6 kB 282.0 kB/s eta 0:00:00
1.950 Collecting pyyaml
1.984 Downloading PyYAML-6.0.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (2.1 kB)
2.096 ERROR: Could not find a version that satisfies the requirement json (from versions: none)
2.096 ERROR: No matching distribution found for json
------
Dockerfile:16
--------------------
14 | RUN python3 -m pip install numpy
15 | RUN python3 -m pip install opencv-python-headless
16 | >>> RUN python3 -m pip install tqdm pyyaml json
17 |
18 | # Mountpoint for yolo testing
--------------------
ERROR: failed to solve: process "/bin/sh -c python3 -m pip install tqdm pyyaml json" did not complete successfully: exit code: 1