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