I am trying to use the Python ogr module in the FWTools shell. <br>
<br>
I can type 'python' and then 'import ogr' and I don't get any errors<br>
<br>
but if I try to run a script called hw.py at the FWTools command prompt, I get the below error. <br>
<br>
The contents of hw.py are: <br>
<br>
import os<br>
import ogr<br>
<br>
print "hello world"<br>
<br>
The error is:<br>
<br>
C:\>hw.py<br>
Traceback (most recent call last):<br>
File "C:\hw.py", line 2, in ?<br>
import ogr<br>
File "C:\PROGRA~1\FWTOOL~1.5\pymod\ogr.py", line 244, in ?<br>
import _gdal<br>
ImportError: Module use of python23.dll conflicts with this version of Python.<br>
<br>
Do I have to create/modify any environment variables? <br>
<br>
I do also have ActiveState Python 2.4 on this machine. My goal is
to be able to run Python scripts containing the FW modules from the
FWTools shell without screwing up an ArcDesktop install. <br>
<br>
Thanks, <br>
<br>
David.<br>
<br>
<br>