AttributeError: 'NoneType' object has no attribute 'gcp_path'

Hi everybody

I type the following command in my linux (18.04) terminal

docker run -it --rm -v “$(pwd)/odm_projects/project_22/images:/code/images” -v “$(pwd)/odm_projects/project_22/orthophoto:/code/odm_orthophoto” -v “$(pwd)/odm_projects/project_22/georeferencing:/code/odm_georeferencing” opendronemap/odm --gcp gcp_list.txt

The program stop with
File “/code/opendm/osfm.py”, line 149, in setup
gcp_path = reconstruction.gcp.gcp_path
AttributeError: ‘NoneType’ object has no attribute ‘gcp_path’
(before , I have a warning: GCP file does not exist:, however I have a “gcp_list.txt” in my project directory)

My structure is

/home/myname/project_22
/home/myname/project_22/gcp_list.txt
/home/myname/project_22/images

If I don’t include “–gcp gcp_list.txt” in my command, the gcp file is note used (gcp:none)

Thanks for your help

Make sure to mount the path to your gcp_list.txt (same as the other folders, but for the file).

Thank you. I have corrected my order and it works well.

2 Likes