Re: [Qgis-user] [QGIS-Developer] Mac QGIS 3 GRASS fix

2018-07-03 Thread Mr. Stace D Maples
This thread is "Mac QGIS 3 GRASS fix, but I don't see anything that fixes the 
problem. Has anyone managed to get GRASS working in QGIS3 for OSX? I'm running 
the latest installer QGIS-macOS-3.2.0-1.dmg and it's still not working. 

Also, we've put an inquiry in with Andreas Neumann about how to support 
(financially and otherwise) the creation of proper OSX installers that are 
stable enough to depend upon for research and deploy enterprise wide. We've not 
heard back and it's been about 3 weeks. Is there another venue for us to 
contact QGIS.org to try to get this properly funded so we can move on to work 
that matters, rather than installing and uninstalling non-working distributions?

In F,L&T,
Stace Maples 
Geospatial Manager 
Stanford Geospatial Center
@mapninja 
G+, Skype, Hangout: stacey.maples
214.641.0920
Find GeoData: https://earthworks.stanford.edu 
 
Get GeoHelp: https://gis.stanford.edu/
stanfordgis Listserv: https://mailman.stanford.edu/mailman/listinfo/stanfordgis 
 
"I have a map of the United States... actual size. 
It says, "Scale: 1 mile = 1 mile." 
I spent last summer folding it." 
-Steven Wright-
 

On 3/22/18, 6:34 PM, "Qgis-user on behalf of William Kyngesburye" 
 wrote:

Yes, that looks like the source of the problem.  The os.walk() finds the 
color file named "grass" before it has a chance to find the real "grass72" file 
at the top level of the grasspath.  Though this is odd since it looks like 
os.walk by default should return a folder's info before it walks subfolders.

I don't think a file check will help, since it finds a file from the 
returned files list.  I do think the walking the whole grasspath tree is 
excessive.

> On Mar 22, 2018, at 5:56 PM, Nyall Dawson  wrote:
> 
> On 23 March 2018 at 08:47, William Kyngesburye  
wrote:
>> Well, it seems that running any GRASS Processing coughs up this error.
>> Mystery to me, permissions are correct for the app, nothing should be
>> writing to the app, and if it is trying that's wrong.
>> 
>> The error doesn't help me try to figure out what's going on.  Help would 
be
>> appreciated.
> 
> 
> I believe it's this bug:
> 
> https://issues.qgis.org/issues/17555
> 
> The permission errors is caused because it's actually trying to
> execute /Applications/QGIS3.app/Contents/MacOS/grass/etc/colors/grass
> instead of the correct grass binary.
> 
> The bug is caused by this function:
> 
> 
https://github.com/qgis/QGIS/blob/master/python/plugins/processing/algs/grass7/Grass7Utils.py#L130
> 
> It's trying to automatically generate the grass executable path, but
> it's incorrectly finding the colors/grass folder and deciding that
> it's the grass executable. I think inserting a os.path.isfile check
> somewhere around line 145 should fix this, but not having access to an
> osx install I haven't been able to test this.
> 
> Hope that helps -- would be great to have this one sorted for 3.0.1 if
> you can confirm a fix!
> 
> Nyall
> 
>> 
>> On Mar 22, 2018, at 1:10 PM, William Kyngesburye 
>> wrote:
>> 
>> What are you doing?  GRASS plugin tools or Processing GRASS algorithms?
>> 
>> Nothing should be trying to write to the GRASS dir.  There should not be
>> permissions problem reading from the GRASS dir.
>> 
>> On Mar 22, 2018, at 11:00 AM, jehduke...@gmail.com wrote:
>> 
>> Thanks William.  I'm still getting some sort of error using grass.  Not 
sure
>> if this is still related.
>> 
>> 
/var/folders/d3/q41sw4cj5_s479lpjf1z3hwcgn/T/processing_7fd31b05f63f437c84dee066f864d9f9/grassdata/temp_location/PERMANENT:
>> /Applications/QGIS3.app/Contents/MacOS/grass/etc/colors/grass: Permission
>> denied
>> 
/var/folders/d3/q41sw4cj5_s479lpjf1z3hwcgn/T/processing_7fd31b05f63f437c84dee066f864d9f9/grassdata/temp_location/PERMANENT:
>> /Applications/QGIS3.app/Contents/MacOS/grass/etc/colors/grass: Permission
>> denied
>> 
>> 
>> 
>> 
>> On Thu, Mar 22, 2018 at 8:36 AM, William Kyngesburye 

>> wrote:
>>> 
>>> The non-working GRASS in the Mac QGIS 3 should be fixed now.  It appears
>>> the GRASS internals still don't like spaces in the path to GRASS -- this
>>> came from my adding "3" to the QGIS app name with a space.  The app is 
now
>>> without a space, "QGIS3.app".
>>> 
>>> It looks like the missing SAGA is also fixed by the rebuild (don't know
>>> why, it just happened).
>>> 
>>> REMINDER: My QGIS 3 package requires the python.org Python 3.  Other
>>> distributions/installations of Python are not supported (ie Homebrew,
>>> Macports, Anaconda...).
>>> 
>>> -
>>> William Kyngesburye 
>>> http://www.kyngchaos.com/
>>> 
>>> [Trillian]  What are you supposed to do WITH a maniacally depresse

Re: [Qgis-user] [QGIS-Developer] Mac QGIS 3 GRASS fix

2018-07-03 Thread William Kyngesburye
Is it the same error for what the pull request fixes?

"/Applications/QGIS3.app/Contents/MacOS/grass/etc/colors/grass: Permission 
denied"

That should be fixed, but GRASS7 still has unresolved problems in the macOS 
package.  I haven't had time to look at it.

> On Jul 3, 2018, at 6:02 PM, Mr. Stace D Maples  
> wrote:
> 
> Then, it doesn’t work.
>  
> In F,L&T,
> Stace Maples 
> Geospatial Manager 
> Stanford Geospatial Center
> @mapninja 
> G+, Skype, Hangout: stacey.maples
> 214.641.0920
> Find GeoData: https://earthworks.stanford.edu 
> Get GeoHelp: https://gis.stanford.edu/
> stanfordgis Listserv: 
> https://mailman.stanford.edu/mailman/listinfo/stanfordgis 
>  
> "I have a map of the United States... actual size. 
> It says, "Scale: 1 mile = 1 mile." 
> I spent last summer folding it." 
> -Steven Wright-
>  
>  
> From: William Kyngesburye 
> Reply-To: William Kyngesburye 
> Date: Tuesday, July 3, 2018 at 3:54 PM
> To: "Mr. Stace D Maples" 
> Cc: Nyall Dawson , "qgis-user@lists.osgeo.org List" 
> , QGIS Developer 
> Subject: Re: [Qgis-user] [QGIS-Developer] Mac QGIS 3 GRASS fix
>  
> The fix is a pull request that appeared in a later email in this thread, and 
> that has been merged and should be in the latest release.
>  
>> On Jul 3, 2018, at 5:28 PM, Mr. Stace D Maples  
>> wrote:
>>  
>> This thread is "Mac QGIS 3 GRASS fix, but I don't see anything that fixes 
>> the problem. Has anyone managed to get GRASS working in QGIS3 for OSX? I'm 
>> running the latest installer QGIS-macOS-3.2.0-1.dmg and it's still not 
>> working. 
>> 
>> Also, we've put an inquiry in with Andreas Neumann about how to support 
>> (financially and otherwise) the creation of proper OSX installers that are 
>> stable enough to depend upon for research and deploy enterprise wide. We've 
>> not heard back and it's been about 3 weeks. Is there another venue for us to 
>> contact QGIS.org to try to get this properly funded so we can move on to 
>> work that matters, rather than installing and uninstalling non-working 
>> distributions?
>> 
>> In F,L&T,
>> Stace Maples 
>> Geospatial Manager 
>> Stanford Geospatial Center
>> @mapninja 
>> G+, Skype, Hangout: stacey.maples
>> 214.641.0920
>> Find GeoData: https://earthworks.stanford.edu 
>> <https://earthworks.stanford.edu/> 
>> Get GeoHelp: https://gis.stanford.edu/
>> stanfordgis Listserv: 
>> https://mailman.stanford.edu/mailman/listinfo/stanfordgis 
>> 
>> "I have a map of the United States... actual size. 
>> It says, "Scale: 1 mile = 1 mile." 
>> I spent last summer folding it." 
>> -Steven Wright-
>> 
>> 
>> On 3/22/18, 6:34 PM, "Qgis-user on behalf of William Kyngesburye" 
>>  wrote:
>> 
>>Yes, that looks like the source of the problem.  The os.walk() finds the 
>> color file named "grass" before it has a chance to find the real "grass72" 
>> file at the top level of the grasspath.  Though this is odd since it looks 
>> like os.walk by default should return a folder's info before it walks 
>> subfolders.
>> 
>>I don't think a file check will help, since it finds a file from the 
>> returned files list.  I do think the walking the whole grasspath tree is 
>> excessive.
>> 
>> 
>>> On Mar 22, 2018, at 5:56 PM, Nyall Dawson  wrote:
>>> 
>>> On 23 March 2018 at 08:47, William Kyngesburye  
>>> wrote:
>>> 
>>>> Well, it seems that running any GRASS Processing coughs up this error.
>>>> Mystery to me, permissions are correct for the app, nothing should be
>>>> writing to the app, and if it is trying that's wrong.
>>>> 
>>>> The error doesn't help me try to figure out what's going on.  Help would be
>>>> appreciated.
>>> 
>>> 
>>> I believe it's this bug:
>>> 
>>> https://issues.qgis.org/issues/17555
>>> 
>>> The permission errors is caused because it's actually trying to
>>> execute /Applications/QGIS3.app/Contents/MacOS/grass/etc/colors/grass
>>> instead of the correct grass binary.
>>> 
>>> The bug is caused by this function:
>>> 
>>> https://github.com/qgis/QGIS/blob/master/python/plugins/processing/algs/grass7/Grass7Utils.py#L130
>>> 
>>> It's trying to automatically generate the grass executable path, but
>>> it's incorr

Re: [Qgis-user] [QGIS-Developer] Mac QGIS 3 GRASS fix

2018-07-03 Thread Mr. Stace D Maples
Then, it doesn’t work.

In F,L&T,
Stace Maples
Geospatial Manager
Stanford Geospatial Center
@mapninja
G+, Skype, Hangout: stacey.maples
214.641.0920
Find GeoData: https://earthworks.stanford.edu<https://earthworks.stanford.edu/>
Get GeoHelp: https://gis.stanford.edu/
stanfordgis Listserv: https://mailman.stanford.edu/mailman/listinfo/stanfordgis

"I have a map of the United States... actual size.
It says, "Scale: 1 mile = 1 mile."
I spent last summer folding it."
-Steven Wright-


From: William Kyngesburye 
Reply-To: William Kyngesburye 
Date: Tuesday, July 3, 2018 at 3:54 PM
To: "Mr. Stace D Maples" 
Cc: Nyall Dawson , "qgis-user@lists.osgeo.org List" 
, QGIS Developer 
Subject: Re: [Qgis-user] [QGIS-Developer] Mac QGIS 3 GRASS fix

The fix is a pull request that appeared in a later email in this thread, and 
that has been merged and should be in the latest release.

On Jul 3, 2018, at 5:28 PM, Mr. Stace D Maples 
mailto:stacemap...@stanford.edu>> wrote:

This thread is "Mac QGIS 3 GRASS fix, but I don't see anything that fixes the 
problem. Has anyone managed to get GRASS working in QGIS3 for OSX? I'm running 
the latest installer QGIS-macOS-3.2.0-1.dmg and it's still not working.

Also, we've put an inquiry in with Andreas Neumann about how to support 
(financially and otherwise) the creation of proper OSX installers that are 
stable enough to depend upon for research and deploy enterprise wide. We've not 
heard back and it's been about 3 weeks. Is there another venue for us to 
contact QGIS.org<http://QGIS.org> to try to get this properly funded so we can 
move on to work that matters, rather than installing and uninstalling 
non-working distributions?

In F,L&T,
Stace Maples
Geospatial Manager
Stanford Geospatial Center
@mapninja
G+, Skype, Hangout: stacey.maples
214.641.0920
Find GeoData: https://earthworks.stanford.edu <https://earthworks.stanford.edu/>
Get GeoHelp: https://gis.stanford.edu/
stanfordgis Listserv: https://mailman.stanford.edu/mailman/listinfo/stanfordgis

"I have a map of the United States... actual size.
It says, "Scale: 1 mile = 1 mile."
I spent last summer folding it."
-Steven Wright-


On 3/22/18, 6:34 PM, "Qgis-user on behalf of William Kyngesburye" 
mailto:qgis-user-boun...@lists.osgeo.org> on 
behalf of wokl...@kyngchaos.com<mailto:wokl...@kyngchaos.com>> wrote:

   Yes, that looks like the source of the problem.  The os.walk() finds the 
color file named "grass" before it has a chance to find the real "grass72" file 
at the top level of the grasspath.  Though this is odd since it looks like 
os.walk by default should return a folder's info before it walks subfolders.

   I don't think a file check will help, since it finds a file from the 
returned files list.  I do think the walking the whole grasspath tree is 
excessive.


On Mar 22, 2018, at 5:56 PM, Nyall Dawson 
mailto:nyall.daw...@gmail.com>> wrote:

On 23 March 2018 at 08:47, William Kyngesburye 
mailto:wokl...@kyngchaos.com>> wrote:

Well, it seems that running any GRASS Processing coughs up this error.
Mystery to me, permissions are correct for the app, nothing should be
writing to the app, and if it is trying that's wrong.

The error doesn't help me try to figure out what's going on.  Help would be
appreciated.


I believe it's this bug:

https://issues.qgis.org/issues/17555

The permission errors is caused because it's actually trying to
execute /Applications/QGIS3.app/Contents/MacOS/grass/etc/colors/grass
instead of the correct grass binary.

The bug is caused by this function:

https://github.com/qgis/QGIS/blob/master/python/plugins/processing/algs/grass7/Grass7Utils.py#L130

It's trying to automatically generate the grass executable path, but
it's incorrectly finding the colors/grass folder and deciding that
it's the grass executable. I think inserting a os.path.isfile check
somewhere around line 145 should fix this, but not having access to an
osx install I haven't been able to test this.

Hope that helps -- would be great to have this one sorted for 3.0.1 if
you can confirm a fix!

Nyall



On Mar 22, 2018, at 1:10 PM, William Kyngesburye 
wrote:

What are you doing?  GRASS plugin tools or Processing GRASS algorithms?

Nothing should be trying to write to the GRASS dir.  There should not be
permissions problem reading from the GRASS dir.

On Mar 22, 2018, at 11:00 AM, jehduke...@gmail.com wrote:

Thanks William.  I'm still getting some sort of error using grass.  Not sure
if this is still related.

/var/folders/d3/q41sw4cj5_s479lpjf1z3hwcgn/T/processing_7fd31b05f63f437c84dee066f864d9f9/grassdata/temp_location/PERMANENT:
/Applications/QGIS3.app/Contents/MacOS/grass/etc/colors/grass: Permission
denied
/var/folders/d3/q41sw4cj5_s479lpjf1z3hwcgn/T/processing_7fd31b0

Re: [Qgis-user] [QGIS-Developer] Mac QGIS 3 GRASS fix

2018-07-03 Thread William Kyngesburye
The fix is a pull request that appeared in a later email in this thread, and 
that has been merged and should be in the latest release.

> On Jul 3, 2018, at 5:28 PM, Mr. Stace D Maples  
> wrote:
> 
> This thread is "Mac QGIS 3 GRASS fix, but I don't see anything that fixes the 
> problem. Has anyone managed to get GRASS working in QGIS3 for OSX? I'm 
> running the latest installer QGIS-macOS-3.2.0-1.dmg and it's still not 
> working. 
> 
> Also, we've put an inquiry in with Andreas Neumann about how to support 
> (financially and otherwise) the creation of proper OSX installers that are 
> stable enough to depend upon for research and deploy enterprise wide. We've 
> not heard back and it's been about 3 weeks. Is there another venue for us to 
> contact QGIS.org to try to get this properly funded so we can move on to work 
> that matters, rather than installing and uninstalling non-working 
> distributions?
> 
> In F,L&T,
> Stace Maples 
> Geospatial Manager 
> Stanford Geospatial Center
> @mapninja 
> G+, Skype, Hangout: stacey.maples
> 214.641.0920
> Find GeoData: https://earthworks.stanford.edu 
>  
> Get GeoHelp: https://gis.stanford.edu/
> stanfordgis Listserv: 
> https://mailman.stanford.edu/mailman/listinfo/stanfordgis 
> 
> "I have a map of the United States... actual size. 
> It says, "Scale: 1 mile = 1 mile." 
> I spent last summer folding it." 
> -Steven Wright-
> 
> 
> On 3/22/18, 6:34 PM, "Qgis-user on behalf of William Kyngesburye" 
>  wrote:
> 
>Yes, that looks like the source of the problem.  The os.walk() finds the 
> color file named "grass" before it has a chance to find the real "grass72" 
> file at the top level of the grasspath.  Though this is odd since it looks 
> like os.walk by default should return a folder's info before it walks 
> subfolders.
> 
>I don't think a file check will help, since it finds a file from the 
> returned files list.  I do think the walking the whole grasspath tree is 
> excessive.
> 
>> On Mar 22, 2018, at 5:56 PM, Nyall Dawson  wrote:
>> 
>> On 23 March 2018 at 08:47, William Kyngesburye  wrote:
>>> Well, it seems that running any GRASS Processing coughs up this error.
>>> Mystery to me, permissions are correct for the app, nothing should be
>>> writing to the app, and if it is trying that's wrong.
>>> 
>>> The error doesn't help me try to figure out what's going on.  Help would be
>>> appreciated.
>> 
>> 
>> I believe it's this bug:
>> 
>> https://issues.qgis.org/issues/17555
>> 
>> The permission errors is caused because it's actually trying to
>> execute /Applications/QGIS3.app/Contents/MacOS/grass/etc/colors/grass
>> instead of the correct grass binary.
>> 
>> The bug is caused by this function:
>> 
>> https://github.com/qgis/QGIS/blob/master/python/plugins/processing/algs/grass7/Grass7Utils.py#L130
>> 
>> It's trying to automatically generate the grass executable path, but
>> it's incorrectly finding the colors/grass folder and deciding that
>> it's the grass executable. I think inserting a os.path.isfile check
>> somewhere around line 145 should fix this, but not having access to an
>> osx install I haven't been able to test this.
>> 
>> Hope that helps -- would be great to have this one sorted for 3.0.1 if
>> you can confirm a fix!
>> 
>> Nyall
>> 
>>> 
>>> On Mar 22, 2018, at 1:10 PM, William Kyngesburye 
>>> wrote:
>>> 
>>> What are you doing?  GRASS plugin tools or Processing GRASS algorithms?
>>> 
>>> Nothing should be trying to write to the GRASS dir.  There should not be
>>> permissions problem reading from the GRASS dir.
>>> 
>>> On Mar 22, 2018, at 11:00 AM, jehduke...@gmail.com wrote:
>>> 
>>> Thanks William.  I'm still getting some sort of error using grass.  Not sure
>>> if this is still related.
>>> 
>>> /var/folders/d3/q41sw4cj5_s479lpjf1z3hwcgn/T/processing_7fd31b05f63f437c84dee066f864d9f9/grassdata/temp_location/PERMANENT:
>>> /Applications/QGIS3.app/Contents/MacOS/grass/etc/colors/grass: Permission
>>> denied
>>> /var/folders/d3/q41sw4cj5_s479lpjf1z3hwcgn/T/processing_7fd31b05f63f437c84dee066f864d9f9/grassdata/temp_location/PERMANENT:
>>> /Applications/QGIS3.app/Contents/MacOS/grass/etc/colors/grass: Permission
>>> denied
>>> 
>>> 
>>> 
>>> 
>>> On Thu, Mar 22, 2018 at 8:36 AM, William Kyngesburye 
>>> wrote:
 
 The non-working GRASS in the Mac QGIS 3 should be fixed now.  It appears
 the GRASS internals still don't like spaces in the path to GRASS -- this
 came from my adding "3" to the QGIS app name with a space.  The app is now
 without a space, "QGIS3.app".
 
 It looks like the missing SAGA is also fixed by the rebuild (don't know
 why, it just happened).
 
 REMINDER: My QGIS 3 package requires the python.org Python 3.  Other
 distributions/installations of Python are not supported (ie Homebrew,
 Macports, Anaconda...).
 
 -
 William Kyngesburye 
 http://www.kyngchaos.com/
 
 [Trillian]  What are you s

Re: [Qgis-user] [QGIS-Developer] Mac QGIS 3 GRASS fix

2018-03-22 Thread William Kyngesburye
Yes, that looks like the source of the problem.  The os.walk() finds the color 
file named "grass" before it has a chance to find the real "grass72" file at 
the top level of the grasspath.  Though this is odd since it looks like os.walk 
by default should return a folder's info before it walks subfolders.

I don't think a file check will help, since it finds a file from the returned 
files list.  I do think the walking the whole grasspath tree is excessive.

> On Mar 22, 2018, at 5:56 PM, Nyall Dawson  wrote:
> 
> On 23 March 2018 at 08:47, William Kyngesburye  wrote:
>> Well, it seems that running any GRASS Processing coughs up this error.
>> Mystery to me, permissions are correct for the app, nothing should be
>> writing to the app, and if it is trying that's wrong.
>> 
>> The error doesn't help me try to figure out what's going on.  Help would be
>> appreciated.
> 
> 
> I believe it's this bug:
> 
> https://issues.qgis.org/issues/17555
> 
> The permission errors is caused because it's actually trying to
> execute /Applications/QGIS3.app/Contents/MacOS/grass/etc/colors/grass
> instead of the correct grass binary.
> 
> The bug is caused by this function:
> 
> https://github.com/qgis/QGIS/blob/master/python/plugins/processing/algs/grass7/Grass7Utils.py#L130
> 
> It's trying to automatically generate the grass executable path, but
> it's incorrectly finding the colors/grass folder and deciding that
> it's the grass executable. I think inserting a os.path.isfile check
> somewhere around line 145 should fix this, but not having access to an
> osx install I haven't been able to test this.
> 
> Hope that helps -- would be great to have this one sorted for 3.0.1 if
> you can confirm a fix!
> 
> Nyall
> 
>> 
>> On Mar 22, 2018, at 1:10 PM, William Kyngesburye 
>> wrote:
>> 
>> What are you doing?  GRASS plugin tools or Processing GRASS algorithms?
>> 
>> Nothing should be trying to write to the GRASS dir.  There should not be
>> permissions problem reading from the GRASS dir.
>> 
>> On Mar 22, 2018, at 11:00 AM, jehduke...@gmail.com wrote:
>> 
>> Thanks William.  I'm still getting some sort of error using grass.  Not sure
>> if this is still related.
>> 
>> /var/folders/d3/q41sw4cj5_s479lpjf1z3hwcgn/T/processing_7fd31b05f63f437c84dee066f864d9f9/grassdata/temp_location/PERMANENT:
>> /Applications/QGIS3.app/Contents/MacOS/grass/etc/colors/grass: Permission
>> denied
>> /var/folders/d3/q41sw4cj5_s479lpjf1z3hwcgn/T/processing_7fd31b05f63f437c84dee066f864d9f9/grassdata/temp_location/PERMANENT:
>> /Applications/QGIS3.app/Contents/MacOS/grass/etc/colors/grass: Permission
>> denied
>> 
>> 
>> 
>> 
>> On Thu, Mar 22, 2018 at 8:36 AM, William Kyngesburye 
>> wrote:
>>> 
>>> The non-working GRASS in the Mac QGIS 3 should be fixed now.  It appears
>>> the GRASS internals still don't like spaces in the path to GRASS -- this
>>> came from my adding "3" to the QGIS app name with a space.  The app is now
>>> without a space, "QGIS3.app".
>>> 
>>> It looks like the missing SAGA is also fixed by the rebuild (don't know
>>> why, it just happened).
>>> 
>>> REMINDER: My QGIS 3 package requires the python.org Python 3.  Other
>>> distributions/installations of Python are not supported (ie Homebrew,
>>> Macports, Anaconda...).
>>> 
>>> -
>>> William Kyngesburye 
>>> http://www.kyngchaos.com/
>>> 
>>> [Trillian]  What are you supposed to do WITH a maniacally depressed robot?
>>> 
>>> [Marvin]  You think you have problems?  What are you supposed to do if you
>>> ARE a maniacally depressed robot?  No, don't try and answer, I'm 50,000
>>> times more intelligent than you and even I don't know the answer...
>>> 
>>> - HitchHiker's Guide to the Galaxy
>>> 
>>> 
>>> ___
>>> Qgis-user mailing list
>>> Qgis-user@lists.osgeo.org
>>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
>>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>> 
>> 
>> 
>> -
>> William Kyngesburye 
>> http://www.kyngchaos.com/
>> 
>> All generalizations are dangerous, even this one.
>> 
>> 
>> ___
>> Qgis-user mailing list
>> Qgis-user@lists.osgeo.org
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>> 
>> 
>> -
>> William Kyngesburye 
>> http://www.kyngchaos.com/
>> 
>> "We are at war with them. Neither in hatred nor revenge and with no
>> particular pleasure I shall kill every ___ I can until the war is over. That
>> is my duty."
>> 
>> "Don't you even hate 'em?"
>> 
>> "What good would it do if I did? If all the many millions of people of the
>> allied nations devoted an entire year exclusively to hating the  it
>> wouldn't kill one ___ nor shorten the war one day."
>> 
>>  "And it might give 'em all stomach ulcers."
>> 
>> - Tarzan, on war
>> 
>> 
>> ___
>> QGIS-Developer mailing list
>> qgis-develo...@l

Re: [Qgis-user] [QGIS-Developer] Mac QGIS 3 GRASS fix

2018-03-22 Thread Nyall Dawson
On 23 March 2018 at 08:47, William Kyngesburye  wrote:
> Well, it seems that running any GRASS Processing coughs up this error.
> Mystery to me, permissions are correct for the app, nothing should be
> writing to the app, and if it is trying that's wrong.
>
> The error doesn't help me try to figure out what's going on.  Help would be
> appreciated.


I believe it's this bug:

https://issues.qgis.org/issues/17555

The permission errors is caused because it's actually trying to
execute /Applications/QGIS3.app/Contents/MacOS/grass/etc/colors/grass
instead of the correct grass binary.

The bug is caused by this function:

https://github.com/qgis/QGIS/blob/master/python/plugins/processing/algs/grass7/Grass7Utils.py#L130

It's trying to automatically generate the grass executable path, but
it's incorrectly finding the colors/grass folder and deciding that
it's the grass executable. I think inserting a os.path.isfile check
somewhere around line 145 should fix this, but not having access to an
osx install I haven't been able to test this.

Hope that helps -- would be great to have this one sorted for 3.0.1 if
you can confirm a fix!

Nyall

>
> On Mar 22, 2018, at 1:10 PM, William Kyngesburye 
> wrote:
>
> What are you doing?  GRASS plugin tools or Processing GRASS algorithms?
>
> Nothing should be trying to write to the GRASS dir.  There should not be
> permissions problem reading from the GRASS dir.
>
> On Mar 22, 2018, at 11:00 AM, jehduke...@gmail.com wrote:
>
> Thanks William.  I'm still getting some sort of error using grass.  Not sure
> if this is still related.
>
> /var/folders/d3/q41sw4cj5_s479lpjf1z3hwcgn/T/processing_7fd31b05f63f437c84dee066f864d9f9/grassdata/temp_location/PERMANENT:
> /Applications/QGIS3.app/Contents/MacOS/grass/etc/colors/grass: Permission
> denied
> /var/folders/d3/q41sw4cj5_s479lpjf1z3hwcgn/T/processing_7fd31b05f63f437c84dee066f864d9f9/grassdata/temp_location/PERMANENT:
> /Applications/QGIS3.app/Contents/MacOS/grass/etc/colors/grass: Permission
> denied
>
>
>
>
> On Thu, Mar 22, 2018 at 8:36 AM, William Kyngesburye 
> wrote:
>>
>> The non-working GRASS in the Mac QGIS 3 should be fixed now.  It appears
>> the GRASS internals still don't like spaces in the path to GRASS -- this
>> came from my adding "3" to the QGIS app name with a space.  The app is now
>> without a space, "QGIS3.app".
>>
>> It looks like the missing SAGA is also fixed by the rebuild (don't know
>> why, it just happened).
>>
>> REMINDER: My QGIS 3 package requires the python.org Python 3.  Other
>> distributions/installations of Python are not supported (ie Homebrew,
>> Macports, Anaconda...).
>>
>> -
>> William Kyngesburye 
>> http://www.kyngchaos.com/
>>
>> [Trillian]  What are you supposed to do WITH a maniacally depressed robot?
>>
>> [Marvin]  You think you have problems?  What are you supposed to do if you
>> ARE a maniacally depressed robot?  No, don't try and answer, I'm 50,000
>> times more intelligent than you and even I don't know the answer...
>>
>> - HitchHiker's Guide to the Galaxy
>>
>>
>> ___
>> Qgis-user mailing list
>> Qgis-user@lists.osgeo.org
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>
>
>
> -
> William Kyngesburye 
> http://www.kyngchaos.com/
>
> All generalizations are dangerous, even this one.
>
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>
>
> -
> William Kyngesburye 
> http://www.kyngchaos.com/
>
> "We are at war with them. Neither in hatred nor revenge and with no
> particular pleasure I shall kill every ___ I can until the war is over. That
> is my duty."
>
> "Don't you even hate 'em?"
>
> "What good would it do if I did? If all the many millions of people of the
> allied nations devoted an entire year exclusively to hating the  it
> wouldn't kill one ___ nor shorten the war one day."
>
>  "And it might give 'em all stomach ulcers."
>
> - Tarzan, on war
>
>
> ___
> QGIS-Developer mailing list
> qgis-develo...@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] [QGIS-Developer] Mac QGIS 3 GRASS fix

2018-03-22 Thread Tim Sutton
Hi

Ah wow thanks so much - that fixes a big gap in the Mac user experience!

Regards

Tim

> On 22 Mar 2018, at 16:36, William Kyngesburye  wrote:
> 
> The non-working GRASS in the Mac QGIS 3 should be fixed now.  It appears the 
> GRASS internals still don't like spaces in the path to GRASS -- this came 
> from my adding "3" to the QGIS app name with a space.  The app is now without 
> a space, "QGIS3.app".
> 
> It looks like the missing SAGA is also fixed by the rebuild (don't know why, 
> it just happened).
> 
> REMINDER: My QGIS 3 package requires the python.org Python 3.  Other 
> distributions/installations of Python are not supported (ie Homebrew, 
> Macports, Anaconda...).
> 
> -
> William Kyngesburye 
> http://www.kyngchaos.com/
> 
> [Trillian]  What are you supposed to do WITH a maniacally depressed robot?
> 
> [Marvin]  You think you have problems?  What are you supposed to do if you 
> ARE a maniacally depressed robot?  No, don't try and answer, I'm 50,000 times 
> more intelligent than you and even I don't know the answer...
> 
> - HitchHiker's Guide to the Galaxy
> 
> 
> ___
> QGIS-Developer mailing list
> qgis-develo...@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

—







Tim Sutton

Co-founder: Kartoza
Project chair: QGIS.org

Visit http://kartoza.com  to find out about open source:

Desktop GIS programming services
Geospatial web development
GIS Training
Consulting Services

Skype: timlinux
IRC: timlinux on #qgis at freenode.net



signature.asc
Description: Message signed with OpenPGP
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user