[GRASS-user] first littel experience with wxpython GUI

Hello all!
now I started wxpython the first time (willing to work).

First problem:
gis.m GUI shows in the start panel only thos mapsets where I can access to modify.
wxpython shows all mapsets present, but then crashes when I try to access those which were created by another user. I did not see any information about the owner of the mapset.
This is annoying when you have several users working on a location.
I have myself at least 3 users: one working from my computer on the data at the server, and at least 2 users of the serve via remote access.

I think we'll need there the sam filter as in the gis.m start panel.

I had this on both machines running ubuntu 7.10 and the newest GRASS 6.3.cvs. The server (where students access with remote access to desktop) is a 64 bit machine.

Thanks!
Manuel

--

_______________________________________________________________________
Dr. Manuel Seeger
Wiss. Assistent Scientific Assistant
Physische Geographie Dpt. of Physical Geography
FB VI - Geographie/Geowissenschaften Geography/Geosciences
Universität Trier University of Trier
D - 54286 Trier
Tel.: +49-651-201 4557
Fax: +49-651-201 3976
Web: http://www-neu.uni-trier.de/index.php?id=9607

Hi,

2008/3/18, Dr. Manuel Seeger <seeger@uni-trier.de>:

wxpython shows all mapsets present, but then crashes when I try to

by default it shows mapsets in the search path ('g.mapsets -p'). You
can modify search patch using g.mapsets or from 'Config->GRASS working
environment->Mapset access').

access those which were created by another user. I did not see any
information about the owner of the mapset.

I will add information about owner/group to the 'Mapsets access' dialog.

Martin

This is annoying when you have several users working on a location.
I have myself at least 3 users: one working from my computer on the data
at the server, and at least 2 users of the serve via remote access.

I think we'll need there the sam filter as in the gis.m start panel.

I had this on both machines running ubuntu 7.10 and the newest GRASS
6.3.cvs. The server (where students access with remote access to
desktop) is a 64 bit machine.

Thanks!
Manuel

--

_______________________________________________________________________
Dr. Manuel Seeger
Wiss. Assistent Scientific Assistant
Physische Geographie Dpt. of Physical Geography
FB VI - Geographie/Geowissenschaften Geography/Geosciences
Universität Trier University of Trier
D - 54286 Trier
Tel.: +49-651-201 4557
Fax: +49-651-201 3976
Web: http://www-neu.uni-trier.de/index.php?id=9607

_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

--
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa *

Hi,

2008/3/18, Dr. Manuel Seeger <seeger@uni-trier.de>:

[snip]

wxpython shows all mapsets present, but then crashes when I try to
access those which were created by another user. I did not see any

[snip]

It seems to work on my laptop, can you send me error message, traceback?

Martin

--
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa *

Hi Martin,
excuse me for the delay, I was outside the office.

Here is the error:

GRASS 6.3.svn (Attert_Praktikum):~ > ERROR: MAPSET Anne - permission denied
ERROR: MAPSET Anne - permission denied

GRASS_INFO_ERROR(497,1): MAPSET Anne - permission denied
GRASS_INFO_END(497,1)
Traceback (most recent call last):
  File "/usr/local/grass-6.3.svn/etc/wxpython/wxgui.py", line 1360, in <module>
    sys.exit(main())
  File "/usr/local/grass-6.3.svn/etc/wxpython/wxgui.py", line 1353, in main
    app = GMApp(workspaceFile)
  File "/usr/local/grass-6.3.svn/etc/wxpython/wxgui.py", line 1275, in __init__
    wx.App.__init__(self, False)
  File "/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_core.py", line 7836, in __init__
    self._BootstrapApp()
  File "/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_core.py", line 7433, in _BootstrapApp
    return _core_.PyApp__BootstrapApp(*args, **kwargs)
  File "/usr/local/grass-6.3.svn/etc/wxpython/wxgui.py", line 1291, in OnInit
    workspace = self.workspaceFile)
  File "/usr/local/grass-6.3.svn/etc/wxpython/wxgui.py", line 157, in __init__
    self.NewDisplay(show=False)
  File "/usr/local/grass-6.3.svn/etc/wxpython/wxgui.py", line 1027, in NewDisplay
    auimgr=self._auimgr, showMapDisplay=show)
  File "/usr/local/grass-6.3.svn/etc/wxpython/gui_modules/wxgui_utils.py", line 77, in __init__
    self.Map = render.Map() # instance of render.Map to be associated with display
  File "/usr/local/grass-6.3.svn/etc/wxpython/gui_modules/render.py", line 201, in __init__
    self.mapfile = utils.GetTempfile()
  File "/usr/local/grass-6.3.svn/etc/wxpython/gui_modules/utils.py", line 41, in GetTempfile
    "pid=%d" % os.getpid()])
  File "/usr/local/grass-6.3.svn/etc/wxpython/gui_modules/gcmd.py", line 361, in __init__
    self.PrintModuleOutput()))
gui_modules.gcmd.CmdError

Greetings
Manuel

Martin Landa schrieb:

Hi,

2008/3/18, Dr. Manuel Seeger <seeger@uni-trier.de>:

[snip]
  

wxpython shows all mapsets present, but then crashes when I try to
access those which were created by another user. I did not see any
    

[snip]

It seems to work on my laptop, can you send me error message, traceback?

Martin

--

_______________________________________________________________________
Dr. Manuel Seeger
Wiss. Assistent Scientific Assistant
Physische Geographie Dpt. of Physical Geography
FB VI - Geographie/Geowissenschaften Geography/Geosciences
Universität Trier University of Trier
D - 54286 Trier
Tel.: +49-651-201 4557
Fax: +49-651-201 3976
Web: http://www-neu.uni-trier.de/index.php?id=9607

Hi,

2008/3/20, Dr. Manuel Seeger <seeger@uni-trier.de>:

GRASS 6.3.svn (Attert_Praktikum):~ > ERROR: MAPSET Anne - permission denied
ERROR: MAPSET Anne - permission denied
ERROR: MAPSET Anne - permission denied
ERROR: MAPSET Anne - permission denied

These errors are not GUI-related, you have simply no access to this
mapset. I will fix wxGUI not to crash. In any case you need to set up
permissions if you want to access this mapset.

Martin

GRASS_INFO_ERROR(497,1): MAPSET Anne - permission denied
GRASS_INFO_END(497,1)
Traceback (most recent call last):
  File "/usr/local/grass-6.3.svn/etc/wxpython/wxgui.py", line 1360, in
<module>
    sys.exit(main())
  File "/usr/local/grass-6.3.svn/etc/wxpython/wxgui.py", line 1353, in main
    app = GMApp(workspaceFile)
  File "/usr/local/grass-6.3.svn/etc/wxpython/wxgui.py", line 1275, in
__init__
    wx.App.__init__(self, False)
  File
"/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_core.py", line
7836, in __init__
    self._BootstrapApp()
  File
"/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_core.py", line
7433, in _BootstrapApp
    return _core_.PyApp__BootstrapApp(*args, **kwargs)
  File "/usr/local/grass-6.3.svn/etc/wxpython/wxgui.py", line 1291, in
OnInit
    workspace = self.workspaceFile)
  File "/usr/local/grass-6.3.svn/etc/wxpython/wxgui.py", line 157, in
__init__
    self.NewDisplay(show=False)
  File "/usr/local/grass-6.3.svn/etc/wxpython/wxgui.py", line 1027, in
NewDisplay
    auimgr=self._auimgr, showMapDisplay=show)
  File
"/usr/local/grass-6.3.svn/etc/wxpython/gui_modules/wxgui_utils.py", line
77, in __init__
    self.Map = render.Map() # instance of render.Map to be associated
with display
  File "/usr/local/grass-6.3.svn/etc/wxpython/gui_modules/render.py",
line 201, in __init__
    self.mapfile = utils.GetTempfile()
  File "/usr/local/grass-6.3.svn/etc/wxpython/gui_modules/utils.py",
line 41, in GetTempfile
    "pid=%d" % os.getpid()])
  File "/usr/local/grass-6.3.svn/etc/wxpython/gui_modules/gcmd.py", line
361, in __init__
    self.PrintModuleOutput()))
gui_modules.gcmd.CmdError

Greetings
Manuel

Martin Landa schrieb:

> Hi,
>
> 2008/3/18, Dr. Manuel Seeger <seeger@uni-trier.de>:
>
> [snip]
>
>> wxpython shows all mapsets present, but then crashes when I try to
>> access those which were created by another user. I did not see any
>>
> [snip]
>
> It seems to work on my laptop, can you send me error message, traceback?
>
> Martin
>
>

--

_______________________________________________________________________
Dr. Manuel Seeger
Wiss. Assistent Scientific Assistant
Physische Geographie Dpt. of Physical Geography
FB VI - Geographie/Geowissenschaften Geography/Geosciences
Universität Trier University of Trier
D - 54286 Trier
Tel.: +49-651-201 4557
Fax: +49-651-201 3976
Web: http://www-neu.uni-trier.de/index.php?id=9607

--
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa *

Hi,

to be more clear, for running GUI you need to have *write* permission
to the current mapset (g.tempfile is used, not tempfile from Python).
You can add other mapsets to the search patch from 'Config->GRASS
working environment->Mapset access'.

I hope this it helps.

Martin

2008/3/20, Martin Landa <landa.martin@gmail.com>:

Hi,

2008/3/20, Dr. Manuel Seeger <seeger@uni-trier.de>:

> GRASS 6.3.svn (Attert_Praktikum):~ > ERROR: MAPSET Anne - permission denied
> ERROR: MAPSET Anne - permission denied
> ERROR: MAPSET Anne - permission denied
> ERROR: MAPSET Anne - permission denied

These errors are not GUI-related, you have simply no access to this
mapset. I will fix wxGUI not to crash. In any case you need to set up
permissions if you want to access this mapset.

Martin

> GRASS_INFO_ERROR(497,1): MAPSET Anne - permission denied
> GRASS_INFO_END(497,1)
> Traceback (most recent call last):
> File "/usr/local/grass-6.3.svn/etc/wxpython/wxgui.py", line 1360, in
> <module>
> sys.exit(main())
> File "/usr/local/grass-6.3.svn/etc/wxpython/wxgui.py", line 1353, in main
> app = GMApp(workspaceFile)
> File "/usr/local/grass-6.3.svn/etc/wxpython/wxgui.py", line 1275, in
> __init__
> wx.App.__init__(self, False)
> File
> "/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_core.py", line
> 7836, in __init__
> self._BootstrapApp()
> File
> "/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_core.py", line
> 7433, in _BootstrapApp
> return _core_.PyApp__BootstrapApp(*args, **kwargs)
> File "/usr/local/grass-6.3.svn/etc/wxpython/wxgui.py", line 1291, in
> OnInit
> workspace = self.workspaceFile)
> File "/usr/local/grass-6.3.svn/etc/wxpython/wxgui.py", line 157, in
> __init__
> self.NewDisplay(show=False)
> File "/usr/local/grass-6.3.svn/etc/wxpython/wxgui.py", line 1027, in
> NewDisplay
> auimgr=self._auimgr, showMapDisplay=show)
> File
> "/usr/local/grass-6.3.svn/etc/wxpython/gui_modules/wxgui_utils.py", line
> 77, in __init__
> self.Map = render.Map() # instance of render.Map to be associated
> with display
> File "/usr/local/grass-6.3.svn/etc/wxpython/gui_modules/render.py",
> line 201, in __init__
> self.mapfile = utils.GetTempfile()
> File "/usr/local/grass-6.3.svn/etc/wxpython/gui_modules/utils.py",
> line 41, in GetTempfile
> "pid=%d" % os.getpid()])
> File "/usr/local/grass-6.3.svn/etc/wxpython/gui_modules/gcmd.py", line
> 361, in __init__
> self.PrintModuleOutput()))
> gui_modules.gcmd.CmdError
>
> Greetings
> Manuel
>
>
> Martin Landa schrieb:
>
> > Hi,
> >
> > 2008/3/18, Dr. Manuel Seeger <seeger@uni-trier.de>:
> >
> > [snip]
> >
> >> wxpython shows all mapsets present, but then crashes when I try to
> >> access those which were created by another user. I did not see any
> >>
> > [snip]
> >
> > It seems to work on my laptop, can you send me error message, traceback?
> >
> > Martin
> >
> >
>
>
> --
>
>
> _______________________________________________________________________
> Dr. Manuel Seeger
> Wiss. Assistent Scientific Assistant
> Physische Geographie Dpt. of Physical Geography
> FB VI - Geographie/Geowissenschaften Geography/Geosciences
> Universität Trier University of Trier
> D - 54286 Trier
> Tel.: +49-651-201 4557
> Fax: +49-651-201 3976
> Web: http://www-neu.uni-trier.de/index.php?id=9607
>
>

--
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa *

--
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa *

Hi Martin,
the mapset was generated by another user. so i have read, but not write access, when I am in grass (command line or gis.m).
So my suggestion was to identify somehow within the start window the files where i might have write access. So there would be no problem when starting grass -wxpython. as it is eg. at the gis.m, wher you sinply do no see the mapsets where you do not have write access (later on, within grass they'r accessible)

Thanks and best regards!
Manuel

Martin Landa schrieb:

Hi,

2008/3/20, Dr. Manuel Seeger <seeger@uni-trier.de>:
  

GRASS 6.3.svn (Attert_Praktikum):~ > ERROR: MAPSET Anne - permission denied
ERROR: MAPSET Anne - permission denied
    
These errors are not GUI-related, you have simply no access to this
mapset. I will fix wxGUI not to crash. In any case you need to set up
permissions if you want to access this mapset.

Martin

GRASS_INFO_ERROR(497,1): MAPSET Anne - permission denied
GRASS_INFO_END(497,1)
Traceback (most recent call last):
  File "/usr/local/grass-6.3.svn/etc/wxpython/wxgui.py", line 1360, in
<module>
    sys.exit(main())
  File "/usr/local/grass-6.3.svn/etc/wxpython/wxgui.py", line 1353, in main
    app = GMApp(workspaceFile)
  File "/usr/local/grass-6.3.svn/etc/wxpython/wxgui.py", line 1275, in
__init__
    wx.App.__init__(self, False)
  File
"/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_core.py", line
7836, in __init__
    self._BootstrapApp()
  File
"/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_core.py", line
7433, in _BootstrapApp
    return _core_.PyApp__BootstrapApp(*args, **kwargs)
  File "/usr/local/grass-6.3.svn/etc/wxpython/wxgui.py", line 1291, in
OnInit
    workspace = self.workspaceFile)
  File "/usr/local/grass-6.3.svn/etc/wxpython/wxgui.py", line 157, in
__init__
    self.NewDisplay(show=False)
  File "/usr/local/grass-6.3.svn/etc/wxpython/wxgui.py", line 1027, in
NewDisplay
    auimgr=self._auimgr, showMapDisplay=show)
  File
"/usr/local/grass-6.3.svn/etc/wxpython/gui_modules/wxgui_utils.py", line
77, in __init__
    self.Map = render.Map() # instance of render.Map to be associated
with display
  File "/usr/local/grass-6.3.svn/etc/wxpython/gui_modules/render.py",
line 201, in __init__
    self.mapfile = utils.GetTempfile()
  File "/usr/local/grass-6.3.svn/etc/wxpython/gui_modules/utils.py",
line 41, in GetTempfile
    "pid=%d" % os.getpid()])
  File "/usr/local/grass-6.3.svn/etc/wxpython/gui_modules/gcmd.py", line
361, in __init__
    self.PrintModuleOutput()))
gui_modules.gcmd.CmdError

Greetings
Manuel

Martin Landa schrieb:

Hi,
      

>
> 2008/3/18, Dr. Manuel Seeger <seeger@uni-trier.de>:
>
> [snip]
>
>> wxpython shows all mapsets present, but then crashes when I try to
>> access those which were created by another user. I did not see any
>>
> [snip]
>
> It seems to work on my laptop, can you send me error message, traceback?
>
> Martin
>

--

_______________________________________________________________________
Dr. Manuel Seeger
Wiss. Assistent Scientific Assistant
Physische Geographie Dpt. of Physical Geography
FB VI - Geographie/Geowissenschaften Geography/Geosciences
Universität Trier University of Trier
D - 54286 Trier
Tel.: +49-651-201 4557
Fax: +49-651-201 3976
Web: http://www-neu.uni-trier.de/index.php?id=9607

--

_______________________________________________________________________
Dr. Manuel Seeger
Wiss. Assistent Scientific Assistant
Physische Geographie Dpt. of Physical Geography
FB VI - Geographie/Geowissenschaften Geography/Geosciences
Universität Trier University of Trier
D - 54286 Trier
Tel.: +49-651-201 4557
Fax: +49-651-201 3976
Web: http://www-neu.uni-trier.de/index.php?id=9607

Hi,

2008/3/20, Dr. Manuel Seeger <seeger@uni-trier.de>:

Hi Martin,
the mapset was generated by another user. so i have read, but not write
access, when I am in grass (command line or gis.m).

Basically you cannot start GRASS with mapset where you have no
permission to write (I see that those mapsets are not displayed in
TCL/TK welcome screen). It seems to be bug in wxPython start-up
screen, those mapsets should be at least disabled. I will fix it in
trunk.

So my suggestion was to identify somehow within the start window the
files where i might have write access. So there would be no problem when
starting grass -wxpython. as it is eg. at the gis.m, wher you sinply do
no see the mapsets where you do not have write access (later on, within
grass they'r accessible)

yes, you are right now I am starting to get the point:-)

Martin

--
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa *

Martin Landa wrote:

> the mapset was generated by another user. so i have read, but not write
> access, when I am in grass (command line or gis.m).

Basically you cannot start GRASS with mapset where you have no
permission to write (I see that those mapsets are not displayed in
TCL/TK welcome screen). It seems to be bug in wxPython start-up
screen, those mapsets should be at least disabled. I will fix it in
trunk.

GRASS itself requires that you own the current mapset; having write
permission isn't sufficient.

AFAICT, this restriction is a historical artifact. The restriction is
meant to prevent multiple sessions using the same mapset.

A lock file in the user's home directory ensured that a user could
only have one GRASS session active. If a mapset could only be used as
the current mapset by its owner, the combination of this restriction
and the lock file ensured that a mapset couldn't be used by two
sessions concurrently.

Nowadays, the startup code (and also g.mapset) creates the lock file
in the mapset directory. So, there doesn't appear to be any reason to
retain the ownership restriction.

--
Glynn Clements <glynn@gclements.plus.com>