I've come to the conclusion that it is easier to rollback to 2.3 or install both to be able to use gdal from FWTools rather than build gdal with all the options I need.<br><br><div><span class="gmail_quote">On 3/7/06, <b class="gmail_sendername">
Moreau, Jean-Sebastien</b> <<a href="mailto:jmoreau@nrcan.gc.ca">jmoreau@nrcan.gc.ca</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi list,<br><br>I'm tring to use the the gdal python binding in fwtools from python 2.4.<br>In order to do this I've modified the setfwenv.bat so that the python use<br>would be the python2.4 install on my machine:<br><br>
@echo off<br>REM<br>==========================================================================<br>REM This script is normally invoked from FWTools\setfw.bat<br><br>REM The FWTOOLS_OVERRIDE environment variable allows you to set a the
<br>REM install directory in your environment, instead of having to edit<br>REM setfw.bat. This is especially useful if you frequently upgrade to new<br>REM versions, and don't want to have to edit the file every time.<br>
<br>IF exist "%FWTOOLS_OVERRIDE%\setfw.bat" SET FWTOOLS_DIR=%FWTOOLS_OVERRIDE%<br><br>IF exist "%FWTOOLS_DIR%\setfw.bat" goto skip_err<br><br>echo FWTOOLS_DIR not set properly in setfw.bat, please fix and rerun.
<br>goto ALL_DONE<br><br>:SKIP_ERR<br><br>REM PATH=%FWTOOLS_DIR%\bin;%FWTOOLS_DIR%\python;%PATH%<br>PATH=%FWTOOLS_DIR%\bin;D:\Apps\Python24;%PATH%<br>set PYTHONPATH=%FWTOOLS_DIR%\pymod<br>set PROJ_LIB=%FWTOOLS_DIR%\proj_lib
<br>set GEOTIFF_CSV=%FWTOOLS_DIR%\data<br>set GDAL_DATA=%FWTOOLS_DIR%\data<br>set GDAL_DRIVER_PATH=%FWTOOLS_DIR%\gdal_plugins<br>REM set CPL_DEBUG=ON<br><br>:ALL_DONE<br><br>Unfortunatly, when I try to load the gdal module from the python shell, I
<br>get the following message:<br>----------------------------------------------------------------------------<br>--<br>>>> import gdal<br>Traceback (most recent call last):<br> File "<stdin>", line 1, in ?
<br> File "D:\Apps\FWTOOL~1.0A7\pymod\gdal.py", line 191, in ?<br> import _gdal<br>ImportError: Module use of python23.dll conflicts with this version of<br>Python.<br>----------------------------------------------------------------------------
<br>---<br>Is there a way to work things around or do I really need to build gdal from<br>source?<br><br>Thanks in advance!<br><br>Jean-Sébastien Moreau<br><br>Centre d'information topographique de Sherbrooke<br>Ressources naturelles Canada
<br>2144, rue King Ouest, bureau 010<br>Sherbrooke (Québec) J1J 2E8<br>Tél. : (819) 564-5600-ext 295 Téléc. : (819) 564-5698<br>Courrier électronique : <a href="mailto:jmoreau@RNCan.gc.ca">jmoreau@RNCan.gc.ca</a><br><br>
Centre for Topographic Information of Sherbrooke<br>Natural Resources Canada<br>2144, King Street West, Suite 010<br>Sherbrooke, Quebec J1J 2E8<br>Tel.: (819) 564-5600-ext 295 Fax: (819) 564-5698<br>E-mail: <a href="mailto:jmoreau@NRCan.gc.ca">
jmoreau@NRCan.gc.ca</a><br><br><br><br><br>_______________________________________________<br>FWTools mailing list<br><a href="mailto:FWTools@lists.maptools.org">FWTools@lists.maptools.org</a><br><a href="http://lists.maptools.org/mailman/listinfo/fwtools">
http://lists.maptools.org/mailman/listinfo/fwtools</a><br><a href="http://fwtools.maptools.org/">http://fwtools.maptools.org/</a><br></blockquote></div><br>