I am quite new to QGIS and working with the external applications such as GRASS.
When trying to launch a GRASS tool from the processing toolbox I get the following error:
Missing dependency. This algorithm cannot be run 🙁
This algorithm
requires GRASS to be run. Unfortunately, it seems that GRASS is not
installed in your system, or it is not correctly configured to be used
from QGIS
Click here to know more about how to install and configure
GRASS to be used with QGIS
When I am using GRASS from the Plugins menu it works. I have GRASS 6.4 installed to my system and running, GRASS 7 installed, but it doesn't run, probably due to some known El Capitan issue. Anyhow, GRASS 6.4 should be working. Moreover, there is also the GRASS that comes with the QGIS installation.
Unfortunately I messed up the path to GRASS that was originally set in Processing -> Options
before I even tried if the original setup works. I tried really every possible path I could think of, to the GRASS-6.4 installation in my applications folder (/Applications/GRASS-6.4.app) and to the GRASS folder in the QGIS installation (/Applications/QGIS.app/Contents/MacOS/grass), I don't get the GRASS tools to working. I reinstalled QGIS to restore the original settings, but obviously I have to delete the particular settings before (but where?), because the path was still as I set it before reinstallation.
SAGA is working from the processing toolbox.
So, long story short:
- Any suggestions what could be the issue? Anyone experiences with running GRASS via processing toolbox with QGIS 2.8 on El Capitan?
- It would be already a great help if someone could give me the original path to GRASS set at "Processing" –> "Options"
Best Answer
Why not upgrading your QGIS version?
To know the GRASS path, you need to know how Processing really works.
With Python in the console, you can obtain the default path (I suppose you use the Kyng Chaos version).
1) For Grass 6.4.x
The script to find the default Grass path is:
Therefore, by default, processing uses the GRASS version installed into the QGIS application with the script grass.sh to launch GRASS and execute commands.
You can let the Processing Options (path to GRASS) empty. QGIS always find the path.
If you want to use another GRASS version (GRASS-6.4.6.app for example), simply change the parameters in the Processing Options with a folder path that contains the grass.sh script (
/Applications/GRASS-6.4.6.app/Contents/MacOS
for example).Result:
2) For Grass 7.x
Same procedure and the file is:
Problem here, I have a GRASS-7.0.app (from GRASS GIS for Mac) installed but no
/Applications/GRASS-7.0.app/Contents/MacOS/grass70.sh
script. The script to launch GRASS-7.0.app is/Applications/GRASS-7.0.app/Contents/MacOS/grass.sh
The solution is to replace grass70.sh by grass.sh in the lines 254-256 of the script
Grass7Utils.py
Original:
Correction:
Result:
Hope this will help you but there are many problems with El Capitan (from GRASS GIS for Mac and Grass Gis 7 does not start in OS X 10.11 El Capitan)