[GRASS-user] GUI problem

Hi all,

I've met a problem this morning on only one of my project. The map are
displayed but I cannot do anything on GUI, no command message returned
but the message below on GUI console >

Traceback (most recent call last):
  File
"/usr/local/grass-7.4.0svn/gui/wxpython/gui_core/forms.py",
line 836, in OnRun

ret = self._gconsole.RunCmd(cmd, onDone=self.OnDone)
  File
"/usr/local/grass-7.4.0svn/gui/wxpython/core/gconsole.py",
line 467, in RunCmd

self.UpdateHistoryFile(' '.join(command))
  File
"/usr/local/grass-7.4.0svn/gui/wxpython/core/gconsole.py",
line 748, in UpdateHistoryFile

{'filePath': filePath, 'error': e},
UnicodeDecodeError
:
'ascii' codec can't decode byte 0xc3 in position 32: ordinal
not in range(128)

Things seems to work on shell

My system is :
Version de GRASS: 7.4.0svn

Version SVN:: r72071

Date de compilation: 2018-01-13

Plateforme de compilation: x86_64-pc-linux-gnu

GDAL: 2.1.2

PROJ.4: 4.9.3

GEOS: 3.5.1

SQLite: 3.16.2

Python: 2.7.13

wxPython: 3.0.2.0

Plateforme: Linux-4.9.0-5-amd64-x86_64-with-debian-9.4

Hi Frank,

On 30/03/18 11:23, Frank David wrote:

Hi all,

I've met a problem this morning on only one of my project. The map are
displayed but I cannot do anything on GUI, no command message returned
but the message below on GUI console >

Traceback (most recent call last):
   File
"/usr/local/grass-7.4.0svn/gui/wxpython/gui_core/forms.py",
line 836, in OnRun

ret = self._gconsole.RunCmd(cmd, onDone=self.OnDone)
   File
"/usr/local/grass-7.4.0svn/gui/wxpython/core/gconsole.py",
line 467, in RunCmd

self.UpdateHistoryFile(' '.join(command))
   File
"/usr/local/grass-7.4.0svn/gui/wxpython/core/gconsole.py",
line 748, in UpdateHistoryFile

{'filePath': filePath, 'error': e},
UnicodeDecodeError
:
'ascii' codec can't decode byte 0xc3 in position 32: ordinal
not in range(128)

This means that there is some issue with non-ASCII characters (in French it's often accents), either in a path or in an error message. This is a bug and it would be great if you could report it on the bug tacker [1].

But in the meantime, in case the error comes from special characters in a French error message, you could switch the GUI to English and then relaunch it to see what the error message is. If the error is linked to special characters in a path, try to move everything into a pure ASCII path .

Moritz

[1] https://trac.osgeo.org/grass/

Hi Mortiz,

On 31/03/18 17:43, Frank David wrote:

Hi Mortiz,

Le 30/03/2018 à 15:07, Moritz Lennert a écrit :

Hi Frank,

On 30/03/18 11:23, Frank David wrote:

Hi all,

I've met a problem this morning on only one of my project. The map are
displayed but I cannot do anything on GUI, no command message returned
but the message below on GUI console >

Traceback (most recent call last):
File
"/usr/local/grass-7.4.0svn/gui/wxpython/gui_core/forms.py",
line 836, in OnRun

ret = self._gconsole.RunCmd(cmd, onDone=self.OnDone)
File
"/usr/local/grass-7.4.0svn/gui/wxpython/core/gconsole.py",
line 467, in RunCmd

self.UpdateHistoryFile(' '.join(command))
File
"/usr/local/grass-7.4.0svn/gui/wxpython/core/gconsole.py",
line 748, in UpdateHistoryFile

{'filePath': filePath, 'error': e},
UnicodeDecodeError
:
'ascii' codec can't decode byte 0xc3 in position 32: ordinal
not in range(128)

This means that there is some issue with non-ASCII characters (in French it's often accents), either in a path or in an error message. This is a bug and it would be great if you could report it on the bug tacker [1].

But in the meantime, in case the error comes from special characters in a French error message, you could switch the GUI to English and then relaunch it to see what the error message is. If the error is linked to special characters in a path, try to move everything into a pure ASCII path .

Moritz

[1] https://trac.osgeo.org/grass/

Thanks for your reply.

I don't understand from where the accent could come, because I do not remember to have change anything on my project. I did not change path name neither. Can you advice me where to find the problem ?

As I said, it can come from a translated message (the 'error' in the function call that causes the error), i.e. an error message that is normally in English, but someone translated it to French and it thus contains special characters. By changing the language of GRASS to English (in the GUI preferences) you should be able to do whatever you are trying to do and see the English error message.

Again, as I said, this is a bug and should be reported.

Moritz

Thanks for your reply and sorry to have not well understand first… After changing language without success, I noticed that bash_history on the root of Grass project database folders was set in read only (may be because of a our server backup file conflict). Change it to write has solved the problem. I don’t think it was a Grass bug…

Frank