[FWTools] running python scripts
Roy.Mendelssohn at noaa.gov
Fri Jan 12 14:56:19 EST 2007
I know gdal/ogr is available through Fink, but is there a Mac version
of FWTools work, or should it build form source?
On Jan 12, 2007, at 1:30 PM, Frank Warmerdam wrote:
> Travis Kirstine wrote:
>> I had both fwtools and gdal
>> compiled/installed on my machine (linux fc6) and was writing a few
>> scripts in python and everything seemed ok. I then transfered the
>> scripts to a machine with only fwtools installed and attempted
>> to run
>> the scripts and get cannot import gdal error. Do I have to
>> point the
>> the python that is install with the fwtools build (if so how do
>> I do
>> that) or do I have to configure and install gdal from source. I
>> like just to use fwtools so I don't have to track down all
> To use the FWTools Python you need to setup your environment
> properly, or
> invoke the "safe" binaries that do this for you.
> So you could source the fwtools_env.sh (or .csh depending on shell)
> to setup the FWTools environment.
> Or do something like:
> ~/FWTools-1.1.3/bin_safe/python your_script.py
> The second is generally safer.
> 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 | President OSGeo, http://
> FWTools mailing list
> FWTools at lists.maptools.org
"The contents of this message do not reflect any position of the U.S.
Government or NOAA."
Supervisory Operations Research Analyst
Environmental Research Division
Southwest Fisheries Science Center
1352 Lighthouse Avenue
Pacific Grove, CA 93950-2097
e-mail: Roy.Mendelssohn at noaa.gov (Note new e-mail address)
"Old age and treachery will overcome youth and skill."
More information about the FWTools