Bug report #19454

r.info -> make use of Processiong output dir

Added by Markus Mayr over 5 years ago. Updated over 5 years ago.

Status:Closed
Priority:Normal
Assignee:-
Category:Processing/GRASS
Affected QGIS version:3.2 Regression?:No
Operating System:Windows 7 Easy fix?:No
Pull Request or Patch supplied:No Resolution:fixed/implemented
Crashes QGIS or corrupts data:No Copied to github as #:27282

Description

The r.info algorithm generates a temporary report.html file with results. This file is created inside the QGIS binary folder.
In my case, this folder is not allowed to be written to.

C:\PROGRA~1\QGIS3~1.2\bin>r.info map=rast_5b51daa84840d3 --overwrite 1>"report.html"
Zugriff verweigert

Wouldn't it be logical to write this temporary report.html to the Output-Directory as set in the processing settings?
There mitght be other algorithms affected by this.

History

#1 Updated by Alexander Bruy over 5 years ago

  • Status changed from Open to Feedback

Should be fixed in latest master. Please check and report back.

#2 Updated by Markus Mayr over 5 years ago

Sorry, it took a while to install a newer QGIS version whithin my company.

The resulting file seems to be written to the correct path now, but there seems to be a problem with the encoding now:

r.info map=rast_5bf436e9cc8fc3 > "C:/Users/mayrm/AppData/Roaming/QGIS/QGIS3/profiles/default/processing/outputs/report.html" --overwrite
Starting GRASS GIS...
Traceback (most recent call last):
File "C:/PROGRA~1/QGIS3~1.4/apps/qgis/./python/plugins\processing\algs\grass7\Grass7Algorithm.py", line 415, 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 0xf6 in position 81: invalid start byte

Ausführung nach 1.20 Sekunden gescheitert

Lade Ergebnis Layer
Algorithmus 'r.info' beendet
HTML Ausgabe wurde vom Algorithmus erzeugt.
Zum Überprüfen Ergebnisdialog öffnen.

#3 Updated by Giovanni Manghi over 5 years ago

  • Resolution set to fixed/implemented
  • Status changed from Feedback to Closed

The resulting file seems to be written to the correct path now, but there seems to be a problem with the encoding now:

this is another issue that has already been reported. I assume the original issue is fixed. Please reopen if necessary.

Also available in: Atom PDF