Bug report #20821

grass reclass error - inconsitent use of tabs and spaces

Added by Adam Dixon almost 2 years ago. Updated almost 2 years ago.

Status:Rejected
Priority:Normal
Assignee:-
Category:Processing/GRASS
Affected QGIS version:3.4.2 Regression?:No
Operating System:MacOS 10.14 Easy fix?:No
Pull Request or Patch supplied:No Resolution:up/downstream
Crashes QGIS or corrupts data:No Copied to github as #:28640

Description

I kept running into an error with on Mac QGIS 3.4.2, with the error calling inconsistent use of tabs and spaces. I looked for errant tabs in my table, and tried following the suggestion here [https://stackoverflow.com/questions/53544255/i-am-trying-to-run-the-r-reclass-on-qgis-and-keep-getting-an-indentation-error] (the one to change code to handle spaces) and was still not able to get it to work.

I tried again on a windows QGIS 2.18 version and it worked fine so I think there is a bug in 3.4.

Cheers,
A

Here is part of my error message that I think will be helpful:
File "/Applications/QGIS3.app/Contents/MacOS/grass/grass74", line 1697
sys.stdout.write("%s\n" % grass_version)

TabError: inconsistent use of tabs and spaces in indentation
File "/Applications/QGIS3.app/Contents/MacOS/grass/grass74", line 1697
sys.stdout.write("%s\n" % grass_version)

TabError: inconsistent use of tabs and spaces in indentation
Execution completed in 0.68 seconds
Results: {'output': <QgsProcessingOutputLayerDefinition {'sink':/Users/adamdixon/Dropbox/A_School/2020_GrassyMargins/common_RS_datasets_northernPlains/CDL_Iowa/three.tif, 'createOptions': {'fileEncoding': 'System'}}>}

Loading resulting layers
The following layers were not correctly generated.<ul><li>/Users/adamdixon/Dropbox/A_School/2020_GrassyMargins/common_RS_datasets_northernPlains/CDL_Iowa/three.tif</li></ul>You can check the 'Log Messages Panel' in QGIS main window to find more information about the execution of the algorithm.

History

#1 Updated by Alexander Bruy almost 2 years ago

  • Resolution set to up/downstream
  • Status changed from Open to Rejected
  • Category changed from GRASS to Processing/GRASS

GRASS GIS uses Python 2 while QGIS 3.x relies on the Python 3. It is necessary to wait for GRASS 7.8 which will use Python 3.

Also available in: Atom PDF