[GRASS-user] grass 7 quick question: how to display map in text mode

2010-07-22 Thread Jarek Jasiewicz

Hi
I need quick answer how can I show map in the text mode in grass7 (no d.mon)


It is because grass 7 wx gui has crashed after trying "save settings" in 
wxgui preferences and wen I try to work GRASS finish his work with 
following message:


I need any possibilities to see map results to track programing results 
on GRASS 7 but unfortuntely I cannot help with that error. It seems 
during "save settings" I blocked something but I cannot find what.


Below is the error message (grass 7 most recent svn, ubuntu 9.10 64 bits)

Thanks for answer
Jarek

Cleaning up temporary files...
Starting GRASS GIS...
Traceback (most recent call last):
 File "/usr/local/grass-7.0.svn/etc/gui/wxpython/gis_set.py", line 37, 
in 

   import gui_modules.goutput
 File 
"/usr/local/grass-7.0.svn/etc/gui/wxpython/gui_modules/goutput.py", line 
37, in 

   import preferences
 File 
"/usr/local/grass-7.0.svn/etc/gui/wxpython/gui_modules/preferences.py", 
line 902, in 

   globalSettings = Settings()
 File 
"/usr/local/grass-7.0.svn/etc/gui/wxpython/gui_modules/preferences.py", 
line 590, in __init__

   self.ReadSettingsFile()
 File 
"/usr/local/grass-7.0.svn/etc/gui/wxpython/gui_modules/preferences.py", 
line 661, in ReadSettingsFile

   self.__ReadFile(filePath, settings)
 File 
"/usr/local/grass-7.0.svn/etc/gui/wxpython/gui_modules/preferences.py", 
line 703, in __ReadFile

   self.Append(settings, group, key, subkey, value)
 File 
"/usr/local/grass-7.0.svn/etc/gui/wxpython/gui_modules/preferences.py", 
line 894, in Append

   dict[group][key][subkey[0]][subkey[1]] = value
TypeError: 'tuple' object does not support item assignment
Error in GUI startup. If necessary, please report this error to the 
GRASS developers.

Switching to text mode now.

Hit RETURN to continue...

Unable to create temporary directory! Exiting.

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


Re: [GRASS-user] grass 7 quick question: how to display map in text mode

2010-07-22 Thread Jarek Jasiewicz

Nikos Alexandris pisze:

Jarek Jasiewicz wrote:
  

I need quick answer how can I show map in the text mode in grass7 (no
d.mon)



Copy-pasting Glynn's answer (in the past) in a thread titled "grass70 and 
display monitor":


--%<---
You can approximate the pre-7.0 workflow using an image viewer which
automatically refreshes the display whenever the file changes. For X,
you can use the ximgview program, e.g.:

export GRASS_PNGFILE=map.bmp
d.erase
ximgview &
export GRASS_PNG_MAPPED=TRUE
export GRASS_PNG_READ=TRUE
# more d.* commands
-->%---

Hope this gets you there. Nikos
  

thanks for answer, but unfortunately no : (
ximgview still need wxpython it is  solution only for old style display 
commands but not for corrupted wx


GRASS 7.0.svn (spearfish60):~ > export GRASS_PNGFILE=map.bmp
GRASS 7.0.svn (spearfish60):~ > d.erase
GRASS 7.0.svn (spearfish60):~ > ximgview &
[1] 29591
GRASS 7.0.svn (spearfish60):~ > Traceback (most recent call last):
 File 
"/usr/local/grass-7.0.svn/etc/gui/wxpython/gui_modules/menuform.py", 
line 86, in 

   import gdialogs
 File 
"/usr/local/grass-7.0.svn/etc/gui/wxpython/gui_modules/gdialogs.py", 
line 44, in 

   import gselect
 File 
"/usr/local/grass-7.0.svn/etc/gui/wxpython/gui_modules/gselect.py", line 
46, in 

   from preferences import globalSettings as UserSettings
 File 
"/usr/local/grass-7.0.svn/etc/gui/wxpython/gui_modules/preferences.py", 
line 902, in 

   globalSettings = Settings()
 File 
"/usr/local/grass-7.0.svn/etc/gui/wxpython/gui_modules/preferences.py", 
line 590, in __init__

   self.ReadSettingsFile()
 File 
"/usr/local/grass-7.0.svn/etc/gui/wxpython/gui_modules/preferences.py", 
line 661, in ReadSettingsFile

   self.__ReadFile(filePath, settings)
 File 
"/usr/local/grass-7.0.svn/etc/gui/wxpython/gui_modules/preferences.py", 
line 703, in __ReadFile

   self.Append(settings, group, key, subkey, value)
 File 
"/usr/local/grass-7.0.svn/etc/gui/wxpython/gui_modules/preferences.py", 
line 894, in Append

   dict[group][key][subkey[0]][subkey[1]] = value
TypeError: 'tuple' object does not support item assignment
^C
[1]+  Exit 1  ximgview

So we back in the same 894 line error
:(

Jarek


  

It is because grass 7 wx gui has crashed after trying "save settings" in
wxgui preferences and wen I try to work GRASS finish his work with
following message:

I need any possibilities to see map results to track programing results
on GRASS 7 but unfortuntely I cannot help with that error. It seems
during "save settings" I blocked something but I cannot find what.

Below is the error message (grass 7 most recent svn, ubuntu 9.10 64 bits)

Thanks for answer
Jarek

Cleaning up temporary files...
Starting GRASS GIS...
Traceback (most recent call last):
  File "/usr/local/grass-7.0.svn/etc/gui/wxpython/gis_set.py", line 37,
in 
import gui_modules.goutput
  File
"/usr/local/grass-7.0.svn/etc/gui/wxpython/gui_modules/goutput.py", line
37, in 
import preferences
  File
"/usr/local/grass-7.0.svn/etc/gui/wxpython/gui_modules/preferences.py",
line 902, in 
globalSettings = Settings()
  File
"/usr/local/grass-7.0.svn/etc/gui/wxpython/gui_modules/preferences.py",
line 590, in __init__
self.ReadSettingsFile()
  File
"/usr/local/grass-7.0.svn/etc/gui/wxpython/gui_modules/preferences.py",
line 661, in ReadSettingsFile
self.__ReadFile(filePath, settings)
  File
"/usr/local/grass-7.0.svn/etc/gui/wxpython/gui_modules/preferences.py",
line 703, in __ReadFile
self.Append(settings, group, key, subkey, value)
  File
"/usr/local/grass-7.0.svn/etc/gui/wxpython/gui_modules/preferences.py",
line 894, in Append
dict[group][key][subkey[0]][subkey[1]] = value
TypeError: 'tuple' object does not support item assignment
Error in GUI startup. If necessary, please report this error to the
GRASS developers.
Switching to text mode now.

Hit RETURN to continue...

Unable to create temporary directory! Exiting.



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


Re: [GRASS-user] grass 7 quick question: how to display map in text mode

2010-07-22 Thread Markus Metz
Could be an erroneous color preference setting that can not be read.
Color preferences must be stored as e.g. 255:255:255 and not
(255,255,255,255).
Open .grass7/wx and search for something like (255,255,255,255) with
values ranging between 0 and 255. If I am right and you find something
like this, please post the complete line of .grass7/wx to the ML,
delete the whole line and start grass7 again.

HTH,

Markus M


Jarek Jasiewicz:
> Hi
> I need quick answer how can I show map in the text mode in grass7 (no d.mon)
>
>
> It is because grass 7 wx gui has crashed after trying "save settings" in
> wxgui preferences and wen I try to work GRASS finish his work with following
> message:
>
> I need any possibilities to see map results to track programing results on
> GRASS 7 but unfortuntely I cannot help with that error. It seems during
> "save settings" I blocked something but I cannot find what.
>
> Below is the error message (grass 7 most recent svn, ubuntu 9.10 64 bits)
>
> Thanks for answer
> Jarek
>
> Cleaning up temporary files...
> Starting GRASS GIS...
> Traceback (most recent call last):
>  File "/usr/local/grass-7.0.svn/etc/gui/wxpython/gis_set.py", line 37, in
> 
>   import gui_modules.goutput
>  File "/usr/local/grass-7.0.svn/etc/gui/wxpython/gui_modules/goutput.py",
> line 37, in 
>   import preferences
>  File
> "/usr/local/grass-7.0.svn/etc/gui/wxpython/gui_modules/preferences.py", line
> 902, in 
>   globalSettings = Settings()
>  File
> "/usr/local/grass-7.0.svn/etc/gui/wxpython/gui_modules/preferences.py", line
> 590, in __init__
>   self.ReadSettingsFile()
>  File
> "/usr/local/grass-7.0.svn/etc/gui/wxpython/gui_modules/preferences.py", line
> 661, in ReadSettingsFile
>   self.__ReadFile(filePath, settings)
>  File
> "/usr/local/grass-7.0.svn/etc/gui/wxpython/gui_modules/preferences.py", line
> 703, in __ReadFile
>   self.Append(settings, group, key, subkey, value)
>  File
> "/usr/local/grass-7.0.svn/etc/gui/wxpython/gui_modules/preferences.py", line
> 894, in Append
>   dict[group][key][subkey[0]][subkey[1]] = value
> TypeError: 'tuple' object does not support item assignment
> Error in GUI startup. If necessary, please report this error to the GRASS
> developers.
> Switching to text mode now.
>
> Hit RETURN to continue...
>
> Unable to create temporary directory! Exiting.
>
> ___
> grass-user mailing list
> grass-user@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
>
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] grass 7 quick question: how to display map in text mode

2010-07-22 Thread Nikos Alexandris
Jarek Jasiewicz wrote:
> >> I need quick answer how can I show map in the text mode in grass7 (no
> >> d.mon)

Nikos Alexandris pisze: 
> > Copy-pasting Glynn's answer (in the past) in a thread titled "grass70 and
> > display monitor":
> > 
> > --%<---
> > You can approximate the pre-7.0 workflow using an image viewer which
> > automatically refreshes the display whenever the file changes. For X,
> > 
> > you can use the ximgview program, e.g.:
> > export GRASS_PNGFILE=map.bmp
> > d.erase
> > ximgview &
> > export GRASS_PNG_MAPPED=TRUE
> > export GRASS_PNG_READ=TRUE
> > # more d.* commands
> > 
> > -->%---

Jarek Jasiewicz wrote: 
> thanks for answer, but unfortunately no : (
> ximgview still need wxpython it is  solution only for old style display
> commands but not for corrupted wx

Hmmm? I recently compiled grass_trunk (as described in the wiki at 
) and the GUI launches 
fine (under Kubuntu 64-bit). I have to note however that I rarely "work" with 
the GUI, so I only assume it works fine.

I have the following in ~/.bash_profile:
--%<---
# grass
export GISBASE=/usr/local/grass-6.4.0svn
export GRASS_GNUPLOT='gnuplot -persist'
export GRASS_WIDTH=640
export GRASS_HEIGHT=480
export GRASS_HTML_BROWSER=firefox
export GRASS_PAGER=cat
export GRASS_WISH=wish
export GRASS_PYTHON=python
export GRASS_MESSAGE_FORMAT=silent
export GRASS_TRUECOLOR=TRUE
export GRASS_TRANSPARENT=TRUE
export GRASS_PNG_AUTO_WRITE=TRUE
--->%--

(Actually I have configured my system as described in the following wiki-page 
)

So, within from a grass7 session, any "d.rast" command (or other drawing) 
creates a file map.png (under the current working directory each time). And I 
can view it with any image viewer. 

> GRASS 7.0.svn (spearfish60):~ > export GRASS_PNGFILE=map.bmp

here you have to draw something, i.e. "d.rast SomeRasterMap"

> GRASS 7.0.svn (spearfish60):~ > d.erase
> GRASS 7.0.svn (spearfish60):~ > ximgview &
> [1] 29591

I think "ximgview &" was suggested as a lightweight and quick viewer, that 
stays open like the (old-)x.mons (...good-bye Xmons :-( ). But this is I think 
irrelevant with this corruption, I think.

Do you launch grass in text-mode? i.e. "grass70 -text GRASSDB/LOCATION/Mapset" 
?

Nikos

---
> GRASS 7.0.svn (spearfish60):~ > Traceback (most recent call last):
>   File
> "/usr/local/grass-7.0.svn/etc/gui/wxpython/gui_modules/menuform.py",
> line 86, in 
> import gdialogs
>   File
> "/usr/local/grass-7.0.svn/etc/gui/wxpython/gui_modules/gdialogs.py",
> line 44, in 
> import gselect
>   File
> "/usr/local/grass-7.0.svn/etc/gui/wxpython/gui_modules/gselect.py", line
> 46, in 
> from preferences import globalSettings as UserSettings
>   File
> "/usr/local/grass-7.0.svn/etc/gui/wxpython/gui_modules/preferences.py",
> line 902, in 
> globalSettings = Settings()
>   File
> "/usr/local/grass-7.0.svn/etc/gui/wxpython/gui_modules/preferences.py",
> line 590, in __init__
> self.ReadSettingsFile()
>   File
> "/usr/local/grass-7.0.svn/etc/gui/wxpython/gui_modules/preferences.py",
> line 661, in ReadSettingsFile
> self.__ReadFile(filePath, settings)
>   File
> "/usr/local/grass-7.0.svn/etc/gui/wxpython/gui_modules/preferences.py",
> line 703, in __ReadFile
> self.Append(settings, group, key, subkey, value)
>   File
> "/usr/local/grass-7.0.svn/etc/gui/wxpython/gui_modules/preferences.py",
> line 894, in Append
> dict[group][key][subkey[0]][subkey[1]] = value
> TypeError: 'tuple' object does not support item assignment
> ^C
> [1]+  Exit 1  ximgview
> 
> So we back in the same 894 line error
> 
> :(
> 
> Jarek

[...]
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] grass 7 quick question: how to display map in text mode

2010-07-22 Thread Nikos Alexandris
Markus Metz wrote:
> Could be an erroneous color preference setting that can not be read.
> Color preferences must be stored as e.g. 255:255:255 and not
> (255,255,255,255).
> Open .grass7/wx and search for something like (255,255,255,255) with
> values ranging between 0 and 255. If I am right and you find something
> like this, please post the complete line of .grass7/wx to the ML,
> delete the whole line and start grass7 again.
> 
> HTH,
> Markus M

[...]

Apologies, I didn't see the expert comment before writing my post. Hopefully 
the above explains the corruption problem.

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


Re: [GRASS-user] grass 7 quick question: how to display map in text mode

2010-07-22 Thread Jarek Jasiewicz

Markus Metz pisze:

Could be an erroneous color preference setting that can not be read.
Color preferences must be stored as e.g. 255:255:255 and not
(255,255,255,255).
Open .grass7/wx and search for something like (255,255,255,255) with
values ranging between 0 and 255. If I am right and you find something
like this, please post the complete line of .grass7/wx to the ML,
delete the whole line and start grass7 again.

  

there is nothing like this, but removing .grass7/wx has made wx working. 
I will create default wx file and gui crashes again. Diff says that 
there are no differences between old and new wx file so I think that 
something in default settings create crash.

thanks and cheers
J.
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] grass 7 quick question: how to display map in text mode

2010-07-22 Thread Hamish
Jarek wrote:
> thanks for answer, but unfortunately no : (
> ximgview still need wxpython it is  solution only for
> old style display commands but not for corrupted wx

Nope, there are two programs, ximgview and wximgview.

Or just use your favourite image viewer for it. When ssh'ing to
the big server I use qiv for this. All you need is something that
updates the view when the image changes. (when out in the field
with terrible internet connection I've even used putty + a web
server to ssh commands + refresh to view the map.png file before).

`qiv --watch map.png`


Hamish



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


Re: [GRASS-user] grass 7 quick question: how to display map in text mode

2010-07-22 Thread Martin Landa
Hi,

2010/7/22 Jarek Jasiewicz :
> there is nothing like this, but removing .grass7/wx has made wx working. I
> will create default wx file and gui crashes again. Diff says that there are
> no differences between old and new wx file so I think that something in
> default settings create crash.

this bug is related to wxNviz, I will fix it ASAP.

Martin

-- 
Martin Landa  * http://gama.fsv.cvut.cz/~landa
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user