Bug report #20608

r.viewshed fails in Windows due to unicode

Added by matteo ghetta over 5 years ago. Updated over 5 years ago.

Affected QGIS version:3.4.0 Regression?:Yes
Operating System:Windows Easy fix?:No
Pull Request or Patch supplied:No Resolution:duplicate
Crashes QGIS or corrupts data:No Copied to github as #:28428


r.viewshed works fine in Linux while in Windows it is giving an error related to unicode, this the stacktrace:

Traceback (most recent call last):
File "C:/PROGRA~1/QGIS3~1.4/apps/qgis/./python/plugins\processing\algs\grass7\Grass7Algorithm.py", line 411, in processAlgorithm
Grass7Utils.executeGrass(self.commands, feedback, self.outputCommands)
File "C:/PROGRA~1/QGIS3~1.4/apps/qgis/./python/plugins\processing\algs\grass7\Grass7Utils.py", line 372, in executeGrass
for line in iter(proc.stdout.readline, ''):
File "C:\PROGRA~1\QGIS3~1.4\apps\Python37\lib\codecs.py", line 322, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe8 in position 50: invalid continuation byte

tested with the same data in bot platform also on different computers

Related issues

Duplicates QGIS Application - Bug report #20244: Processing/GRASS do not work if Windows regional settings... Closed 2018-10-28


#1 Updated by Giovanni Manghi over 5 years ago

  • Resolution set to duplicate
  • Status changed from Open to Closed

#2 Updated by Jürgen Fischer over 5 years ago

  • Duplicates Bug report #20244: Processing/GRASS do not work if Windows regional settings are not set to EN added

Also available in: Atom PDF