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

Jarek Jasiewicz jarekj at amu.edu.pl
Thu Jul 22 06:39:55 EDT 2010


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 <module>
    import gdialogs
  File 
"/usr/local/grass-7.0.svn/etc/gui/wxpython/gui_modules/gdialogs.py", 
line 44, in <module>
    import gselect
  File 
"/usr/local/grass-7.0.svn/etc/gui/wxpython/gui_modules/gselect.py", line 
46, in <module>
    from preferences import globalSettings as UserSettings
  File 
"/usr/local/grass-7.0.svn/etc/gui/wxpython/gui_modules/preferences.py", 
line 902, in <module>
    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 <module>
>>     import gui_modules.goutput
>>   File
>> "/usr/local/grass-7.0.svn/etc/gui/wxpython/gui_modules/goutput.py", line
>> 37, in <module>
>>     import preferences
>>   File
>> "/usr/local/grass-7.0.svn/etc/gui/wxpython/gui_modules/preferences.py",
>> line 902, in <module>
>>     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.
>>     



More information about the grass-user mailing list