If you read QGIS: 17.8. Running an external algorithm:
Instead, you must install SAGA and make sure that the SAGA folder is in PATH, so it can be called from the console (just open a console and type saga_cmd to check it)
It is for Linux, but it is the same for Mac OS X: can you use saga_cmd
in the terminal ?
.
If not, you need to fix your PATH variable or you can try to modify the script SagaUtils.py (.../python/plugins/processing/algs/saga/SagaUtils.py) used by the processing module to find the Saga folder installation and execute the algorithms on this basis:
def findSagaFolder():
folder = None
if isMac():
testfolder = os.path.join(QgsApplication.prefixPath(), 'bin')
if os.path.exists(os.path.join(testfolder, 'saga_cmd')):
folder = testfolder
else:
testfolder = '/usr/local/bin'
if os.path.exists(os.path.join(testfolder, 'saga_cmd')):
folder = testfolder
isMac() is for the KingChaos version where saga_cmd
and the libraries are in the Application bundle.
All the other functions of SagaUtils.py use this resulting Saga path.
In my case, for example, I installed saga_cmd
in /Users/me/saga/bin/saga_cmd which is in my PATH and I can use Saga in the masters versions of Larry Shaffer (no Saga installed in the application bundle)
Best Answer
According to Diego Alonso's comments from the mappingGIS blog1, this error is related to QGIS version 2.14. With the upgrade, the standalone installer eliminated the msys folder from GRASS 7 algorithms.
To bypass this error, go to Processing -> Options -> Provider and deactivate all GRASS folders from previous versions. Set these paths as blanks. Then, activate GRASS 7 and fill in
GRASS7 folder
field with its corresponding path.1. Alonso, D. Cómo configurar LAStools en QGIS para manejar datos LiDAR. mappingGIS blog. Post from 8th, April, 2015.