[FWTools] struggling to import

Frank Warmerdam warmerdam at pobox.com
Mon Jan 23 09:05:03 EST 2006


On 1/23/06, Isabel Sargent <Isabel.Sargent at ordnancesurvey.co.uk> wrote:
> I've downloaded and installed FWTools1.0.0a7 for Windows (and retried it several times) but don't seem to be able to import elements of it into my Python code.
>
> When I try the command
>
> import gdal
>
> , an error occurs at the line
>
> import _gdal
>
> "ImportError: DLL load failed: The specified module could not be found."
>
> Python is therefore finding gdal.py but not _gdap.dll which is in the same folder (and the folder is in sys.path).
>
> I'm completely flummoxed, can anyone suggest where I am going wrong, please?

Isabel,

Are you running this from within the FWTools Shell?  It
does various things to the environment that are necessary.

Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent



More information about the FWTools mailing list