TransWikia.com

SCP Plugin for QGIS 3.10 on Mac

Geographic Information Systems Asked on August 23, 2020

I’m using the semi-automatic classification (SCP) plugin in QGIS on a Mac OS Catalina 10.15.5. I’ve tried it in multiple versions and I’m having issues with saving files. Whenever I click the Run button on a Mac, it automatically creates temp files rather than letting me save the outputs somewhere.

For instance, when trying to clip multiple rasters using a PC, I click the Run button and a window pops up allowing me to browse to a folder to save the files. On a Mac, a window opens allowing me to only click Open rather than save and the output is a temp file with no discernible file name to help me figure out which of the multiple clipped files it is referencing and doesn’t retain the default ‘clip’ prefix.

Any ideas? I can’t find anything online that references how to fix this.

One Answer

Whelp Mac users, I finally figured this out and it actually resolved most of the QGIS Mac issues. Turns out Macs privacy protections got ramped up last year at some point and really locked down installs so complete QGIS installs weren't happening. Python and GDAL dependencies are being treated as malicious software and so they need permissions to download and install on the computers. As is, these aren't being installed with the QGIS Mac OS installers on the QGIS website. You need to do this manually.

  1. Go to the Python website to download the latest stable version: https://www.python.org/downloads/mac-osx/

You need this to complete the gdal install. I downloaded 3.8 by choosing the "Download macOS 64-bit installer" link.

  1. Then download the complete GDAL installer from here: https://www.kyngchaos.com/software/frameworks/

At this time, it is "GDAL 3.1 Complete"

***If you get a malicious software won't install warning for any of these, go to the Apple menu > System Preferences > Security & Privacy > General Tab > Allow Anyway

To view file paths in Mac, open up a Finder window, click the View menu > Show Paths

To check things are installed properly, Python can be found under Library/Frameworks/Python.framework

Gdal can be found under Library > Application Support > GDAL

  1. Within QGIS, open up the Settings (you can get to this by selecting the wrench icon in the Processing Toolbox.

Go to Settings > Options > System > Environment Enable "Use Custom Variables" (check mark in the box)

First select "Prepend", under variable enter "PATH", under value enter

"/Library/Frameworks/GDAL.framework/Programs:/Library/Frameworks/Python.framework/Versions/3.8/bin:"

(all of these without quotes)

Rachel

Correct answer by Rachel on August 23, 2020

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP