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

error when docker build -f gpu.Dockerfile: No module named 'cv2' #1734

Closed
xueshuai0922 opened this issue Dec 13, 2023 · 2 comments
Closed

error when docker build -f gpu.Dockerfile: No module named 'cv2' #1734

xueshuai0922 opened this issue Dec 13, 2023 · 2 comments

Comments

@xueshuai0922
Copy link

xueshuai0922 commented Dec 13, 2023

How did you install ODM? (Docker, installer, natively, ...)?

docker install odm
command : docker build -t odm-gpu /mnt/drone/ODM/
Hostsystem: CentOS Linux release 7.9.2009 (Core)
Docker version 24.0.6

image

FROM nvidia/cuda:11.2.2-devel-ubuntu20.04 AS builder

# Env variables
ENV DEBIAN_FRONTEND=noninteractive \
    PYTHONPATH="$PYTHONPATH:/code/SuperBuild/install/lib/python3.9/dist-packages:/code/SuperBuild/install/lib/python3.8/dist-packages:/code/SuperBuild/install/bin/opensfm" \
    LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/code/SuperBuild/install/lib"

# Prepare directories
WORKDIR /code

# Copy everything
COPY . ./

# Run the build
RUN PORTABLE_INSTALL=YES GPU_INSTALL=YES bash configure.sh install

# Clean Superbuild
RUN bash configure.sh clean

### END Builder

### Use a second image for the final asset to reduce the number and
# size of the layers.
FROM nvidia/cuda:11.2.2-runtime-ubuntu20.04
#FROM nvidia/cuda:11.2.0-devel-ubuntu20.04

# Env variables
ENV DEBIAN_FRONTEND=noninteractive \
    PYTHONPATH="$PYTHONPATH:/code/SuperBuild/install/lib/python3.9/dist-packages:/code/SuperBuild/install/lib/python3.8/dist-packages:/code/SuperBuild/install/bin/opensfm" \
    LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/code/SuperBuild/install/lib" \
    PDAL_DRIVER_PATH="/code/SuperBuild/install/bin"

WORKDIR /code

# Copy everything we built from the builder
COPY --from=builder /code /code

# Copy the Python libraries installed via pip from the builder
COPY --from=builder /usr/local /usr/local

# Install shared libraries that we depend on via APT, but *not*
# the -dev packages to save space!
# Also run a smoke test on ODM and OpenSfM
RUN bash configure.sh installruntimedepsonly \
  && apt-get clean \
  && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
  && bash run.sh --help \
  && bash -c "eval $(python3 /code/opendm/context.py) && python3 -c 'from opensfm import io, pymap'"
# Entry point
ENTRYPOINT ["python3", "/code/run.py"]

What is the problem?

image
No module named 'cv2'

docker build -t odm-gpu /mnt/drone/ODM/
[+] Building 304.0s (16/16) FINISHED                                                                                                                         docker:default
 => [internal] load build definition from Dockerfile                                                                                                                   0.0s
 => => transferring dockerfile: 1.77kB                                                                                                                                 0.0s
 => [internal] load .dockerignore                                                                                                                                      0.0s
 => => transferring context: 372B                                                                                                                                      0.0s
 => [internal] load metadata for docker.io/nvidia/cuda:11.2.2-devel-ubuntu20.04                                                                                        2.4s
 => [internal] load metadata for docker.io/nvidia/cuda:11.2.2-runtime-ubuntu20.04                                                                                      2.3s
 => [auth] nvidia/cuda:pull token for registry-1.docker.io                                                                                                             0.0s
 => [builder 1/5] FROM docker.io/nvidia/cuda:11.2.2-devel-ubuntu20.04@sha256:65879f7299f35cd232f3b54e24081d569db2be1f31820728aef8a44240a305a8                          0.0s
 => [internal] load build context                                                                                                                                      0.0s
 => => transferring context: 8.79kB                                                                                                                                    0.0s
 => [stage-1 1/5] FROM docker.io/nvidia/cuda:11.2.2-runtime-ubuntu20.04@sha256:fa8bbdf8ebe0593e6905a62a47d707177308a34a4b294ce5307ec6e88e789141                        0.0s
 => CACHED [stage-1 2/5] WORKDIR /code                                                                                                                                 0.0s
 => CACHED [builder 2/5] WORKDIR /code                                                                                                                                 0.0s
 => CACHED [builder 3/5] COPY . ./                                                                                                                                     0.0s
 => CACHED [builder 4/5] RUN PORTABLE_INSTALL=YES GPU_INSTALL=YES bash configure.sh install                                                                            0.0s
 => CACHED [builder 5/5] RUN bash configure.sh clean                                                                                                                   0.0s
 => CACHED [stage-1 3/5] COPY --from=builder /code /code                                                                                                               0.0s
 => CACHED [stage-1 4/5] COPY --from=builder /usr/local /usr/local                                                                                                     0.0s
 => ERROR [stage-1 5/5] RUN bash configure.sh installruntimedepsonly   && apt-get clean   && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*   && bash run.sh --help   301.6s
------
 > [stage-1 5/5] RUN bash configure.sh installruntimedepsonly   && apt-get clean   && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*   && bash run.sh --help   && bash -c "eval $(python3 /code/opendm/context.py) && python3 -c 'from opensfm import io, pymap'":
0.255 Installing runtime dependencies
0.255 Installing sudo
1.333 Get:1 https://developer.download.nvidia.cn/compute/cuda/repos/ubuntu2004/x86_64  InRelease [1581 B]
1.484 Get:2 https://developer.download.nvidia.cn/compute/cuda/repos/ubuntu2004/x86_64  Packages [1314 kB]
6.360 Get:3 http://archive.ubuntu.com/ubuntu focal InRelease [265 kB]
7.099 Get:4 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
8.007 Get:5 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
8.340 Get:6 http://security.ubuntu.com/ubuntu focal-security/restricted amd64 Packages [3124 kB]
8.381 Get:7 http://archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB]
8.764 Get:8 http://archive.ubuntu.com/ubuntu focal/universe amd64 Packages [11.3 MB]
13.51 Get:9 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages [1148 kB]
15.35 Get:10 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [3279 kB]
16.56 Get:11 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages [1275 kB]
16.67 Get:12 http://archive.ubuntu.com/ubuntu focal/multiverse amd64 Packages [177 kB]
16.79 Get:13 http://archive.ubuntu.com/ubuntu focal/restricted amd64 Packages [33.4 kB]
16.81 Get:14 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [1443 kB]
17.80 Get:15 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [3761 kB]
19.37 Get:16 http://security.ubuntu.com/ubuntu focal-security/multiverse amd64 Packages [29.3 kB]
20.22 Get:17 http://archive.ubuntu.com/ubuntu focal-updates/restricted amd64 Packages [3279 kB]
21.73 Get:18 http://archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 Packages [32.0 kB]
21.74 Get:19 http://archive.ubuntu.com/ubuntu focal-backports/universe amd64 Packages [28.6 kB]
21.76 Get:20 http://archive.ubuntu.com/ubuntu focal-backports/main amd64 Packages [55.2 kB]
21.91 Fetched 30.9 MB in 22s (1431 kB/s)
21.91 Reading package lists...
42.05 debconf: delaying package configuration, since apt-utils is not installed
42.13 Selecting previously unselected package sudo.
(Reading database ... 4924 files and directories currently installed.)
42.13 Preparing to unpack .../sudo_1.8.31-1ubuntu1.5_amd64.deb ...
42.13 Unpacking sudo (1.8.31-1ubuntu1.5) ...
42.22 Setting up sudo (1.8.31-1ubuntu1.5) ...
42.28 Installing lsb_release
50.83 debconf: delaying package configuration, since apt-utils is not installed
50.89 Selecting previously unselected package libpython3.8-minimal:amd64.
(Reading database ... 4982 files and directories currently installed.)
50.89 Preparing to unpack .../libpython3.8-minimal_3.8.10-0ubuntu1~20.04.9_amd64.deb ...
50.90 Unpacking libpython3.8-minimal:amd64 (3.8.10-0ubuntu1~20.04.9) ...
51.01 Selecting previously unselected package libexpat1:amd64.
51.01 Preparing to unpack .../libexpat1_2.2.9-1ubuntu0.6_amd64.deb ...
51.02 Unpacking libexpat1:amd64 (2.2.9-1ubuntu0.6) ...
51.07 Selecting previously unselected package python3.8-minimal.
51.07 Preparing to unpack .../python3.8-minimal_3.8.10-0ubuntu1~20.04.9_amd64.deb ...
51.08 Unpacking python3.8-minimal (3.8.10-0ubuntu1~20.04.9) ...
51.28 Setting up libpython3.8-minimal:amd64 (3.8.10-0ubuntu1~20.04.9) ...
51.30 Setting up libexpat1:amd64 (2.2.9-1ubuntu0.6) ...
51.31 Setting up python3.8-minimal (3.8.10-0ubuntu1~20.04.9) ...
51.87 Selecting previously unselected package python3-minimal.
(Reading database ... 5273 files and directories currently installed.)
51.87 Preparing to unpack .../0-python3-minimal_3.8.2-0ubuntu2_amd64.deb ...
51.88 Unpacking python3-minimal (3.8.2-0ubuntu2) ...
51.92 Selecting previously unselected package mime-support.
51.92 Preparing to unpack .../1-mime-support_3.64ubuntu1_all.deb ...
51.92 Unpacking mime-support (3.64ubuntu1) ...
51.97 Selecting previously unselected package libmpdec2:amd64.
51.97 Preparing to unpack .../2-libmpdec2_2.4.2-3_amd64.deb ...
51.97 Unpacking libmpdec2:amd64 (2.4.2-3) ...
52.01 Selecting previously unselected package libpython3.8-stdlib:amd64.
52.01 Preparing to unpack .../3-libpython3.8-stdlib_3.8.10-0ubuntu1~20.04.9_amd64.deb ...
52.01 Unpacking libpython3.8-stdlib:amd64 (3.8.10-0ubuntu1~20.04.9) ...
52.18 Selecting previously unselected package python3.8.
52.18 Preparing to unpack .../4-python3.8_3.8.10-0ubuntu1~20.04.9_amd64.deb ...
52.19 Unpacking python3.8 (3.8.10-0ubuntu1~20.04.9) ...
52.23 Selecting previously unselected package libpython3-stdlib:amd64.
52.23 Preparing to unpack .../5-libpython3-stdlib_3.8.2-0ubuntu2_amd64.deb ...
52.23 Unpacking libpython3-stdlib:amd64 (3.8.2-0ubuntu2) ...
52.27 Setting up python3-minimal (3.8.2-0ubuntu2) ...
52.47 Selecting previously unselected package python3.
(Reading database ... 5675 files and directories currently installed.)
52.47 Preparing to unpack .../python3_3.8.2-0ubuntu2_amd64.deb ...
52.48 Unpacking python3 (3.8.2-0ubuntu2) ...
52.51 Selecting previously unselected package distro-info-data.
52.51 Preparing to unpack .../distro-info-data_0.43ubuntu1.14_all.deb ...
52.52 Unpacking distro-info-data (0.43ubuntu1.14) ...
52.55 Selecting previously unselected package lsb-release.
52.55 Preparing to unpack .../lsb-release_11.1.0ubuntu2_all.deb ...
52.56 Unpacking lsb-release (11.1.0ubuntu2) ...
52.59 Setting up mime-support (3.64ubuntu1) ...
52.63 Setting up distro-info-data (0.43ubuntu1.14) ...
52.64 Setting up libmpdec2:amd64 (2.4.2-3) ...
52.65 Setting up libpython3.8-stdlib:amd64 (3.8.10-0ubuntu1~20.04.9) ...
52.66 Setting up python3.8 (3.8.10-0ubuntu1~20.04.9) ...
53.26 Setting up libpython3-stdlib:amd64 (3.8.2-0ubuntu2) ...
53.27 Setting up python3 (3.8.2-0ubuntu2) ...
53.37 Setting up lsb-release (11.1.0ubuntu2) ...
53.39 Processing triggers for libc-bin (2.31-0ubuntu9.12) ...
53.44 Installing pkg-config
63.86 debconf: delaying package configuration, since apt-utils is not installed
(Reading database ... 5729 files and directories currently installed.)
63.92 Preparing to unpack .../perl-base_5.30.0-9ubuntu0.5_amd64.deb ...
63.95 Unpacking perl-base (5.30.0-9ubuntu0.5) over (5.30.0-9ubuntu0.4) ...
66.00 Setting up perl-base (5.30.0-9ubuntu0.5) ...
66.05 Selecting previously unselected package perl-modules-5.30.
(Reading database ... 5729 files and directories currently installed.)
66.05 Preparing to unpack .../0-perl-modules-5.30_5.30.0-9ubuntu0.5_all.deb ...
66.06 Unpacking perl-modules-5.30 (5.30.0-9ubuntu0.5) ...
66.40 Selecting previously unselected package libgdbm6:amd64.
66.40 Preparing to unpack .../1-libgdbm6_1.18.1-5_amd64.deb ...
66.41 Unpacking libgdbm6:amd64 (1.18.1-5) ...
66.45 Selecting previously unselected package libgdbm-compat4:amd64.
66.45 Preparing to unpack .../2-libgdbm-compat4_1.18.1-5_amd64.deb ...
66.45 Unpacking libgdbm-compat4:amd64 (1.18.1-5) ...
66.49 Selecting previously unselected package libperl5.30:amd64.
66.49 Preparing to unpack .../3-libperl5.30_5.30.0-9ubuntu0.5_amd64.deb ...
66.50 Unpacking libperl5.30:amd64 (5.30.0-9ubuntu0.5) ...
66.93 Selecting previously unselected package perl.
66.93 Preparing to unpack .../4-perl_5.30.0-9ubuntu0.5_amd64.deb ...
66.94 Unpacking perl (5.30.0-9ubuntu0.5) ...
67.00 Selecting previously unselected package libglib2.0-0:amd64.
67.00 Preparing to unpack .../5-libglib2.0-0_2.64.6-1~ubuntu20.04.6_amd64.deb ...
67.01 Unpacking libglib2.0-0:amd64 (2.64.6-1~ubuntu20.04.6) ...
67.14 Selecting previously unselected package libdpkg-perl.
67.14 Preparing to unpack .../6-libdpkg-perl_1.19.7ubuntu3.2_all.deb ...
67.14 Unpacking libdpkg-perl (1.19.7ubuntu3.2) ...
67.20 Selecting previously unselected package pkg-config.
67.20 Preparing to unpack .../7-pkg-config_0.29.1-0ubuntu4_amd64.deb ...
67.21 Unpacking pkg-config (0.29.1-0ubuntu4) ...
67.25 Setting up perl-modules-5.30 (5.30.0-9ubuntu0.5) ...
67.26 Setting up libglib2.0-0:amd64 (2.64.6-1~ubuntu20.04.6) ...
67.27 No schema files found: doing nothing.
67.28 Setting up libgdbm6:amd64 (1.18.1-5) ...
67.29 Setting up libgdbm-compat4:amd64 (1.18.1-5) ...
67.30 Setting up libperl5.30:amd64 (5.30.0-9ubuntu0.5) ...
67.31 Setting up perl (5.30.0-9ubuntu0.5) ...
67.33 Setting up libdpkg-perl (1.19.7ubuntu3.2) ...
67.35 Setting up pkg-config (0.29.1-0ubuntu4) ...
67.39 Processing triggers for libc-bin (2.31-0ubuntu9.12) ...
67.43 Installing tzdata
71.13 debconf: delaying package configuration, since apt-utils is not installed
71.20 Selecting previously unselected package tzdata.
(Reading database ... 7869 files and directories currently installed.)
71.20 Preparing to unpack .../tzdata_2023c-0ubuntu0.20.04.2_all.deb ...
71.21 Unpacking tzdata (2023c-0ubuntu0.20.04.2) ...
71.45 Setting up tzdata (2023c-0ubuntu0.20.04.2) ...
71.55
71.55 Current default time zone: 'Etc/UTC'
71.55 Local time is now:      Wed Dec 13 06:27:48 UTC 2023.
71.55 Universal Time is now:  Wed Dec 13 06:27:48 UTC 2023.
71.55 Run 'dpkg-reconfigure tzdata' if you wish to change it.
71.55
71.64 Enabling PPA for Ubuntu GIS
93.09 debconf: delaying package configuration, since apt-utils is not installed
93.16 Selecting previously unselected package libapparmor1:amd64.
(Reading database ... 9790 files and directories currently installed.)
93.16 Preparing to unpack .../0-libapparmor1_2.13.3-7ubuntu5.3_amd64.deb ...
93.16 Unpacking libapparmor1:amd64 (2.13.3-7ubuntu5.3) ...
93.21 Selecting previously unselected package libcap2:amd64.
93.21 Preparing to unpack .../1-libcap2_1%3a2.32-1ubuntu0.1_amd64.deb ...
93.21 Unpacking libcap2:amd64 (1:2.32-1ubuntu0.1) ...
93.26 Selecting previously unselected package libargon2-1:amd64.
93.26 Preparing to unpack .../2-libargon2-1_0~20171227-0.2_amd64.deb ...
93.26 Unpacking libargon2-1:amd64 (0~20171227-0.2) ...
93.30 Selecting previously unselected package libdevmapper1.02.1:amd64.
93.30 Preparing to unpack .../3-libdevmapper1.02.1_2%3a1.02.167-1ubuntu1_amd64.deb ...
93.30 Unpacking libdevmapper1.02.1:amd64 (2:1.02.167-1ubuntu1) ...
93.35 Selecting previously unselected package libjson-c4:amd64.
93.35 Preparing to unpack .../4-libjson-c4_0.13.1+dfsg-7ubuntu0.3_amd64.deb ...
93.36 Unpacking libjson-c4:amd64 (0.13.1+dfsg-7ubuntu0.3) ...
93.40 Selecting previously unselected package libcryptsetup12:amd64.
93.40 Preparing to unpack .../5-libcryptsetup12_2%3a2.2.2-3ubuntu2.4_amd64.deb ...
93.40 Unpacking libcryptsetup12:amd64 (2:2.2.2-3ubuntu2.4) ...
93.46 Selecting previously unselected package libip4tc2:amd64.
93.46 Preparing to unpack .../6-libip4tc2_1.8.4-3ubuntu2.1_amd64.deb ...
93.46 Unpacking libip4tc2:amd64 (1.8.4-3ubuntu2.1) ...
93.51 Selecting previously unselected package libkmod2:amd64.
93.51 Preparing to unpack .../7-libkmod2_27-1ubuntu2.1_amd64.deb ...
93.51 Unpacking libkmod2:amd64 (27-1ubuntu2.1) ...
93.56 Selecting previously unselected package systemd-timesyncd.
93.56 Preparing to unpack .../8-systemd-timesyncd_245.4-4ubuntu3.22_amd64.deb ...
93.56 Unpacking systemd-timesyncd (245.4-4ubuntu3.22) ...
93.61 Selecting previously unselected package systemd.
93.61 Preparing to unpack .../9-systemd_245.4-4ubuntu3.22_amd64.deb ...
93.66 Unpacking systemd (245.4-4ubuntu3.22) ...
94.04 Setting up libapparmor1:amd64 (2.13.3-7ubuntu5.3) ...
94.06 Setting up libcap2:amd64 (1:2.32-1ubuntu0.1) ...
94.07 Setting up libargon2-1:amd64 (0~20171227-0.2) ...
94.08 Setting up libdevmapper1.02.1:amd64 (2:1.02.167-1ubuntu1) ...
94.09 Setting up libjson-c4:amd64 (0.13.1+dfsg-7ubuntu0.3) ...
94.11 Setting up libcryptsetup12:amd64 (2:2.2.2-3ubuntu2.4) ...
94.12 Setting up libip4tc2:amd64 (1.8.4-3ubuntu2.1) ...
94.13 Setting up libkmod2:amd64 (27-1ubuntu2.1) ...
94.15 Setting up systemd-timesyncd (245.4-4ubuntu3.22) ...
94.40 Created symlink /etc/systemd/system/dbus-org.freedesktop.timesync1.service → /lib/systemd/system/systemd-timesyncd.service.
94.40 Created symlink /etc/systemd/system/sysinit.target.wants/systemd-timesyncd.service → /lib/systemd/system/systemd-timesyncd.service.
94.41 Setting up systemd (245.4-4ubuntu3.22) ...
94.47 Created symlink /etc/systemd/system/getty.target.wants/[email protected] → /lib/systemd/system/[email protected].
94.47 Created symlink /etc/systemd/system/multi-user.target.wants/remote-fs.target → /lib/systemd/system/remote-fs.target.
94.48 Created symlink /etc/systemd/system/dbus-org.freedesktop.resolve1.service → /lib/systemd/system/systemd-resolved.service.
94.48 Created symlink /etc/systemd/system/multi-user.target.wants/systemd-resolved.service → /lib/systemd/system/systemd-resolved.service.
94.49 ln: failed to create symbolic link '/etc/resolv.conf': Device or resource busy
94.49 Created symlink /etc/systemd/system/multi-user.target.wants/ondemand.service → /lib/systemd/system/ondemand.service.
94.49 Created symlink /etc/systemd/system/sysinit.target.wants/systemd-pstore.service → /lib/systemd/system/systemd-pstore.service.
94.50 Initializing machine ID from random generator.
94.87 Selecting previously unselected package systemd-sysv.
(Reading database ... 10588 files and directories currently installed.)
94.87 Preparing to unpack .../00-systemd-sysv_245.4-4ubuntu3.22_amd64.deb ...
94.89 Unpacking systemd-sysv (245.4-4ubuntu3.22) ...
94.93 Selecting previously unselected package libdbus-1-3:amd64.
94.93 Preparing to unpack .../01-libdbus-1-3_1.12.16-2ubuntu2.3_amd64.deb ...
94.94 Unpacking libdbus-1-3:amd64 (1.12.16-2ubuntu2.3) ...
95.00 Selecting previously unselected package dbus.
95.00 Preparing to unpack .../02-dbus_1.12.16-2ubuntu2.3_amd64.deb ...
95.01 Unpacking dbus (1.12.16-2ubuntu2.3) ...
95.07 Selecting previously unselected package libgirepository-1.0-1:amd64.
95.07 Preparing to unpack .../03-libgirepository-1.0-1_1.64.1-1~ubuntu20.04.1_amd64.deb ...
95.08 Unpacking libgirepository-1.0-1:amd64 (1.64.1-1~ubuntu20.04.1) ...
95.12 Selecting previously unselected package gir1.2-glib-2.0:amd64.
95.12 Preparing to unpack .../04-gir1.2-glib-2.0_1.64.1-1~ubuntu20.04.1_amd64.deb ...
95.12 Unpacking gir1.2-glib-2.0:amd64 (1.64.1-1~ubuntu20.04.1) ...
95.17 Selecting previously unselected package libcap2-bin.
95.17 Preparing to unpack .../05-libcap2-bin_1%3a2.32-1ubuntu0.1_amd64.deb ...
95.17 Unpacking libcap2-bin (1:2.32-1ubuntu0.1) ...
95.21 Selecting previously unselected package libelf1:amd64.
95.21 Preparing to unpack .../06-libelf1_0.176-1.1ubuntu0.1_amd64.deb ...
95.22 Unpacking libelf1:amd64 (0.176-1.1ubuntu0.1) ...
95.25 Selecting previously unselected package libglib2.0-data.
95.25 Preparing to unpack .../07-libglib2.0-data_2.64.6-1~ubuntu20.04.6_all.deb ...
95.26 Unpacking libglib2.0-data (2.64.6-1~ubuntu20.04.6) ...
95.29 Selecting previously unselected package libicu66:amd64.
95.29 Preparing to unpack .../08-libicu66_66.1-2ubuntu2.1_amd64.deb ...
95.30 Unpacking libicu66:amd64 (66.1-2ubuntu2.1) ...
96.03 Selecting previously unselected package libpam-systemd:amd64.
96.03 Preparing to unpack .../09-libpam-systemd_245.4-4ubuntu3.22_amd64.deb ...
96.03 Unpacking libpam-systemd:amd64 (245.4-4ubuntu3.22) ...
96.09 Selecting previously unselected package libxml2:amd64.
96.09 Preparing to unpack .../10-libxml2_2.9.10+dfsg-5ubuntu0.20.04.6_amd64.deb ...
96.09 Unpacking libxml2:amd64 (2.9.10+dfsg-5ubuntu0.20.04.6) ...
96.19 Selecting previously unselected package libyaml-0-2:amd64.
96.19 Preparing to unpack .../11-libyaml-0-2_0.2.2-1_amd64.deb ...
96.19 Unpacking libyaml-0-2:amd64 (0.2.2-1) ...
96.23 Selecting previously unselected package python3-dbus.
96.23 Preparing to unpack .../12-python3-dbus_1.2.16-1build1_amd64.deb ...
96.24 Unpacking python3-dbus (1.2.16-1build1) ...
96.28 Selecting previously unselected package python3-gi.
96.28 Preparing to unpack .../13-python3-gi_3.36.0-1_amd64.deb ...
96.29 Unpacking python3-gi (3.36.0-1) ...
96.34 Selecting previously unselected package python3-pkg-resources.
96.34 Preparing to unpack .../14-python3-pkg-resources_45.2.0-1ubuntu0.1_all.deb ...
96.34 Unpacking python3-pkg-resources (45.2.0-1ubuntu0.1) ...
96.39 Selecting previously unselected package python3-six.
96.39 Preparing to unpack .../15-python3-six_1.14.0-2_all.deb ...
96.39 Unpacking python3-six (1.14.0-2) ...
96.43 Selecting previously unselected package iso-codes.
96.43 Preparing to unpack .../16-iso-codes_4.4-1_all.deb ...
96.43 Unpacking iso-codes (4.4-1) ...
96.77 Selecting previously unselected package libkrb5support0:amd64.
96.77 Preparing to unpack .../17-libkrb5support0_1.17-6ubuntu4.4_amd64.deb ...
96.78 Unpacking libkrb5support0:amd64 (1.17-6ubuntu4.4) ...
96.82 Selecting previously unselected package libk5crypto3:amd64.
96.82 Preparing to unpack .../18-libk5crypto3_1.17-6ubuntu4.4_amd64.deb ...
96.82 Unpacking libk5crypto3:amd64 (1.17-6ubuntu4.4) ...
96.87 Selecting previously unselected package libkeyutils1:amd64.
96.87 Preparing to unpack .../19-libkeyutils1_1.6-6ubuntu1.1_amd64.deb ...
96.87 Unpacking libkeyutils1:amd64 (1.6-6ubuntu1.1) ...
96.91 Selecting previously unselected package libkrb5-3:amd64.
96.91 Preparing to unpack .../20-libkrb5-3_1.17-6ubuntu4.4_amd64.deb ...
96.92 Unpacking libkrb5-3:amd64 (1.17-6ubuntu4.4) ...
96.99 Selecting previously unselected package libgssapi-krb5-2:amd64.
96.99 Preparing to unpack .../21-libgssapi-krb5-2_1.17-6ubuntu4.4_amd64.deb ...
96.99 Unpacking libgssapi-krb5-2:amd64 (1.17-6ubuntu4.4) ...
97.04 Selecting previously unselected package liblmdb0:amd64.
97.04 Preparing to unpack .../22-liblmdb0_0.9.24-1_amd64.deb ...
97.04 Unpacking liblmdb0:amd64 (0.9.24-1) ...
97.08 Selecting previously unselected package libpolkit-gobject-1-0:amd64.
97.08 Preparing to unpack .../23-libpolkit-gobject-1-0_0.105-26ubuntu1.3_amd64.deb ...
97.09 Unpacking libpolkit-gobject-1-0:amd64 (0.105-26ubuntu1.3) ...
97.14 Selecting previously unselected package libpsl5:amd64.
97.14 Preparing to unpack .../24-libpsl5_0.21.0-1ubuntu1_amd64.deb ...
97.14 Unpacking libpsl5:amd64 (0.21.0-1ubuntu1) ...
97.18 Selecting previously unselected package python-apt-common.
97.18 Preparing to unpack .../25-python-apt-common_2.0.1ubuntu0.20.04.1_all.deb ...
97.18 Unpacking python-apt-common (2.0.1ubuntu0.20.04.1) ...
97.22 Selecting previously unselected package python3-apt.
97.22 Preparing to unpack .../26-python3-apt_2.0.1ubuntu0.20.04.1_amd64.deb ...
97.22 Unpacking python3-apt (2.0.1ubuntu0.20.04.1) ...
97.27 Selecting previously unselected package dbus-user-session.
97.27 Preparing to unpack .../27-dbus-user-session_1.12.16-2ubuntu2.3_amd64.deb ...
97.27 Unpacking dbus-user-session (1.12.16-2ubuntu2.3) ...
97.31 Selecting previously unselected package libdconf1:amd64.
97.31 Preparing to unpack .../28-libdconf1_0.36.0-1_amd64.deb ...
97.32 Unpacking libdconf1:amd64 (0.36.0-1) ...
97.35 Selecting previously unselected package dconf-service.
97.35 Preparing to unpack .../29-dconf-service_0.36.0-1_amd64.deb ...
97.35 Unpacking dconf-service (0.36.0-1) ...
97.39 Selecting previously unselected package dconf-gsettings-backend:amd64.
97.39 Preparing to unpack .../30-dconf-gsettings-backend_0.36.0-1_amd64.deb ...
97.39 Unpacking dconf-gsettings-backend:amd64 (0.36.0-1) ...
97.43 Selecting previously unselected package libpackagekit-glib2-18:amd64.
97.43 Preparing to unpack .../31-libpackagekit-glib2-18_1.1.13-2ubuntu1.1_amd64.deb ...
97.44 Unpacking libpackagekit-glib2-18:amd64 (1.1.13-2ubuntu1.1) ...
97.48 Selecting previously unselected package gir1.2-packagekitglib-1.0.
97.48 Preparing to unpack .../32-gir1.2-packagekitglib-1.0_1.1.13-2ubuntu1.1_amd64.deb ...
97.48 Unpacking gir1.2-packagekitglib-1.0 (1.1.13-2ubuntu1.1) ...
97.52 Selecting previously unselected package libproxy1v5:amd64.
97.52 Preparing to unpack .../33-libproxy1v5_0.4.15-10ubuntu1.2_amd64.deb ...
97.53 Unpacking libproxy1v5:amd64 (0.4.15-10ubuntu1.2) ...
97.56 Selecting previously unselected package glib-networking-common.
97.56 Preparing to unpack .../34-glib-networking-common_2.64.2-1ubuntu0.1_all.deb ...
97.57 Unpacking glib-networking-common (2.64.2-1ubuntu0.1) ...
97.60 Selecting previously unselected package glib-networking-services.
97.60 Preparing to unpack .../35-glib-networking-services_2.64.2-1ubuntu0.1_amd64.deb ...
97.61 Unpacking glib-networking-services (2.64.2-1ubuntu0.1) ...
97.64 Selecting previously unselected package gsettings-desktop-schemas.
97.64 Preparing to unpack .../36-gsettings-desktop-schemas_3.36.0-1ubuntu1_all.deb ...
97.65 Unpacking gsettings-desktop-schemas (3.36.0-1ubuntu1) ...
97.70 Selecting previously unselected package glib-networking:amd64.
97.70 Preparing to unpack .../37-glib-networking_2.64.2-1ubuntu0.1_amd64.deb ...
97.70 Unpacking glib-networking:amd64 (2.64.2-1ubuntu0.1) ...
97.74 Selecting previously unselected package libbrotli1:amd64.
97.74 Preparing to unpack .../38-libbrotli1_1.0.7-6ubuntu0.1_amd64.deb ...
97.75 Unpacking libbrotli1:amd64 (1.0.7-6ubuntu0.1) ...
97.81 Selecting previously unselected package libsoup2.4-1:amd64.
97.81 Preparing to unpack .../39-libsoup2.4-1_2.70.0-1_amd64.deb ...
97.82 Unpacking libsoup2.4-1:amd64 (2.70.0-1) ...
97.88 Selecting previously unselected package libstemmer0d:amd64.
97.88 Preparing to unpack .../40-libstemmer0d_0+svn585-2_amd64.deb ...
97.88 Unpacking libstemmer0d:amd64 (0+svn585-2) ...
97.93 Selecting previously unselected package libappstream4:amd64.
97.93 Preparing to unpack .../41-libappstream4_0.12.10-2_amd64.deb ...
97.93 Unpacking libappstream4:amd64 (0.12.10-2) ...
97.97 Selecting previously unselected package libglib2.0-bin.
97.97 Preparing to unpack .../42-libglib2.0-bin_2.64.6-1~ubuntu20.04.6_amd64.deb ...
97.98 Unpacking libglib2.0-bin (2.64.6-1~ubuntu20.04.6) ...
98.03 Selecting previously unselected package libgstreamer1.0-0:amd64.
98.03 Preparing to unpack .../43-libgstreamer1.0-0_1.16.3-0ubuntu1.1_amd64.deb ...
98.03 Unpacking libgstreamer1.0-0:amd64 (1.16.3-0ubuntu1.1) ...
98.14 Selecting previously unselected package libpolkit-agent-1-0:amd64.
98.14 Preparing to unpack .../44-libpolkit-agent-1-0_0.105-26ubuntu1.3_amd64.deb ...
98.14 Unpacking libpolkit-agent-1-0:amd64 (0.105-26ubuntu1.3) ...
98.19 Selecting previously unselected package policykit-1.
98.19 Preparing to unpack .../45-policykit-1_0.105-26ubuntu1.3_amd64.deb ...
98.20 Unpacking policykit-1 (0.105-26ubuntu1.3) ...
98.27 Selecting previously unselected package python3-certifi.
98.27 Preparing to unpack .../46-python3-certifi_2019.11.28-1_all.deb ...
98.28 Unpacking python3-certifi (2019.11.28-1) ...
98.33 Selecting previously unselected package python3-chardet.
98.33 Preparing to unpack .../47-python3-chardet_3.0.4-4build1_all.deb ...
98.33 Unpacking python3-chardet (3.0.4-4build1) ...
98.39 Selecting previously unselected package python3-idna.
98.39 Preparing to unpack .../48-python3-idna_2.8-1_all.deb ...
98.39 Unpacking python3-idna (2.8-1) ...
98.43 Selecting previously unselected package python3-urllib3.
98.43 Preparing to unpack .../49-python3-urllib3_1.25.8-2ubuntu0.3_all.deb ...
98.44 Unpacking python3-urllib3 (1.25.8-2ubuntu0.3) ...
98.48 Selecting previously unselected package python3-requests.
98.48 Preparing to unpack .../50-python3-requests_2.22.0-2ubuntu1.1_all.deb ...
98.49 Unpacking python3-requests (2.22.0-2ubuntu1.1) ...
98.52 Selecting previously unselected package python3-requests-unixsocket.
98.52 Preparing to unpack .../51-python3-requests-unixsocket_0.2.0-2_all.deb ...
98.53 Unpacking python3-requests-unixsocket (0.2.0-2) ...
98.57 Selecting previously unselected package python3-software-properties.
98.57 Preparing to unpack .../52-python3-software-properties_0.99.9.12_all.deb ...
98.57 Unpacking python3-software-properties (0.99.9.12) ...
98.62 Selecting previously unselected package packagekit.
98.62 Preparing to unpack .../53-packagekit_1.1.13-2ubuntu1.1_amd64.deb ...
98.63 Unpacking packagekit (1.1.13-2ubuntu1.1) ...
98.71 Selecting previously unselected package software-properties-common.
98.72 Preparing to unpack .../54-software-properties-common_0.99.9.12_all.deb ...
98.72 Unpacking software-properties-common (0.99.9.12) ...
98.77 Setting up python3-pkg-resources (45.2.0-1ubuntu0.1) ...
98.96 Setting up liblmdb0:amd64 (0.9.24-1) ...
98.97 Setting up systemd-sysv (245.4-4ubuntu3.22) ...
98.99 Setting up libkeyutils1:amd64 (1.6-6ubuntu1.1) ...
99.00 Setting up libproxy1v5:amd64 (0.4.15-10ubuntu1.2) ...
99.01 Setting up libpsl5:amd64 (0.21.0-1ubuntu1) ...
99.03 Setting up libyaml-0-2:amd64 (0.2.2-1) ...
99.04 Setting up libicu66:amd64 (66.1-2ubuntu2.1) ...
99.05 Setting up libbrotli1:amd64 (1.0.7-6ubuntu0.1) ...
99.06 Setting up libpackagekit-glib2-18:amd64 (1.1.13-2ubuntu1.1) ...
99.08 Setting up libkrb5support0:amd64 (1.17-6ubuntu4.4) ...
99.09 Setting up libcap2-bin (1:2.32-1ubuntu0.1) ...
99.11 Setting up libdconf1:amd64 (0.36.0-1) ...
99.12 Setting up python3-six (1.14.0-2) ...
99.26 Setting up libglib2.0-data (2.64.6-1~ubuntu20.04.6) ...
99.27 Setting up python3-chardet (3.0.4-4build1) ...
99.50 Setting up python3-certifi (2019.11.28-1) ...
99.63 Setting up libdbus-1-3:amd64 (1.12.16-2ubuntu2.3) ...
99.64 Setting up dbus (1.12.16-2ubuntu2.3) ...
99.79 Setting up python3-idna (2.8-1) ...
100.0 Setting up libk5crypto3:amd64 (1.17-6ubuntu4.4) ...
100.0 Setting up python3-urllib3 (1.25.8-2ubuntu0.3) ...
100.2 Setting up python-apt-common (2.0.1ubuntu0.20.04.1) ...
100.2 Setting up libpam-systemd:amd64 (245.4-4ubuntu3.22) ...
100.3 Setting up libgirepository-1.0-1:amd64 (1.64.1-1~ubuntu20.04.1) ...
100.3 Setting up libkrb5-3:amd64 (1.17-6ubuntu4.4) ...
100.4 Setting up libstemmer0d:amd64 (0+svn585-2) ...
100.4 Setting up glib-networking-common (2.64.2-1ubuntu0.1) ...

101.7 Setting up packagekit (1.1.13-2ubuntu1.1) ...
101.7 invoke-rc.d: could not determine current runlevel
101.7 invoke-rc.d: policy-rc.d denied execution of force-reload.
101.7 Failed to open connection to "system" message bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
101.8 Created symlink /etc/systemd/user/sockets.target.wants/pk-debconf-helper.socket → /usr/lib/systemd/user/pk-debconf-helper.socket.
101.8 Setting up software-properties-common (0.99.9.12) ...
102.0 Processing triggers for libc-bin (2.31-0ubuntu9.12) ...
102.0 Processing triggers for dbus (1.12.16-2ubuntu2.3) ...
106.6 Hit:1 https://developer.download.nvidia.cn/compute/cuda/repos/ubuntu2004/x86_64  InRelease
106.8 Hit:2 http://security.ubuntu.com/ubuntu focal-security InRelease
117.4 Get:3 http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu focal InRelease [23.8 kB]
118.2 Get:4 http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu focal/main amd64 Packages [66.5 kB]
125.1 Hit:5 http://archive.ubuntu.com/ubuntu focal InRelease
125.4 Hit:6 http://archive.ubuntu.com/ubuntu focal-updates InRelease
125.6 Hit:7 http://archive.ubuntu.com/ubuntu focal-backports InRelease
125.8 Fetched 90.3 kB in 20s (4523 B/s)
125.8 Reading package lists...
127.8 Hit:1 https://developer.download.nvidia.cn/compute/cuda/repos/ubuntu2004/x86_64  InRelease
128.3 Hit:2 http://security.ubuntu.com/ubuntu focal-security InRelease
131.2 Hit:3 http://archive.ubuntu.com/ubuntu focal InRelease
131.4 Hit:4 http://archive.ubuntu.com/ubuntu focal-updates InRelease
131.7 Hit:5 http://archive.ubuntu.com/ubuntu focal-backports InRelease
138.4 Hit:6 http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu focal InRelease
138.5 Reading package lists...
139.4 Installing Python PIP
147.5 debconf: delaying package configuration, since apt-utils is not installed
147.5 Selecting previously unselected package python-pip-whl.
(Reading database ... 12691 files and directories currently installed.)
147.5 Preparing to unpack .../0-python-pip-whl_20.0.2-5ubuntu1.10_all.deb ...
147.5 Unpacking python-pip-whl (20.0.2-5ubuntu1.10) ...
147.7 Selecting previously unselected package python3-lib2to3.
147.7 Preparing to unpack .../1-python3-lib2to3_3.8.10-0ubuntu1~20.04_all.deb ...
147.7 Unpacking python3-lib2to3 (3.8.10-0ubuntu1~20.04) ...
147.8 Selecting previously unselected package python3-distutils.
147.8 Preparing to unpack .../2-python3-distutils_3.8.10-0ubuntu1~20.04_all.deb ...
147.8 Unpacking python3-distutils (3.8.10-0ubuntu1~20.04) ...
147.9 Selecting previously unselected package python3-setuptools.
147.9 Preparing to unpack .../3-python3-setuptools_45.2.0-1ubuntu0.1_all.deb ...
147.9 Unpacking python3-setuptools (45.2.0-1ubuntu0.1) ...
147.9 Selecting previously unselected package python3-wheel.
147.9 Preparing to unpack .../4-python3-wheel_0.34.2-1ubuntu0.1_all.deb ...
147.9 Unpacking python3-wheel (0.34.2-1ubuntu0.1) ...
148.0 Selecting previously unselected package python3-pip.
148.0 Preparing to unpack .../5-python3-pip_20.0.2-5ubuntu1.10_all.deb ...
148.0 Unpacking python3-pip (20.0.2-5ubuntu1.10) ...
148.1 Setting up python3-wheel (0.34.2-1ubuntu0.1) ...
148.2 Setting up python-pip-whl (20.0.2-5ubuntu1.10) ...
148.2 Setting up python3-lib2to3 (3.8.10-0ubuntu1~20.04) ...
148.3 Setting up python3-distutils (3.8.10-0ubuntu1~20.04) ...
148.4 Setting up python3-setuptools (45.2.0-1ubuntu0.1) ...
148.7 Setting up python3-pip (20.0.2-5ubuntu1.10) ...
149.4 Requirement already satisfied: pip in /usr/local/lib/python3.8/dist-packages (23.3.1)
150.1 WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
150.9 Requirement already satisfied: shyaml in /usr/local/lib/python3.8/dist-packages (0.6.2)
151.2 Requirement already satisfied: pyyaml in /usr/local/lib/python3.8/dist-packages (from shyaml) (5.1)
151.6 WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
151.7 Ubuntu: Release:  20.04, good!
151.7 Installing Required Requisites
244.0 debconf: delaying package configuration, since apt-utils is not installed
(Reading database ... 13326 files and directories currently installed.)
244.1 Preparing to unpack .../00-procps_2%3a3.3.16-1ubuntu2.4_amd64.deb ...
244.2 Unpacking procps (2:3.3.16-1ubuntu2.4) over (2:3.3.16-1ubuntu2.3) ...
244.3 Selecting previously unselected package ucf.
244.3 Preparing to unpack .../01-ucf_3.0038+nmu1_all.deb ...
244.3 Moving old data out of the way
244.3 Unpacking ucf (3.0038+nmu1) ...
244.4 Selecting previously unselected package libnuma1:amd64.
244.4 Preparing to unpack .../02-libnuma1_2.0.12-1_amd64.deb ...
244.4 Unpacking libnuma1:amd64 (2.0.12-1) ...
244.4 Selecting previously unselected package libpng16-16:amd64.
244.4 Preparing to unpack .../03-libpng16-16_1.6.37-2_amd64.deb ...
244.4 Unpacking libpng16-16:amd64 (1.6.37-2) ...
244.5 Selecting previously unselected package libusb-1.0-0:amd64.
244.5 Preparing to unpack .../04-libusb-1.0-0_2%3a1.0.23-2build1_amd64.deb ...
244.5 Unpacking libusb-1.0-0:amd64 (2:1.0.23-2build1) ...
244.5 Selecting previously unselected package fonts-dejavu-core.
244.5 Preparing to unpack .../05-fonts-dejavu-core_2.37-1_all.deb ...
244.5 Unpacking fonts-dejavu-core (2.37-1) ...
244.6 Selecting previously unselected package fontconfig-config.
244.6 Preparing to unpack .../06-fontconfig-config_2.13.1-2ubuntu3_all.deb ...
244.6 Unpacking fontconfig-config (2.13.1-2ubuntu3) ...
244.7 Selecting previously unselected package libblas3:amd64.
244.7 Preparing to unpack .../07-libblas3_3.9.0-1build1_amd64.deb ...
244.7 Unpacking libblas3:amd64 (3.9.0-1build1) ...
244.7 Selecting previously unselected package libquadmath0:amd64.
244.7 Preparing to unpack .../08-libquadmath0_10.5.0-1ubuntu1~20.04_amd64.deb ...
244.7 Unpacking libquadmath0:amd64 (10.5.0-1ubuntu1~20.04) ...
244.8 Selecting previously unselected package libgfortran5:amd64.
244.8 Preparing to unpack .../09-libgfortran5_10.5.0-1ubuntu1~20.04_amd64.deb ...
244.8 Unpacking libgfortran5:amd64 (10.5.0-1ubuntu1~20.04) ...
244.9 Selecting previously unselected package liblapack3:amd64.
244.9 Preparing to unpack .../10-liblapack3_3.9.0-1build1_amd64.deb ...
244.9 Unpacking liblapack3:amd64 (3.9.0-1build1) ...
245.1 Selecting previously unselected package python3-numpy.
245.1 Preparing to unpack .../11-python3-numpy_1%3a1.17.4-5ubuntu3.1_amd64.deb ...
245.1 Unpacking python3-numpy (1:1.17.4-5ubuntu3.1) ...
245.4 Selecting previously unselected package gdal-data.
245.4 Preparing to unpack .../12-gdal-data_3.4.3+dfsg-1~focal0_all.deb ...
245.4 Unpacking gdal-data (3.4.3+dfsg-1~focal0) ...
245.5 Selecting previously unselected package libarpack2:amd64.
245.5 Preparing to unpack .../13-libarpack2_3.7.0-3_amd64.deb ...
245.5 Unpacking libarpack2:amd64 (3.7.0-3) ...
245.6 Selecting previously unselected package libsuperlu5:amd64.
245.6 Preparing to unpack .../14-libsuperlu5_5.2.1+dfsg1-4_amd64.deb ...
245.6 Unpacking libsuperlu5:amd64 (5.2.1+dfsg1-4) ...
245.6 Selecting previously unselected package libarmadillo9.
245.6 Preparing to unpack .../15-libarmadillo9_1%3a9.800.4+dfsg-1build1_amd64.deb ...
245.6 Unpacking libarmadillo9 (1:9.800.4+dfsg-1build1) ...
245.7 Selecting previously unselected package libsnappy1v5:amd64.
245.7 Preparing to unpack .../16-libsnappy1v5_1.1.8-1build1_amd64.deb ...
245.7 Unpacking libsnappy1v5:amd64 (1.1.8-1build1) ...
245.7 Selecting previously unselected package libblosc1.
245.7 Preparing to unpack .../17-libblosc1_1.17.1+ds1-1_amd64.deb ...
245.7 Unpacking libblosc1 (1.17.1+ds1-1) ...
……
291.0 update-alternatives: using /usr/share/icons/Adwaita/cursor.theme to provide /usr/share/icons/default/index.theme (x-cursor-theme) in auto mode
291.0 Setting up libgtk2.0-0:amd64 (2.24.32-4ubuntu4) ...
291.0 Setting up humanity-icon-theme (0.6.15) ...
291.2 Setting up ubuntu-mono (19.04-0ubuntu3) ...
291.3 Processing triggers for libc-bin (2.31-0ubuntu9.12) ...
291.3 Processing triggers for libgdk-pixbuf2.0-0:amd64 (2.40.0+dfsg-3ubuntu0.4) ...
291.4 Installing OpenSfM Dependencies
295.4 debconf: delaying package configuration, since apt-utils is not installed
295.5 Selecting previously unselected package libcxsparse3:amd64.
(Reading database ... 29505 files and directories currently installed.)
295.5 Preparing to unpack .../libcxsparse3_1%3a5.7.1+dfsg-2_amd64.deb ...
295.5 Unpacking libcxsparse3:amd64 (1:5.7.1+dfsg-2) ...
295.6 Selecting previously unselected package libgflags2.2.
295.6 Preparing to unpack .../libgflags2.2_2.2.2-1build1_amd64.deb ...
295.6 Unpacking libgflags2.2 (2.2.2-1build1) ...
295.6 Selecting previously unselected package libunwind8:amd64.
295.6 Preparing to unpack .../libunwind8_1.2.1-9ubuntu0.1_amd64.deb ...
295.6 Unpacking libunwind8:amd64 (1.2.1-9ubuntu0.1) ...
295.7 Selecting previously unselected package libgoogle-glog0v5.
295.7 Preparing to unpack .../libgoogle-glog0v5_0.4.0-1build1_amd64.deb ...
295.7 Unpacking libgoogle-glog0v5 (0.4.0-1build1) ...
295.7 Setting up libunwind8:amd64 (1.2.1-9ubuntu0.1) ...
295.8 Setting up libcxsparse3:amd64 (1:5.7.1+dfsg-2) ...
295.8 Setting up libgflags2.2 (2.2.2-1build1) ...
295.8 Setting up libgoogle-glog0v5 (0.4.0-1build1) ...
295.8 Processing triggers for libc-bin (2.31-0ubuntu9.12) ...
295.9 Installing OpenMVS Dependencies
299.9 debconf: delaying package configuration, since apt-utils is not installed
299.9 Selecting previously unselected package libboost-iostreams1.71.0:amd64.
(Reading database ... 29535 files and directories currently installed.)
299.9 Preparing to unpack .../libboost-iostreams1.71.0_1.71.0-6ubuntu6_amd64.deb ...
300.0 Unpacking libboost-iostreams1.71.0:amd64 (1.71.0-6ubuntu6) ...
300.0 Selecting previously unselected package libboost-program-options1.71.0:amd64.
300.0 Preparing to unpack .../libboost-program-options1.71.0_1.71.0-6ubuntu6_amd64.deb ...
300.0 Unpacking libboost-program-options1.71.0:amd64 (1.71.0-6ubuntu6) ...
300.1 Selecting previously unselected package libboost-serialization1.71.0:amd64.
300.1 Preparing to unpack .../libboost-serialization1.71.0_1.71.0-6ubuntu6_amd64.deb ...
300.1 Unpacking libboost-serialization1.71.0:amd64 (1.71.0-6ubuntu6) ...
300.2 Selecting previously unselected package libboost-system1.71.0:amd64.
300.2 Preparing to unpack .../libboost-system1.71.0_1.71.0-6ubuntu6_amd64.deb ...
300.2 Unpacking libboost-system1.71.0:amd64 (1.71.0-6ubuntu6) ...
300.3 Setting up libboost-iostreams1.71.0:amd64 (1.71.0-6ubuntu6) ...
300.3 Setting up libboost-serialization1.71.0:amd64 (1.71.0-6ubuntu6) ...
300.3 Setting up libboost-system1.71.0:amd64 (1.71.0-6ubuntu6) ...
300.3 Setting up libboost-program-options1.71.0:amd64 (1.71.0-6ubuntu6) ...
300.3 Processing triggers for libc-bin (2.31-0ubuntu9.12) ...
300.7 Traceback (most recent call last):
300.7   File "/code/run.py", line 15, in <module>
300.7     from opendm.utils import get_processing_results_paths, rm_r
300.7   File "/code/opendm/utils.py", line 5, in <module>
300.7     from opendm.photo import find_largest_photo_dims
300.7   File "/code/opendm/photo.py", line 17, in <module>
300.7     from opendm import get_image_size
300.7   File "/code/opendm/get_image_size.py", line 2, in <module>
300.7     import cv2
300.7 ModuleNotFoundError: No module named 'cv2'
------
Dockerfile:44
--------------------
  43 |     # Also run a smoke test on ODM and OpenSfM
  44 | >>> RUN bash configure.sh installruntimedepsonly \
  45 | >>>   && apt-get clean \
  46 | >>>   && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
  47 | >>>   && bash run.sh --help \
  48 | >>>   && bash -c "eval $(python3 /code/opendm/context.py) && python3 -c 'from opensfm import io, pymap'"
  49 |     # Entry point
--------------------
ERROR: failed to solve: process "/bin/sh -c bash configure.sh installruntimedepsonly   && apt-get clean   && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*   && bash run.sh --help   && bash -c \"eval $(python3 /code/opendm/context.py) && python3 -c 'from opensfm import io, pymap'\"" did not complete successfully: exit code: 1

What should be the expected behavior? If this is a feature request, please describe in detail the changes you think should be made to the code, citing files and lines where changes should be made, if possible.

docker install odm-gpu sucessful

How can we reproduce this? What steps did you do to trigger the problem? If this is an issue with processing a dataset, YOU MUST include a copy of your dataset AND task output log, uploaded on Google Drive or Dropbox (otherwise we cannot reproduce this).

@xueshuai0922
Copy link
Author

a same issue[https://github.com//issues/1652] which sloved ,change 20.04TLS . but my dockerfile has been make base layer:FROM nvidia/cuda:11.2.2-devel-ubuntu20.04 AS builder

@zfb132
Copy link
Contributor

zfb132 commented Jan 4, 2024

Can you paste the entire log?

245.7 Preparing to unpack .../17-libblosc1_1.17.1+ds1-1_amd64.deb ...
245.7 Unpacking libblosc1 (1.17.1+ds1-1) ...
……
291.0 update-alternatives: using /usr/share/icons/Adwaita/cursor.theme to provide /usr/share/icons/default/index.theme (x-cursor-theme) in auto mode
291.0 Setting up libgtk2.0-0:amd64 (2.24.32-4ubuntu4) ...

Your issue is related to OpenCV. But I can't find any information about installing the prereqs. You should make sure all the prereqs installed successfully.

ODM/snap/snapcraft.yaml

Lines 93 to 107 in 1283df2

stage-packages:
- libavcodec58
- libavformat58
- libflann1.9
- libgtk2.0-0
- libjpeg-turbo8
- libopenjpip7
- liblapack3
- libpng16-16
- libproj19
- libswscale5
- libtbb2
- libtiff5
- libwebpdemux2
- libxext6

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

No branches or pull requests

2 participants