Thanks Even for all your help.<br clear="all">But I'm still having trouble.<br><br>I've made sure all possible Python installs are removed. Deleted all Python folders, OSGeo4W folders, uninstalled QGIS.<br>Next I downloaded and installed python-2.7.3.amd64.msi to E:\Python27<br>
Next gdal-19-1600-core.msi. Full install, couldn't set location<br>Next gdal-19-1600-ecw.msi<br>Next GDAL-1.9.1.win32-py2.7.msi. This time I got a red cross in the components panel. I selected 'Install on HD' and put on the bottom E:\Python27 as the location.<br>
<br>I did a quick test with gdalinfo using the GDAL Command prompt in my Start menu and that worked. So I assume GDAL is installed correctly.<br>Next I call gdal_retile.py on this Command prompt and I get this error:<br>
Traceback (most recent call last):<br>
File "C:\Program Files (x86)\GDAL\gdal_retile.py", line 38, in <module><br> import gdal<br> File "E:\Python27\lib\site-packages\gdal.py", line 2, in <module><br> from osgeo.gdal import deprecation_warn<br>
File "E:\Python27\lib\site-packages\osgeo\__init__.py", line 21, in <module><br> _gdal = swig_import_helper()<br> File "E:\Python27\lib\site-packages\osgeo\__init__.py", line 17, in swig_impor<br>
t_helper<br> _mod = imp.load_module('_gdal', fp, pathname, description)<br>ImportError: DLL load failed: %1 is not a valid Win32-application.<br><br>So it seems Python is still not correctly installed for GDAL.<br>
I do see C:\Program Files (x86)\GDAL; in my PATH, but not Python. Should I add it?<br><br>I think the problem is with the location of GDAL-1.9.1.win32-py2.7.msi. How should I install this properly? Leave the default setting and don't install it?<br>
Change the location the my Python27 folder or to my GDAL folder?<br><br>Thanks,<br><br>
Paul<br><br><div class="gmail_quote">2012/9/5 Even Rouault <span dir="ltr"><<a href="mailto:even.rouault@mines-paris.org" target="_blank">even.rouault@mines-paris.org</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Le mercredi 05 septembre 2012 11:44:50, Paul Meems a écrit :<br>
<div class="im">> Hi Even,<br>
><br>
> I need to convert the ECW file to GeoTiff because of license issues. It is<br>
> extremely expensive to host ECW files on GeoServer.<br>
> The converted GeoTiff is 100GB. GeoServer can only handle files up to 2GB<br>
> so I need to create smaller tiles.<br>
<br>
</div>Understood<br>
<div class="im"><br>
> That is what the python script will do for me. I'm hoping I can create<br>
> GeoTiff tiles using the ECW directly without converting it to a large<br>
> GeoTiff first.<br>
><br>
> I tried the files from <a href="http://www.gisinternals.com/sdk/" target="_blank">http://www.gisinternals.com/sdk/</a> but that didn't<br>
> help. I think my problem is more with Python.<br>
><br>
> After updating FWTools with the files from gisinternals I get this error:<br>
> Traceback (most recent call last):<br>
> File "E:\PROGRA~1\FWTOOL~1.7\bin\gdal_retile.py", line 38, in <module><br>
> import gdal<br>
> File "e:\PROGRA~1\FWTOOL~1.7\pymod\gdal.py", line 191, in <module><br>
> import _gdal<br>
> ImportError: No module named _gdal<br>
<br>
</div>Did you use the .bat that defines all the environment needed for FWTools ?<br>
Looks indeed as if Python doesn't know where to find the GDAL Python bindings.<br>
<br>
But try using directly the deliveries of <a href="http://www.gisinternals.com/sdk/" target="_blank">http://www.gisinternals.com/sdk/</a> and<br>
do not mix them with FWTools. The builds at gisinternals come with GDAL Python<br>
bindings too. You will need to install the Python version that matches the<br>
python version of the GDAL python bindings you installed.<br>
<br>
For your needs, assuming you've installed Python 2.7, you would need :<br>
<br>
<a href="http://www.gisinternals.com/sdk/Download.aspx?file=release-1600-gdal-1-9-%0Amapserver-6-0%5Cgdal-19-1600-core.msi" target="_blank">http://www.gisinternals.com/sdk/Download.aspx?file=release-1600-gdal-1-9-<br>
mapserver-6-0\gdal-19-1600-core.msi</a><br>
<a href="http://www.gisinternals.com/sdk/Download.aspx?file=release-1600-gdal-1-9-%0Amapserver-6-0%5Cgdal-19-1600-ecw.msi" target="_blank">http://www.gisinternals.com/sdk/Download.aspx?file=release-1600-gdal-1-9-<br>
mapserver-6-0\gdal-19-1600-ecw.msi</a><br>
<a href="http://www.gisinternals.com/sdk/Download.aspx?file=release-1600-gdal-1-9-%0Amapserver-6-0%5CGDAL-1.9.1.win32-py2.7.msi" target="_blank">http://www.gisinternals.com/sdk/Download.aspx?file=release-1600-gdal-1-9-<br>
mapserver-6-0\GDAL-1.9.1.win32-py2.7.msi</a><br>
<br>
</blockquote></div><br>