[FWTools] problems with openev

Frank Warmerdam fwarmerdam at gmail.com
Sat Jan 22 00:37:07 EST 2005


On Fri, 21 Jan 2005 14:51:28 -0800, Duane Ward <Duane.Ward at pnl.gov> wrote:
> I am a new user of fwtools and have run into a problem.  I unpacked the
> gzipped tarball(FWTools-0.9.4.tar.gz) on a Linux machine and ran the
> install.sh script without error.  When I go to run the gui openev I get
> the following errors:
> Traceback (most recent call last):
>   File "/home/dlw/tmp/FWTools-0.9.4/bin/../pymod/openev.py", line 77, in ?
>     import gviewapp
>   File "/home/dlw/tmp/FWTools-0.9.4/bin/../pymod/gviewapp.py", line 136,
> in ?
>     import gview
>   File "/home/dlw/tmp/FWTools-0.9.4/bin/../pymod/gview.py", line 4365, in ?
>     get_preference('test')
>   File "/home/dlw/tmp/FWTools-0.9.4/bin/../pymod/gview.py", line 4201,
> in get_preference
>     load_preferences()
>   File "/home/dlw/tmp/FWTools-0.9.4/bin/../pymod/gview.py", line 4242,
> in load_preferences
>     set_preference( string.strip(name), string.strip(value) )
>   File "/usr/lib/python2.2/string.py", line 85, in strip
>     return s.strip(chars)
> TypeError: strip() takes no arguments (1 given)
> 
> All the other installed programs seem to be working okay.  Does anyone
> have an ideas as to what might be happening?

Duane,

There are a few funky things going on here. 

First, running openev should use the internal copy of python,
but from the error message it is clear that the python from 
/usr/lib is being used instead. 

Second, I see that in *my* python 2.2, the low level strip method
invoked in string.py has no argument, but it does in 2.3.  I would
guess then that your local (/usr/lib) python scripts like string.py
are getting used, but with the python C binary distributed with
FWTools and they are incompatible. 

How did you invoke openev?  Did you run the script in
bin_safe or run the one in bin directly?  You *should* be able
to run the one in bin if you have setup the environment, but if
you run the one in bin_safe it will setup the environment properly
for sure.

Let me know as if there are issues with the way I force use of
my distributed python I would like to fix it. 

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