Sync grass 6.4.0~rc5-2 (universe) from Debian testing (main)

Bug #435177 reported by Ondro Lexa
14
This bug affects 1 person
Affects Status Importance Assigned to Milestone
grass (Debian)
Fix Released
Unknown
grass (Ubuntu)
Fix Released
Medium
Unassigned

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)

Revision history for this message
Markus Neteler (neteler) wrote :

On command line this works for me (Mandriva):

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
Location test created!

Can you please try this as well? We have to understand if it is a g.proj
problem or a GUI problem.

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

Hi,
it does not work even in command line:
I started grass without GUI (with -text option)
....

GRASS 6.4.0RC5 (cr-sjtsk):~ > 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
ERROR: region for current mapset is not set
       run "g.region"
GRASS 6.4.0RC5 (cr-sjtsk):~ >
....

So it seems that it is g.proj trouble...
If you need more testing, let me know...

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 Sat, Sep 26, 2009 at 11:01 AM, Markus Neteler <email address hidden> wrote:

> On command line this works for me (Mandriva):
>
> 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
> Location test created!
>
> Can you please try this as well? We have to understand if it is a g.proj
> problem or a GUI problem.
>
> --
> 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)
>

Revision history for this message
Markus Neteler (neteler) wrote : Re: grass location wizard failed to create location

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?

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)
>

Revision history for this message
hamish (hamish-b) wrote : Re: grass location wizard failed to create location

this is grass trac bug #654 and debian bug #533738.

https://trac.osgeo.org/grass/ticket/654
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=533738

it is already fixed by the grass-6.4.0~rc5-2 package in Debian for some months.
 (see debian changelog, newLocation.dpatch)

If the karmic package is still at rc5-1, it needs to be updated.
ppa.launchpad.net/ubuntugis has had newer versions available for a long time.

regards,
Hamish

Jorge Castro (jorge)
Changed in grass (Debian):
importance: Undecided → Unknown
status: New → Unknown
Revision history for this message
hamish (hamish-b) wrote :

This is a Serious bug and karmic should not ship without the DebianGIS patch found in Debian's rc5-2. The current rc5-1 Ubuntu package contains a bug which means that users can not create new projects. This is rather crippling usage-wise.

patch fixing this is here:

http://svn.debian.org/viewsvn/pkg-grass/packages/grass/trunk/debian/patches/newlocation.dpatch

thanks,
Hamish
  /
GRASS GIS dev team &
DebianGIS packaging team

Revision history for this message
Alan Boudreault (aboudreault) wrote :

Here's the debdiff patch for karmic.

Changed in grass (Ubuntu):
status: New → In Progress
Revision history for this message
Fabrice Coutadeur (fabricesp) wrote :

Hi,

If you want this debdiff to be sponsored, put the bug status to confirmed. As you attached a debdiff, I assume that it mean you want it to be sponsored.
What test did you performed?

In the meantime, I'll check the debdiff

Thanks,
Fabrice

Changed in grass (Ubuntu):
assignee: nobody → fabrice_sp (fabricesp)
importance: Undecided → Medium
Revision history for this message
Fabrice Coutadeur (fabricesp) wrote :

hmm, if it's fixed in Debian, with the same version, I'd rather sync from Debian.

I'll try to reproduce the bug, build the Debian package, and if it works fine, I'll request the sync.

Fabrice

Revision history for this message
Fabrice Coutadeur (fabricesp) wrote :

The Debian package works fine, and this problem is fixed, so I'll request the sync.

Thanks for your work!

Fabrice

Revision history for this message
Fabrice Coutadeur (fabricesp) wrote :

Please sync grass 6.4.0~rc5-2 (universe) from Debian testing (main)

Changelog entries since current karmic version 6.4.0~rc5-1:

grass (6.4.0~rc5-2) unstable; urgency=low

  * Added a grass menu item (Hamish).
  * Added a grass.menu.in template with related icon.
  * Added a simple x-grass wrapper to allow running grass without a pre-running
    controlling terminal. At least it works within ordinary WMs launchers.
    (closes: #503371)
  * Added newlocation.dpatch patch to manage correctly new locations.
    (closes: #533738)

 -- Francesco Paolo Lovergine <email address hidden> Mon, 13 Jul 2009 13:34:03 +0200

summary: - grass location wizard failed to create location
+ Please sync grass 6.4.0~rc5-2 (universe) from Debian testing (main)
summary: - Please sync grass 6.4.0~rc5-2 (universe) from Debian testing (main)
+ Sync grass 6.4.0~rc5-2 (universe) from Debian testing (main)
Changed in grass (Ubuntu):
assignee: fabrice_sp (fabricesp) → nobody
status: In Progress → Confirmed
Revision history for this message
Alan Boudreault (aboudreault) wrote :

I didn't know that we could sync a package with debian since Karmic is Alpha. Thought bug fix could only been applied with the current package of the release. Good to know.

Revision history for this message
Steve Langasek (vorlon) wrote :

[Updating] grass (6.4.0~rc5-1 [Ubuntu] < 6.4.0~rc5-2 [Debian])
 * Trying to add grass...
  - <grass_6.4.0~rc5-2.dsc: downloading from http://ftp.debian.org/debian/>
  - <grass_6.4.0~rc5-2.diff.gz: downloading from http://ftp.debian.org/debian/>
  - <grass_6.4.0~rc5.orig.tar.gz: already in distro - downloading from librarian>
I: grass [universe] -> grass_6.4.0~rc5-1 [universe].
I: grass [universe] -> grass-doc_6.4.0~rc5-1 [universe].
I: grass [universe] -> grass-dev_6.4.0~rc5-1 [universe].

Changed in grass (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Steve Langasek (vorlon) wrote :

[Updating] grass (6.4.0~rc5-1 [Ubuntu] < 6.4.0~rc5-2 [Debian])
 * Trying to add grass...
  - <grass_6.4.0~rc5-2.dsc: cached>
  - <grass_6.4.0~rc5-2.diff.gz: cached>
  - <grass_6.4.0~rc5.orig.tar.gz: already in distro - downloading from librarian>
I: grass [universe] -> grass_6.4.0~rc5-1 [universe].
I: grass [universe] -> grass-doc_6.4.0~rc5-1 [universe].
I: grass [universe] -> grass-dev_6.4.0~rc5-1 [universe].

Changed in grass (Debian):
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.