[GIS] Getting log error about default locale settings when using GRASS with QGIS

grasspython 3qgis-3qgis-grass-pluginqgis-processing

I downloaded python 3.6, installed it, dowloaded QGIS 3.0.2, installed GDAL, then QGIS, then opened QGIS and tried to use GRASS processing tools. Initially I got the following error:

env: python3: No such file or directory
env: python3: No such file or directory
Execution completed in 0.50 seconds
Results:
{'lake': <QgsProcessingOutputLayerDefinition {'sink':/Users/yalngarpiril/Desktop/MAP/water/ocean/ocean.tif, 'createOptions': {'fileEncoding': 'System'}}>}

I then followed the instructions to add a custom variable on kyngchaos.com. I quit and restarted QGIS and opened the same GRASS processing tool and got a different error:

WARNING: Default locale settings are missing. GRASS running with C locale.
Starting GRASS GIS...
ERROR: Path '/<UNKNOWN>/<UNKNOWN>' doesn't exist
Default locale not found, using UTF-8
Exiting...
WARNING: Default locale settings are missing. GRASS running with C locale.
Starting GRASS GIS...
ERROR: Path '/<UNKNOWN>/<UNKNOWN>' doesn't exist
Default locale not found, using UTF-8
Exiting...
Execution completed in 0.88 seconds
Results:
{'lake': <QgsProcessingOutputLayerDefinition {'sink':/Users/yalngarpiril/Desktop/MAP/water/ocean/ocean.tif, 'createOptions': {'fileEncoding': 'System'}}>}

I'm on a 2010 MacBook Pro running macOS Sierra 10.13.4.

What causes my current error?

Best Answer

The second error can be for not installing the required framework beforehand. Please see the answer in QGIS GRASS Processing Not Working on MacOS post which has two more references to consult.

Related Question