Comment 4 for bug 435177

Revision history for this message
Ondro Lexa (lexa-ondrej) wrote : Re: [Bug 435177] Re: grass location wizard failed to create location

Output is:
GRASS 6.4.0RC5 (test):~ > g.region -p
ERROR: default region is invalid
       <north field missing>
GRASS 6.4.0RC5 (test):~ >

of course I could set it manually to fix it. But there should be default
region once location is created. Moreover within location there are no
PROJ_INFO, PROJ_UNITS and WIND files created. Only DEFAULT_WIND (with
strange content... only two lines proj: 99 and zone: 0)

Ondrej
--
Institute of Petrology and Structural Geology
Faculty of Science, Charles University
Albertov 6, 128 43 Praha, Czech Republic
mailto:<email address hidden> tel.:+420 22195 1523
http://petrol.natur.cuni.cz/~ondro
http://www.researcherid.com/rid/B-7264-2008

On Tue, Sep 29, 2009 at 1:17 PM, Markus Neteler <email address hidden> wrote:

> Since "ERROR: region for current mapset is not set" you seem to have a
> broken mapset/Location.
>
> Please run "g.region" as suggestion, e.g.
>
> g.region -p
>
> What's the output?
>
> --
> grass location wizard failed to create location
> https://bugs.launchpad.net/bugs/435177
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in “grass” package in Ubuntu: New
>
> Bug description:
> Binary package hint: grass
>
> Using Location wizard in wx gui od grass I've got this error
>
> /usr/lib/grass64/etc/wxpython/gui_modules/gcmd.py:63: DeprecationWarning:
> BaseException.message has been deprecated as of Python 2.6
> self.message = message
> Traceback (most recent call last):
> File "/usr/lib/grass64/etc/wxpython/gis_set.py", line 404, in OnWizard
> gWizard = location_wizard.LocationWizard(self,
> self.tgisdbase.GetValue())
> File "/usr/lib/grass64/etc/wxpython/gui_modules/location_wizard.py", line
> 1742, in __init__
> success = self.OnWizFinished()
> File "/usr/lib/grass64/etc/wxpython/gui_modules/location_wizard.py", line
> 1901, in OnWizFinished
> success = self.Proj4Create(proj4string)
> File "/usr/lib/grass64/etc/wxpython/gui_modules/location_wizard.py", line
> 2031, in Proj4Create
> p = gcmd.Command(cmdlist, stderr=None)
> File "/usr/lib/grass64/etc/wxpython/gui_modules/gcmd.py", line 358, in
> __init__
> _("Error: ") + self.GetError()))
> gui_modules.gcmd.CmdError/usr/lib/grass64/etc/wxpython/gui_modules/gcmd.py:70:
> DeprecationWarning: BaseException.message has been deprecated as of Python
> 2.6
> message=self.message,
>
> and created location was corrupted, i.e. region was not set...
>
> Execution failed: 'g.proj -c proj4=+proj=krovak +a=6377397.155
> +rf=299.1528128 +dx=653 +dy=-212 +dz=449 +no_defs
> +towgs84=570.8,85.7,462.8,4.998,1.587,5.261,3.56 location=test'
>
> Details:
> Error: region for current mapset is not setrun "g.region"
>
> Description: Ubuntu karmic (development branch)
> Release: 9.10
> package: grass-6.4.0~rc5-1 (karmic)
>