[Osgeo4w-trac] [osgeo4w] #761: gdal-dev: ImportError: DLL load failed while importing _gdal

OSGeo4W trac_osgeo4w at osgeo.org
Tue Sep 27 01:57:19 PDT 2022


#761: gdal-dev: ImportError: DLL load failed while importing _gdal
------------------------+----------------------------
Reporter:  andreaerdna  |       Owner:  osgeo4w-dev@…
    Type:  defect       |      Status:  closed
Priority:  critical     |   Component:  Package
 Version:               |  Resolution:  fixed
Keywords:               |
------------------------+----------------------------
Comment (by andreaerdna):

 It seems adding

 {{{
 call "%OSGEO4W_ROOT%\bin\gdal-dev-env.bat"
 }}}

 in %OSGEO4W_ROOT%\apps\gdal-dev\Scripts\gdal_merge.bat

 fixes the issue for GDAL Merge processing algorithm.

 gdal_merge.bat:
 {{{
 @echo off
 call "%OSGEO4W_ROOT%\bin\o4w_env.bat"
 call "%OSGEO4W_ROOT%\bin\gdal-dev-env.bat"
 python "%OSGEO4W_ROOT%\apps\gdal-dev\Scripts\gdal_merge.py" %*
 }}}
-- 
Ticket URL: <https://trac.osgeo.org/osgeo4w/ticket/761#comment:4>
OSGeo4W <http://trac.osgeo.org/osgeo4w>
OSGeo4W is the Windows installer and package environment for the OSGeo stack.


More information about the Osgeo4w-trac mailing list