OpenDroneMap / ODM

A command line toolkit to generate maps, point clouds, 3D models and DEMs from drone, balloon or kite images. 📷
https://opendronemap.org
GNU Affero General Public License v3.0
4.9k stars 1.11k forks source link

ModuleNotFoundError in Dockerimage #1372

Closed sbonaime closed 2 years ago

sbonaime commented 2 years ago

Debian 4.19.181-1 (2021-03-19) x86_64 GNU/Linux

How did you install OpenDroneMap? (Docker, natively, ...)?


Using default tag: latest
latest: Pulling from opendronemap/odm
Digest: sha256:99de0d7bc0e438b79dbdfbf08bdf5bda4dc8fdb98c2d3fc7d8fb5ba7155624fd
Status: Image is up to date for opendronemap/odm:latest
docker.io/opendronemap/odm:latest

When I start odm with docker, I have the following error

docker run -it --rm -v  /data/images/my_image_dir/:/code/images -v "$(pwd)/odm_georeferencing:/code/odm_georeferencing"     -v "$(pwd)/odm_meshing:/code/odm_meshing"     -v "$(pwd)/odm_dem:/code/odm_dem"     -v "$(pwd)/odm_orthophoto:/code/odm_orthophoto"     -v "$(pwd)/odm_texturing:/code/odm_texturing"     -v "$(pwd)/odm_report:/code/odm_report" opendronemap/odm --orthophoto-png --mesh-octree-depth 12 --ignore-gsd --dtm   --smrf-threshold 0.4 --smrf-window 24 --dsm --pc-csv --pc-las --orthophoto-kmz   --ignore-gsd --feature-quality ultra --max-concurrency 16  --use-hybrid-bundle-adjustment --build-overviews --time --min-num-features 10000

Traceback (most recent call last):
  File "/code/run.py", line 10, in <module>
    from opendm import log
  File "/code/opendm/log.py", line 6, in <module>
    import dateutil.parser
ModuleNotFoundError: No module named 'dateutil'

I have the same problem with opendronemap/nodeodm docker

Previously on the same server, I had no issue. My issue may be related to a recent update

sbonaime commented 2 years ago

I just checked and I don't have the problem with opendronemap/odm:2.6.4 but it starts with 2.6.7

pierotofy commented 2 years ago

Thanks @sbonaime :hand: this is indeed a bug; it looks like the build process failed to install the pip dependencies. (This is the second time this has happened, pypi might be experiencing some network issues as of late). I've made improvements to the build script, so updated and fixed images should be online shortly. :pray:

pierotofy commented 2 years ago

Updated images are online, so this should be fixed (feel free to re-open if it's not). :+1:

sbonaime commented 2 years ago

@pierotofy So the bug was not in the code but rather in the docker process ?

pierotofy commented 2 years ago

In the docker build process, yes.

originlake commented 2 years ago

@pierotofy Is it possible to update the image with tag 2.6.7 as well? It's still not updated.

hyacz commented 2 years ago

@pierotofy I have the same problem with opendronemap/odm:gpu

Job 41735 is waiting to be started...
Job 41735 has started on host h3cg01.
CUDA_VISIBLE_DEVICES=MIG-f11ed404-f6ed-5b7b-84af-2f21446f1959
===== RUN ODM =====
Traceback (most recent call last):
  File "/code/run.py", line 10, in <module>
    from opendm import log
  File "/code/opendm/log.py", line 6, in <module>
    import dateutil.parser
ModuleNotFoundError: No module named 'dateutil'