[GRASS-user] Re: read "parts(w)": no such variable

Michael Barton michael.barton at asu.edu
Thu Apr 17 01:50:43 EDT 2008


I'll take a look at this when I get back in town. At least this gives me
some idea how to test for this error.

Michael


On 4/16/08 8:21 PM, "Hamish" <hamish_b at yahoo.com> wrote:

>>>> GRASS 6.3.0RC6 (latlong_ohrfc):~/.ssh > Error in startup script:
>>>> can't read "parts(w)": no such variable
>>>>     while executing
> 
> Michael:
>>> We've tried to trap this and provide better feedback, but if GDAL is
>>> broken/misinstalled/etc., this hits before any error trapping can be
>>> implemented.
> 
> Glynn:
>> AFAIK, this is due to g.region failing. It ought to be possible to
>> detect that g.region failed before you start trying to parse the
>> output.
>> 
>> And even if you can't detect the abnormal termination, you could
>> detect that the output is bogus.
>> 
>> Of course, that won't make everything work, but you could produce a
>> more useful error message.
> 
> 
> yesterday I added this change to make it even more catchy:
>   http://trac.osgeo.org/grass/changeset/31010
> 
> It looks to see if the parts array was created. (the wording could still
> be much improved... perhaps to "Check the g.region module" ?)
> 
> 
> should that get an "exit" or "return" added after the error message?
> or should it be thrown to the command line?
> 
> I had a weird problem with it when I tested it. I renamed bin/g.region
> and created a new g.region with just the shebang & "exit 1" in it.
> 
> The splash startup historical map came up with the output window but then
> froze. The splash map was stuck there until I went into the window
> manager's (fluxbox) window list and selected "maximize" for the "Error"
> window. Then I could see it (full screen) and hit [Ok] and get rid of the
> splash screen and leave gis.m.  I wrote this off as a fluxbox thing, but
> maybe it needs to release the splash before it can make a new error
> message popup box?
> 
> 
> Hamish
> 
> 
> 
>       
> ______________________________________________________________________________
> ______
> Be a better friend, newshound, and
> know-it-all with Yahoo! Mobile.  Try it now.
> http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
> 

__________________________________________
Michael Barton, Professor of Anthropology
Director of Graduate Studies
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton




More information about the grass-user mailing list