GDAL / Error - Can't load requested DLL

The task runs successfully, but I am getting the following errors. I confirmed that the DLLs are in the shown directory.

ERROR 1: Can’t load requested DLL: C:\Program Files\GDAL\gdalplugins\gdal_BAG.dll
126: The specified module could not be found.

ERROR 1: Can’t load requested DLL: C:\Program Files\GDAL\gdalplugins\gdal_BAG.dll
126: The specified module could not be found.
ERROR 1: Can’t load requested DLL: C:\Program Files\GDAL\gdalplugins\gdal_FITS.dll
126: The specified module could not be found.

ERROR 1: Can’t load requested DLL: C:\Program Files\GDAL\gdalplugins\gdal_FITS.dll
126: The specified module could not be found.
ERROR 1: Can’t load requested DLL: C:\Program Files\GDAL\gdalplugins\gdal_GMT.dll
126: The specified module could not be found.

ERROR 1: Can’t load requested DLL: C:\Program Files\GDAL\gdalplugins\gdal_GMT.dll
126: The specified module could not be found.
ERROR 1: Can’t load requested DLL: C:\Program Files\GDAL\gdalplugins\gdal_HDF4.dll
126: The specified module could not be found.

ERROR 1: Can’t load requested DLL: C:\Program Files\GDAL\gdalplugins\gdal_HDF4.dll
126: The specified module could not be found.
ERROR 1: Can’t load requested DLL: C:\Program Files\GDAL\gdalplugins\gdal_HDF4Image.dll
126: The specified module could not be found.

ERROR 1: Can’t load requested DLL: C:\Program Files\GDAL\gdalplugins\gdal_HDF4Image.dll
126: The specified module could not be found.
ERROR 1: Can’t load requested DLL: C:\Program Files\GDAL\gdalplugins\gdal_HDF5.dll
126: The specified module could not be found.

ERROR 1: Can’t load requested DLL: C:\Program Files\GDAL\gdalplugins\gdal_HDF5.dll
126: The specified module could not be found.
ERROR 1: Can’t load requested DLL: C:\Program Files\GDAL\gdalplugins\gdal_HDF5Image.dll
126: The specified module could not be found.

ERROR 1: Can’t load requested DLL: C:\Program Files\GDAL\gdalplugins\gdal_HDF5Image.dll
126: The specified module could not be found.
ERROR 1: Can’t load requested DLL: C:\Program Files\GDAL\gdalplugins\gdal_KEA.dll
126: The specified module could not be found.

ERROR 1: Can’t load requested DLL: C:\Program Files\GDAL\gdalplugins\gdal_KEA.dll
126: The specified module could not be found.
ERROR 1: Can’t load requested DLL: C:\Program Files\GDAL\gdalplugins\gdal_netCDF.dll
126: The specified module could not be found.

ERROR 1: Can’t load requested DLL: C:\Program Files\GDAL\gdalplugins\gdal_netCDF.dll
126: The specified module could not be found.

Where are you getting these errors? Can you post a screenshot?

20210604_webODM_console.pdf (2.0 MB)

see attached console print from a task I am running right now. The error shows up multiple times. Also adding a screen shot of the folder containing the dlls.

Screenshot (20)

It doesn’t impact results though, correct? If so, you can ignore them for the time being.

Yes, despite those errors the task finishes. Was just wondering about it.

1 Like

Correction. It only runs correctly, if I skip the 3D model. Once I run the task with a 3D model it will not finish the calculation.

I have the following instances installed as well as the most recent versions of QGIS and ArcGIS

  • Python 3.7 GDAL-3.0.4 and

  • GDAL 300 (MSVC 2017 Win64)

Log:

webODM_console_GDAL.pdf (112.4 KB)

1 Like

May I ask how you installed WebODM/ODM, and what version(s) you’re currently using?

I am using the native windows webODM 1.9.1 build 18. I used a docker image before.

Hmm, I’m curious as to why it is calling out to C:\Program Files\GDAL

Do you have GDAL installed manually for other programs with an entry for it in your PATH, perchance?

I do use GDAL in QGIS. I could uninstall everything and then install ODM first.

1 Like

For some reason the existing installation of GDAL is being picked up by ODM (which shouldn’t happen, everything should be self-contained within ODM).

It’s a bug though, and will require investigating which paths GDAL looks for DLLs (probably looking at which environment variables that need to be unset in win32env.bat).

@Mr.V can you open an issue on Issues · OpenDroneMap/ODM · GitHub so that we can track this? :pray:

1 Like

Sure, will do. Thank you for looking into this.

1 Like

QGIS should be using its own internal GDAL that comes with OSGeo4W and/or the regular installers, so that also shouldn’t affect QGIS.

Really interesting that you have it installed.

Thanks for raising this!

I can confirm, that once I uninstall the GDAL instances, the error does not come up anymore.

1 Like

And your QGIS should still be working correctly, as well.

Thanks for taking a look at removing your GDAL and unsetting those environment variables!

Yes, QGIS was not using that directory.

1 Like