« Return to Thread: unable to run gdal_retile.py

Re: unable to run gdal_retile.py

by Mateusz Loskot :: Rate this Message:

Reply to Author | View in Thread

Paul McCullough wrote:

> All,
>
> I am unable to run gdal_retile.py:
> C:\Program Files\FWTools2.0.2>gdal_retile.py
> Traceback (most recent call last):
>   File "C:\PROGRA~1\FWTOOL~1.2\bin\gdal_retile.py", line 35, in <module>
>     import gdal
>   File "C:\PROGRA~1\FWTOOL~1.2\pymod\gdal.py", line 191, in <module>
>     import _gdal
> ImportError: No module named _gdal
>
> I am new to both python and gdal and could use some help.
>
> I have other versions of python installed.
> But it appears that the FWTools shell is using its own version:
>         C:\Program Files\FWTools2.0.2>python -V
>         Python 2.3.4

Paul,

You can not use any other Python with GDAL than that installed together
with FWTools. Check if the other installed Python is not in the PATH and
 PYTHONPATH. If it is, then there is some conflict probably.

Cheers
--
Mateusz Loskot
http://mateusz.loskot.net
_______________________________________________
FWTools mailing list
FWTools@...
http://lists.maptools.org/mailman/listinfo/fwtools
http://fwtools.maptools.org/
--
Mateusz Loskot
http://mateusz.loskot.net

 « Return to Thread: unable to run gdal_retile.py