[Gdal-dev] gdal_merge.py question

Stephen H. Savage Stephen.Savage at asu.edu
Tue Aug 12 11:05:42 EDT 2003


Greetings,

   I'm still having difficulties getting gdal_merge to work.  I've installed 
the latest version of OpenEV.  After installing the OpenEV 1.6 software, the 
environment variables are set as follows:

set OPENEV_HOME=C:\PROGRA~1\Atlantis\OPENEV~1.60
set path=%OPENEV_HOME%\bin;%OPENEV_HOME%\python\Lib;%PATH%
set PYTHONHOME=%OPENEV_HOME%\python
set PYTHONPATH=%OPENEV_HOME%\pymod;%PYTHONHOME%\Numeric;%PYTHONHOME%\Lib

I tried to run this command from a DOS prompt

c:\Program Files\Atlantis\OpenEV 1.60pymod\gdal_merge.py -n 0 -o testout.tif 
c:\ImageFix\34e29n_36.tif c:\ImageFix\34e30n_36.tifpymod\gdal_merge.py -n 0 -o 
testout.tif c:\ImageFix\34e29n_36.tif c:\ImageFix\34e30n_36.tif
  
It reports this in the DOS window:

Traceback (most recent call last):
   File "C:Program Files\Atlantis\OpenEV 1.60\pymod\gdal_merge.py", line 55, 
in ?
	import gdal
   File "C:Program Files\Atlantis\OpenEV 1.60\pymod\gdal_merge.py", line 156, 
in ?
	import _gdal
ImportError: Module use of pyton21.dll conflicts with this version of Python.

I tried to register gdal11.dll by hand with RegSrvr.exe, but it couldn't do it.

Any suggestions?

Thanks,

-Steve

Quoting Gillian Walter <gillian.walter at atlantis-scientific.com>:

> Hi,
> 
> You'll need to set some environment variables (PATH,PYTHONPATH, 
> PYTHONHOME,OPENEVHOME).  If you look at openev.bat in openev's bin 
> directory, you should see these settings.  I think gdal11.dll is in 
> OpenEV's bin directory, so adding the full path of the bin directory to
> 
> the PATH variable (and if that fails, to the PYTHONPATH variable) should
> 
> hopefully fix things.
> 
> -Gillian
> 
> Stephen H. Savage wrote:
> 
> >Greetings,
> >
> >I've recently installed the curreent version of OpenEV.  I'm trying to
> execute 
> >the command "gdal_merge.py -n 0 -o out.tif in1.tif in2.tif" and I get
> an error 
> >message that reads "The application has failed because gdal11.dll was
> not 
> >found..."
> >
> >What do I need to do to make sure gdal utilities see all the .dlls and
> the like?
> >
> >Thanks,
> >
> >-Steve
> >
> >Stephen H. Savage, Ph.D.
> >Department of Anthropology
> >Box 872402
> >Arizona State University
> >Tempe, AZ  85287-2402
> >
> >shsavage at asu.edu
> >
> >http://archaeology.asu.edu/Jordan/index.html
> >
> >_______________________________________________
> >Gdal-dev mailing list
> >Gdal-dev at remotesensing.org
> >http://remotesensing.org/mailman/listinfo/gdal-dev
> >  
> >
> 
> 
> _______________________________________________
> Gdal-dev mailing list
> Gdal-dev at remotesensing.org
> http://remotesensing.org/mailman/listinfo/gdal-dev
> 



Stephen H. Savage, Ph.D.
Department of Anthropology
Box 872402
Arizona State University
Tempe, AZ  85287-2402

shsavage at asu.edu

http://archaeology.asu.edu/Jordan/index.html




More information about the Gdal-dev mailing list