Bug report #14339
Mac OS X: GRASS GIS 7.0 correction
Status: | Closed | ||
---|---|---|---|
Priority: | Normal | ||
Assignee: | Giovanni Manghi | ||
Category: | Processing/GRASS | ||
Affected QGIS version: | 2.12.1 | Regression?: | No |
Operating System: | Mac OS X | Easy fix?: | No |
Pull Request or Patch supplied: | No | Resolution: | fixed/implemented |
Crashes QGIS or corrupts data: | No | Copied to github as #: | 22326 |
Description
The original Grass7Utils.py script for Mac OS X is (lines 257-259)
if isMac() and os.path.exists(Grass7Utils.grassPath() + os.sep + 'grass70.sh'):
command = Grass7Utils.grassPath() + os.sep + 'grass70.sh ' \\
+ Grass7Utils.grassMapsetFolder() + '/PERMANENT'
It does not work because in the GRASS 7.0 version of Mac OS X from M.Bartons's http://grassmac.wikidot.com/downloads, the script is grass.sh (and not grass70.sh)
So,
if isMac() and os.path.exists(Grass7Utils.grassPath() + os.sep + '*grass.sh*'):
command = Grass7Utils.grassPath() + os.sep + '*grass.sh* ' \\
+ Grass7Utils.grassMapsetFolder() + '/PERMANENT'
works.
History
#1 Updated by Paolo Cavallini over 8 years ago
- Subject changed from Mac OS X: GRASS GIS 7.0 correctiion to Mac OS X: GRASS GIS 7.0 correction
#2 Updated by Giovanni Manghi over 8 years ago
- Status changed from Open to Feedback
Is that the official download for GRASS on OsX? I think that we rely on another package (see the QGIS download page), is there any difference between the two about how they define the GRASS7 paths?
#3 Updated by Martin Laloux over 8 years ago
Yes, is is probably best known. If you look a http://www.kyngchaos.com/software/grass : For GRASS 7 see Michael Barton's GRASS page
Same if you look at https://grass.osgeo.org/download/software/mac-osx/
I don't know the status of Homebrew GRASS, MacPorts GRASS
#4 Updated by Giovanni Manghi over 8 years ago
- Status changed from Feedback to In Progress
- % Done changed from 0 to 100
- Assignee changed from Victor Olaya to Giovanni Manghi
#5 Updated by Giovanni Manghi over 8 years ago
- Resolution set to fixed/implemented
- Status changed from In Progress to Closed