Skip to content

BUG: Fix ExifRead version not working with Ubuntu 18.04

  • Python package ExifRead v3.0.0 failed to download and build from PyPi on Ubuntu 18.04
  • Specified v2.3.2 (previous version before v3.0.0) in the Dockerfile

Terminal output using v3.0.0

docker build -t adapt_basicui:latest -f .\Dockerfile .
[+] Building 8.0s (15/21)
 => [internal] load build definition from Dockerfile                   0.0s
 => => transferring dockerfile: 2.68kB                                 0.0s
 => [internal] load .dockerignore                                      0.0s
 => => transferring context: 2B                                        0.0s
 => [internal] load metadata for docker.io/library/ubuntu:18.04        3.3s
 => [auth] library/ubuntu:pull token for registry-1.docker.io          0.0s
 => [ 1/16] FROM docker.io/library/ubuntu:18.04@sha256:a3765b4d74747b  0.0s
 => CACHED [ 2/16] WORKDIR /root                                       0.0s
 => CACHED [ 3/16] RUN apt-get update && apt-get install -q -y     di  0.0s
 => CACHED [ 4/16] RUN apt-key adv --keyserver 'hkp://keyserver.ubunt  0.0s
 => CACHED [ 5/16] RUN echo "deb http://packages.ros.org/ros/ubuntu b  0.0s
 => CACHED [ 6/16] RUN apt-get update && apt-get install -q -y --allo  0.0s
 => CACHED [ 7/16] RUN rosdep init &&     rosdep update --rosdistro m  0.0s
 => CACHED [ 8/16] RUN apt-get update && apt-get install -y     ros-m  0.0s
 => CACHED [ 9/16] RUN pip install     anaconda     ipython     ipyke  0.0s
 => ERROR [10/16] RUN pip install --no-cache-dir     PyGeodesy     sh  4.6s
 => [internal] load build context                                      0.0s
 => => transferring context: 40B                                       0.0s
------
 > [10/16] RUN pip install --no-cache-dir     PyGeodesy     shapely     pyshp     simplekml     exifread     ujson==1.35     future     yacs     scipy     psutil:
#14 1.325 Collecting PyGeodesy
#14 2.061   Downloading https://files.pythonhosted.org/packages/4d/6e/ae0857bbb6a5c75b3e1266a0e1f08da921bf37d894a95add9de1d46c639c/PyGeodesy-23.1.9-py2.py3-none-any.whl (851kB)
#14 2.308 Collecting shapely
#14 2.904   Downloading https://files.pythonhosted.org/packages/24/ac/b0fefd3584551ebc2cb337ce14e781ff80583d17abbccf7595b6c9281eeb/Shapely-1.7.1-cp27-cp27mu-manylinux1_x86_64.whl (1.0MB)
#14 3.116 Collecting pyshp
#14 3.302   Downloading https://files.pythonhosted.org/packages/98/2f/68116db5b36b895c0450e3072b8cb6c2fac0359279b182ea97014d3c8ac0/pyshp-2.3.1-py2.py3-none-any.whl (46kB)
#14 3.418 Collecting simplekml
#14 3.714   Downloading https://files.pythonhosted.org/packages/15/e4/c333a93b7e3346437ad1ff42b8e362b853eb405ad6243ab6163f9af2a460/simplekml-1.3.6.tar.gz (52kB)
#14 4.071 Collecting exifread
#14 4.304   Downloading https://files.pythonhosted.org/packages/20/64/e8f40966ca766173fe57cc4de7d35492cf18949ced8b612924d48fa1d297/ExifRead-3.0.0.tar.gz
#14 4.553     Complete output from command python setup.py egg_info:
#14 4.553     Traceback (most recent call last):
#14 4.553       File "<string>", line 1, in <module>
#14 4.553       File "/tmp/pip-build-GeB4rM/exifread/setup.py", line 2, in <module>
#14 4.553         import exifread
#14 4.553       File "exifread/__init__.py", line 21
#14 4.553         def _find_tiff_exif(fh: BinaryIO) -> tuple:
#14 4.553                               ^
#14 4.553     SyntaxError: invalid syntax
#14 4.553
#14 4.553     ----------------------------------------
#14 4.563 Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-GeB4rM/exifread/
------
executor failed running [/bin/sh -c pip install --no-cache-dir     PyGeodesy     shapely     pyshp     simplekml     exifread     ujson==1.35     future     yacs     scipy     psutil]: exit code: 1

Using v2.3.2:

docker build -t adapt_basicui:latest -f .\Dockerfile .
[+] Building 2.9s (21/21) FINISHED
 => [internal] load build definition from Dockerfile                   0.0s
 => => transferring dockerfile: 2.69kB                                 0.0s
 => [internal] load .dockerignore                                      0.0s
 => => transferring context: 2B                                        0.0s
 => [internal] load metadata for docker.io/library/ubuntu:18.04        2.7s
 => [ 1/16] FROM docker.io/library/ubuntu:18.04@sha256:a3765b4d74747b  0.0s
 => [internal] load build context                                      0.0s
 => => transferring context: 40B                                       0.0s
 => CACHED [ 2/16] WORKDIR /root                                       0.0s
 => CACHED [ 3/16] RUN apt-get update && apt-get install -q -y     di  0.0s
 => CACHED [ 4/16] RUN apt-key adv --keyserver 'hkp://keyserver.ubunt  0.0s
 => CACHED [ 5/16] RUN echo "deb http://packages.ros.org/ros/ubuntu b  0.0s
 => CACHED [ 6/16] RUN apt-get update && apt-get install -q -y --allo  0.0s
 => CACHED [ 7/16] RUN rosdep init &&     rosdep update --rosdistro m  0.0s
 => CACHED [ 8/16] RUN apt-get update && apt-get install -y     ros-m  0.0s
 => CACHED [ 9/16] RUN pip install     anaconda     ipython     ipyke  0.0s
 => CACHED [10/16] RUN pip install --no-cache-dir     PyGeodesy     s  0.0s
 => CACHED [11/16] RUN pip install Pillow --upgrade                    0.0s
 => CACHED [12/16] RUN git clone https://github.com/roboception/rc_ge  0.0s
 => CACHED [13/16] RUN git clone https://gitlab.kitware.com/adapt/ada  0.0s
 => CACHED [14/16] RUN cd adapt_ros_ws &&     git submodule init &&    0.0s
 => CACHED [15/16] COPY on_docker_start.sh /root/start_ui.sh           0.0s
 => CACHED [16/16] WORKDIR /root/adapt_ros_ws/run_scripts              0.0s
 => exporting to image                                                 0.0s
 => => exporting layers                                                0.0s
 => => writing image sha256:76c654c7b8f494e9be8c03215ce8578361b926c1a  0.0s
 => => naming to docker.io/library/adapt_basicui:latest                0.0s

Use 'docker scan' to run Snyk tests against images to find vulnerabilities and learn how to fix them

Merge request reports

Loading