unable to run gdal_retile.py

View: New views
3 Messages — Rating Filter:   Alert me  

unable to run gdal_retile.py

by Paul McCullough :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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

I am on Windows XP SP2.

Regards,
Paul McCullough

_______________________________________________
FWTools mailing list
FWTools@...
http://lists.maptools.org/mailman/listinfo/fwtools
http://fwtools.maptools.org/

Re: unable to run gdal_retile.py

by Mateusz Loskot :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

Re: unable to run gdal_retile.py

by Paul McCullough :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Sorry for the lateness of the reply.  This problem was caused by a DLL version problem.
I had also installed ESRI ArcMap which installed Crystal Reports.
Crystal Reports puts an older version of its libeay32.dll...
    c:\windows\system32\libeay32.dll (size is 624 KB)
The one that came with FWTools 2.0.2 is...
    C:\Program Files\FWTools2.0.2\bin (size is 1.01 MB)
RE
    http://www.nabble.com/Error-with-Crystal-Reports-XI-td14337284.html
When I swap in the correct DLL the problem goes away.
How to make the 2 versions play well together is for another thread.