Hi

Thanks for your quick reply Larry. Confirmed that your fix addresses the 
startup issue. When I try to run a grass processing alg on Mac I get a similar 
error in the log window now:

g.proj -c proj4="+proj=longlat +datum=WGS84 +no_defs"
v.external input="/Users/timlinux/gisdata/InaSAFE/Agung/Agung.shp" 
output="a5a1ef289ca1062" --overwrite -o
g.region n=-8.341999999999928 s=-8.341999999999928 e=115.50800000000004 
w=115.50800000000004
v.buffer input=a5a1ef289ca1062 distance=100 tolerance=0.01 
output=output0bddfa66df874fd7bb9e9d52a9c84228 --overwrite
v.out.ogr -c type=auto input="output0bddfa66df874fd7bb9e9d52a9c84228" 
output="/var/folders/g6/fnh1vyx13q728xq52nw7yx400000gn/T/processing_9b123312434544668360822a2b4cf6f0/0af610f60d9f465f9b2959fbc5442af5/output.shp"
 format=ESRI_Shapefile --overwrite
Traceback (most recent call last): File 
"/Users/timlinux/dev/cpp/QGIS-QtCreator-Build/output/python/plugins/processing/algs/grass7/Grass7Algorithm.py",
 line 375, in processAlgorithm Grass7Utils.executeGrass(self.commands, 
feedback, self.outputCommands) File 
"/Users/timlinux/dev/cpp/QGIS-QtCreator-Build/output/python/plugins/processing/algs/grass7/Grass7Utils.py",
 line 368, in executeGrass startupinfo=si if isWindows() else None File 
"/usr/local/opt/python3/Frameworks/Python.framework/Versions/3.6/lib/python3.6/subprocess.py",
 line 707, in __init__ restore_signals, start_new_session) File 
"/usr/local/opt/python3/Frameworks/Python.framework/Versions/3.6/lib/python3.6/subprocess.py",
 line 1333, in _execute_child raise child_exception_type(errno_num, err_msg) 
PermissionError: [Errno 13] Permission denied 
Execution failed after 0.08 seconds

Loading resulting layers
Algorithm 'v.buffer.distance - Creates a buffer around features of given type.’ 
finished


I guess we are going to need to search and replace all shell=False parameters 
and set them to True if we are on Mac….

Regards

Tim


> On 29 Nov 2017, at 19:40, Larry Shaffer <lar...@dakotacarto.com> wrote:
> 
> Hi Tim,
> 
> Ran into the same thing today, but with more output on the error:
> 
> PermissionError: [Errno 13] Permission denied: 
> '/usr/local/opt/grass7/grass-base/etc/colors/grass'
> 
> Changing line # 108 in:
> python/plugins/processing/algs/grass7/Grass7Utils.py
> 
> from:
> shell=False,
> 
> to:
> shell=True if isMac() else False,
> 
> fixes the issue for me. Processing loads and GRASS algs open. (Not sure if 
> True is needed for other platforms; untested.)
> 
> Fix not pushed. Please verify on your setup first (mine is macOS 10.11.6). 
> Thanks!
> 
> Regards,
> 
> Larry Shaffer
> Dakota Cartography
> Black Hills, South Dakota
> ----------------------------------
> Boundless Desktop and QGIS Support/Development
> Boundless Spatial - http://boundlessgeo.com <http://boundlessgeo.com/>
> lshaf...@boundlessgeo.com <mailto:lshaf...@boundlessgeo.com>
> On Wed, Nov 29, 2017 at 7:39 AM, Tim Sutton <t...@kartoza.com 
> <mailto:t...@kartoza.com>> wrote:
> Hi All
> 
> Its been a few days since I pulled from master - now I am getting the error 
> below on startup. Does anyone else get it? (Building on MacOS here):
> 
> Couldn't load plugin 'processing' due to an error when calling its initGui() 
> method 
> PermissionError: [Errno 13] Permission denied
> 
> Traceback (most recent call last):
>   File 
> "/Users/timlinux/dev/cpp/QGIS-QtCreator-Build/output/python/qgis/utils.py", 
> line 345, in startPlugin
>     plugins[packageName].initGui()
>   File 
> "/Users/timlinux/dev/cpp/QGIS-QtCreator-Build/output/python/plugins/processing/ProcessingPlugin.py",
>  line 178, in initGui
>     self.toolbox = ProcessingToolbox()
>   File 
> "/Users/timlinux/dev/cpp/QGIS-QtCreator-Build/output/python/plugins/processing/gui/ProcessingToolbox.py",
>  line 93, in __init__
>     self.fillTree()
>   File 
> "/Users/timlinux/dev/cpp/QGIS-QtCreator-Build/output/python/plugins/processing/gui/ProcessingToolbox.py",
>  line 317, in fillTree
>     self.fillTreeUsingProviders()
>   File 
> "/Users/timlinux/dev/cpp/QGIS-QtCreator-Build/output/python/plugins/processing/gui/ProcessingToolbox.py",
>  line 382, in fillTreeUsingProviders
>     providerItem = TreeProviderItem(provider, self.algorithmTree, self)
>   File 
> "/Users/timlinux/dev/cpp/QGIS-QtCreator-Build/output/python/plugins/processing/gui/ProcessingToolbox.py",
>  line 513, in __init__
>     self.setToolTip(0, self.provider.longName())
>   File 
> "/Users/timlinux/dev/cpp/QGIS-QtCreator-Build/output/python/plugins/processing/algs/grass7/Grass7AlgorithmProvider.py",
>  line 122, in longName
>     version = Grass7Utils.installedVersion()
>   File 
> "/Users/timlinux/dev/cpp/QGIS-QtCreator-Build/output/python/plugins/processing/algs/grass7/Grass7Utils.py",
>  line 113, in installedVersion
>     startupinfo=si if isWindows() else None
>   File 
> "/usr/local/opt/python3/Frameworks/Python.framework/Versions/3.6/lib/python3.6/subprocess.py",
>  line 707, in __init__
>     restore_signals, start_new_session)
>   File 
> "/usr/local/opt/python3/Frameworks/Python.framework/Versions/3.6/lib/python3.6/subprocess.py",
>  line 1333, in _execute_child
>     raise child_exception_type(errno_num, err_msg)
> PermissionError: [Errno 13] Permission denied
> 
> Python version: 3.6.2 (default, Jul 17 2017, 16:44:45) [GCC 4.2.1 Compatible 
> Apple LLVM 8.1.0 (clang-802.0.42)] 
> QGIS version: 2.99.0-Master Master, e8213b8e41 
> Python Path:
> 
> /Users/timlinux/dev/cpp/QGIS-QtCreator-Build/output/python/plugins/processing
> /Users/timlinux/dev/cpp/QGIS-QtCreator-Build/output/python
> /Users/timlinux/Library/Application Support/QGIS/QGIS3/profiles/default/python
> /Users/timlinux/Library/Application 
> Support/QGIS/QGIS3/profiles/default/python/plugins
> /Users/timlinux/dev/cpp/QGIS-QtCreator-Build/output/python/plugins
> /Users/timlinux/dev/cpp/QGIS-QtCreator-Build/output/bin/$PYTHONPATH
> /usr/local/opt/gdal2-python/lib/python3.6/site-packages
> /usr/local/opt/python3/Frameworks/Python.framework/Versions/3.6/lib/python36.zip
> /usr/local/opt/python3/Frameworks/Python.framework/Versions/3.6/lib/python3.6
> /usr/local/opt/python3/Frameworks/Python.framework/Versions/3.6/lib/python3.6/lib-dynload
> /usr/local/opt/python3/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages
> /usr/local/opt/python3/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pycharm-debug-py3k.egg
> /Users/timlinux/Library/Application Support/QGIS/QGIS3/profiles/default/python
> 
> —
> 
> 
> <KartozaNewLogoThumbnail.jpg>
> 
> 
> 
> 
> Tim Sutton
> 
> Co-founder: Kartoza
> Project chair: QGIS.org <http://qgis.org/>
> 
> Visit http://kartoza.com <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 <http://freenode.net/>
> 
> _______________________________________________
> QGIS-Developer mailing list
> QGIS-Developer@lists.osgeo.org <mailto:QGIS-Developer@lists.osgeo.org>
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer 
> <https://lists.osgeo.org/mailman/listinfo/qgis-developer>
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer 
> <https://lists.osgeo.org/mailman/listinfo/qgis-developer>
> 

—







Tim Sutton

Co-founder: Kartoza
Project chair: QGIS.org

Visit http://kartoza.com <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

_______________________________________________
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to