[FWTools] python conflict when using gdal_merge.py Windows XP

Frank Warmerdam warmerdam at pobox.com
Fri Oct 28 12:15:23 EDT 2005


On 10/28/05, kmenke at edac.unm.edu <kmenke at edac.unm.edu> wrote:
> Hi
> I'm trying to run FWTools on a Windows XP Pro box with ArcGIS installed.
> ArcGIS comes with Python 2.1 and FWTools comes with Python 2.3.
>
> When I run gdal_merge.py I recieve the following error.
>
> ImportError: Module use of python23.dll conflicts with this version of
> Python.
>
> I've tried uninstalling Python 2.1 and PythonWin 2.1 that came with
> ArcGIS.  However, when I attempt to run gdal_merge.py I get a Windows
> message box that opens saying "windows cannot open this file:
> gdal_merge.py.
>
> What should I do to get this set up to run correctly?

Kurt,

Are you sure you are using gdal_merge from within the FWTools
Shell?  FWTools should be able to co-exist with other installations
of python, but you can only insure that FWTools stuff will work
properly if you do it from within the right environment.  The
FWTools shell sets up the environment (by calling setfw.bat in
the FWTools directory), but if you just do stuff from a normal
command shell you have no assurance things will work properly.

Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent



More information about the FWTools mailing list