<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">I figured it out - the break in searchFolder() only breaks the cmd loop, leaving the walking to continue, eventually finding the last occurrence of the cmd.  I posted my fix to the bug report.<div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Mar 22, 2018, at 8:35 PM, Vaclav Petras <<a href="mailto:wenzeslaus@gmail.com" class="">wenzeslaus@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" style="font-family: Helvetica; font-size: 16px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><div class="gmail_extra"><br class="Apple-interchange-newline"><br class=""><div class="gmail_quote">On Thu, Mar 22, 2018 at 6:56 PM, Nyall Dawson<span class="Apple-converted-space"> </span><span dir="ltr" class=""><<a href="mailto:nyall.dawson@gmail.com" target="_blank" class="">nyall.dawson@gmail.com</a>></span><span class="Apple-converted-space"> </span>wrote:<br class=""><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); padding-left: 1ex;"><span class="">On 23 March 2018 at 08:47, William Kyngesburye <<a href="mailto:woklist@kyngchaos.com" target="_blank" class="">woklist@kyngchaos.com</a>> wrote:<br class="">> Well, it seems that running any GRASS Processing coughs up this error.<br class="">> Mystery to me, permissions are correct for the app, nothing should be<br class="">> writing to the app, and if it is trying that's wrong.<br class="">><br class="">> The error doesn't help me try to figure out what's going on.  Help would be<br class="">> appreciated.<br class=""><br class=""><br class=""></span>I believe it's this bug:<br class=""><br class=""><a href="https://issues.qgis.org/issues/17555" rel="noreferrer" target="_blank" class="">https://issues.qgis.org/issues<wbr class="">/17555</a><br class=""><br class="">The permission errors is caused because it's actually trying to<br class="">execute /Applications/QGIS3.app/Conten<wbr class="">ts/MacOS/grass/etc/colors/<wbr class="">grass<br class="">instead of the correct grass binary.<br class=""><br class="">The bug is caused by this function:<br class=""><br class=""><a href="https://github.com/qgis/QGIS/blob/master/python/plugins/processing/algs/grass7/Grass7Utils.py#L130" rel="noreferrer" target="_blank" class="">https://github.com/qgis/QGIS/b<wbr class="">lob/master/python/plugins/proc<wbr class="">essing/algs/grass7/Grass7Utils<wbr class="">.py#L130</a><br class=""><br class="">It's trying to automatically generate the grass executable path, but<br class="">it's incorrectly finding the colors/grass folder and deciding that<br class="">it's the grass executable. I think inserting a os.path.isfile check<br class="">somewhere around line 145 should fix this, but not having access to an<br class="">osx install I haven't been able to test this.<br class=""></blockquote><div class=""><br class=""><br class=""></div><div class="">I'm not sure what exactly you want to use os.path.isfile() for, but etc/colors/grass is a file in GRASS GIS since 7.2, so os.path.isfile() will return True. In unix, you can see if the file is executable with os.access(name, os.X_OK) (not sure if instead or in addtion to os.path.isfile()). On Windows, testing for .bat or some other extension might be the right test.<br class=""><br class=""></div><div class="">Best,<br class=""></div><div class="">Vaclav<br class=""></div><div class=""> </div><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); padding-left: 1ex;"><br class="">Hope that helps -- would be great to have this one sorted for 3.0.1 if<br class="">you can confirm a fix!<br class=""><span class="m_6707955638449681894HOEnZb"><font color="#888888" class=""><br class="">Nyall<br class=""></font></span><div class="m_6707955638449681894HOEnZb"><div class="m_6707955638449681894h5"><br class="">><br class="">> On Mar 22, 2018, at 1:10 PM, William Kyngesburye <<a href="mailto:woklist@kyngchaos.com" target="_blank" class="">woklist@kyngchaos.com</a>><br class="">> wrote:<br class="">><br class="">> What are you doing?  GRASS plugin tools or Processing GRASS algorithms?<br class="">><br class="">> Nothing should be trying to write to the GRASS dir.  There should not be<br class="">> permissions problem reading from the GRASS dir.<br class="">><br class="">> On Mar 22, 2018, at 11:00 AM,<span class="Apple-converted-space"> </span><a href="mailto:jehdukeegr@gmail.com" target="_blank" class="">jehdukeegr@gmail.com</a><span class="Apple-converted-space"> </span>wrote:<br class="">><br class="">> Thanks William.  I'm still getting some sort of error using grass.  Not sure<br class="">> if this is still related.<br class="">><br class="">> /var/folders/d3/q41sw4cj5_s479<wbr class="">lpjf1z3hwc0000gn/T/processing_<wbr class="">7fd31b05f63f437c84dee066f864d9<wbr class="">f9/grassdata/temp_location/PER<wbr class="">MANENT:<br class="">> /Applications/QGIS3.app/Conten<wbr class="">ts/MacOS/grass/etc/colors/<wbr class="">grass: Permission<br class="">> denied<br class="">> /var/folders/d3/q41sw4cj5_s479<wbr class="">lpjf1z3hwc0000gn/T/processing_<wbr class="">7fd31b05f63f437c84dee066f864d9<wbr class="">f9/grassdata/temp_location/PER<wbr class="">MANENT:<br class="">> /Applications/QGIS3.app/Conten<wbr class="">ts/MacOS/grass/etc/colors/<wbr class="">grass: Permission<br class="">> denied<br class="">><br class="">><br class="">><br class="">><br class="">> On Thu, Mar 22, 2018 at 8:36 AM, William Kyngesburye <<a href="mailto:woklist@kyngchaos.com" target="_blank" class="">woklist@kyngchaos.com</a>><br class="">> wrote:<br class="">>><br class="">>> The non-working GRASS in the Mac QGIS 3 should be fixed now.  It appears<br class="">>> the GRASS internals still don't like spaces in the path to GRASS -- this<br class="">>> came from my adding "3" to the QGIS app name with a space.  The app is now<br class="">>> without a space, "QGIS3.app".<br class="">>><br class="">>> It looks like the missing SAGA is also fixed by the rebuild (don't know<br class="">>> why, it just happened).<br class="">>><br class="">>> REMINDER: My QGIS 3 package requires the<span class="Apple-converted-space"> </span><a href="http://python.org/" rel="noreferrer" target="_blank" class="">python.org</a><span class="Apple-converted-space"> </span>Python 3.  Other<br class="">>> distributions/installations of Python are not supported (ie Homebrew,<br class="">>> Macports, Anaconda...).<br class="">>><br class="">>> -----<br class="">>> William Kyngesburye <kyngchaos*at*kyngchaos*dot*co<wbr class="">m><br class="">>><span class="Apple-converted-space"> </span><a href="http://www.kyngchaos.com/" rel="noreferrer" target="_blank" class="">http://www.kyngchaos.com/</a><br class="">>><br class="">>> [Trillian]  What are you supposed to do WITH a maniacally depressed robot?<br class="">>><br class="">>> [Marvin]  You think you have problems?  What are you supposed to do if you<br class="">>> ARE a maniacally depressed robot?  No, don't try and answer, I'm 50,000<br class="">>> times more intelligent than you and even I don't know the answer...<br class="">>><br class="">>> - HitchHiker's Guide to the Galaxy<br class="">>><br class="">>><br class="">>> ______________________________<wbr class="">_________________<br class="">>> Qgis-user mailing list<br class="">>><span class="Apple-converted-space"> </span><a href="mailto:Qgis-user@lists.osgeo.org" target="_blank" class="">Qgis-user@lists.osgeo.org</a><br class="">>> List info:<span class="Apple-converted-space"> </span><a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank" class="">https://lists.osgeo.org/mailma<wbr class="">n/listinfo/qgis-user</a><br class="">>> Unsubscribe:<span class="Apple-converted-space"> </span><a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank" class="">https://lists.osgeo.org/mailma<wbr class="">n/listinfo/qgis-user</a><br class="">><br class="">><br class="">><br class="">> -----<br class="">> William Kyngesburye <kyngchaos*at*kyngchaos*dot*co<wbr class="">m><br class="">><span class="Apple-converted-space"> </span><a href="http://www.kyngchaos.com/" rel="noreferrer" target="_blank" class="">http://www.kyngchaos.com/</a><br class="">><br class="">> All generalizations are dangerous, even this one.<br class="">><br class="">><br class="">> ______________________________<wbr class="">_________________<br class="">> Qgis-user mailing list<br class="">><span class="Apple-converted-space"> </span><a href="mailto:Qgis-user@lists.osgeo.org" target="_blank" class="">Qgis-user@lists.osgeo.org</a><br class="">> List info:<span class="Apple-converted-space"> </span><a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank" class="">https://lists.osgeo.org/mailma<wbr class="">n/listinfo/qgis-user</a><br class="">> Unsubscribe:<span class="Apple-converted-space"> </span><a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank" class="">https://lists.osgeo.org/mailma<wbr class="">n/listinfo/qgis-user</a><br class="">><br class="">><br class="">> -----<br class="">> William Kyngesburye <kyngchaos*at*kyngchaos*dot*co<wbr class="">m><br class="">><span class="Apple-converted-space"> </span><a href="http://www.kyngchaos.com/" rel="noreferrer" target="_blank" class="">http://www.kyngchaos.com/</a><br class="">><br class="">> "We are at war with them. Neither in hatred nor revenge and with no<br class="">> particular pleasure I shall kill every ___ I can until the war is over. That<br class="">> is my duty."<br class="">><br class="">> "Don't you even hate 'em?"<br class="">><br class="">> "What good would it do if I did? If all the many millions of people of the<br class="">> allied nations devoted an entire year exclusively to hating the ____ it<br class="">> wouldn't kill one ___ nor shorten the war one day."<br class="">><br class="">> <Ha, ha> "And it might give 'em all stomach ulcers."<br class="">><br class="">> - Tarzan, on war<br class="">><br class="">><br class=""></div></div><div class="m_6707955638449681894HOEnZb"><div class="m_6707955638449681894h5">> ______________________________<wbr class="">_________________<br class="">> QGIS-Developer mailing list<br class="">><span class="Apple-converted-space"> </span><a href="mailto:QGIS-Developer@lists.osgeo.org" target="_blank" class="">QGIS-Developer@lists.osgeo.org</a><br class="">> List info:<span class="Apple-converted-space"> </span><a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank" class="">https://lists.osgeo.org/mailma<wbr class="">n/listinfo/qgis-developer</a><br class="">> Unsubscribe:<span class="Apple-converted-space"> </span><a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank" class="">https://lists.osgeo.org/mailma<wbr class="">n/listinfo/qgis-developer</a><br class="">______________________________<wbr class="">_________________<br class="">QGIS-Developer mailing list<br class=""><a href="mailto:QGIS-Developer@lists.osgeo.org" target="_blank" class="">QGIS-Developer@lists.osgeo.org</a><br class="">List info:<span class="Apple-converted-space"> </span><a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank" class="">https://lists.osgeo.org/mailma<wbr class="">n/listinfo/qgis-developer</a><br class="">Unsubscribe:<span class="Apple-converted-space"> </span><a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank" class="">https://lists.osgeo.org/mailma<wbr class="">n/listinfo/qgis-developer</a></div></div></blockquote></div><br class=""></div></div><span style="font-family: Helvetica; font-size: 16px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">_______________________________________________</span><br style="font-family: Helvetica; font-size: 16px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 16px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">QGIS-Developer mailing list</span><br style="font-family: Helvetica; font-size: 16px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="mailto:QGIS-Developer@lists.osgeo.org" style="font-family: Helvetica; font-size: 16px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">QGIS-Developer@lists.osgeo.org</a><br style="font-family: Helvetica; font-size: 16px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 16px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">List info:<span class="Apple-converted-space"> </span></span><a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" style="font-family: Helvetica; font-size: 16px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br style="font-family: Helvetica; font-size: 16px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 16px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">Unsubscribe:<span class="Apple-converted-space"> </span></span><a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" style="font-family: Helvetica; font-size: 16px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a></div></blockquote></div><br class=""><div class="">
<span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div class="">-----</div><div class="">William Kyngesburye <kyngchaos*at*kyngchaos*dot*com></div><div class=""><a href="http://www.kyngchaos.com/" class="">http://www.kyngchaos.com/</a></div><div class=""><br class=""></div><div class="">First Pogril: Why is life like sticking your head in a bucket filled with hyena offal?</div><div class="">Second Pogril: I don't know.  Why IS life like sticking your head in a bucket filled with hyena offal?</div><div class="">First Pogril: I don't know either.  Wretched, isn't it?</div><div class=""><br class=""></div><div class="">-HitchHiker's Guide to the Galaxy</div><br class="Apple-interchange-newline"></span></span>
</div>

<br class=""></div></body></html>