Alain, Do you have the GDAL_DRIVER_PATH environment variable set on your Windows system?
C:\>echo %GDAL_DRIVER_PATH% C:\Apps\GDAL\bin\gdalplugins That is what going to make the GDAL dll inside the Python process to find the plugins. GDAL command line tools doesn't need that because they get it from a default path relative to where they are installed ".\gdalplugins". Regards, Ivan > -------Original Message------- > From: Alain Cembro <acem...@yahoo.com> > To: email@example.com > Subject: [gdal-dev] Problem with GDAL Python bindings and ECW format under > Windows > Sent: Jan 25 '11 10:25 > > Hello list, > I have written a Python program to create ECW files. It is working fine > under Linux, but not under Windows XP. > I have installed : > - Python 2.6.6 (the official version) > - gdal-18-1500-core.msi > - gdal-18-1500-ecw.msi > - GDAL-1.8.0.win32-py2.6.exe > I downloaded the last three files at http://vbkto.dyndns.org/sdk/ > > GDAL is working : > - gdalinfo lists the ECW format as available (rw). > - I can create ECW files with gdal_translate. > > But in a Python console, osgeo.gdal.getDriverByName("ECW") return None. > Is it a known problem, or is there something wrong in my installation ? > > Thanks for any help. > > > > > _______________________________________________ > gdal-dev mailing list > firstname.lastname@example.org > http://lists.osgeo.org/mailman/listinfo/gdal-dev > _______________________________________________ gdal-dev mailing list email@example.com http://lists.osgeo.org/mailman/listinfo/gdal-dev