I'm having this issue when I try to use the Polygonise(raster to vector) tool in QGIS 3.4.3 (Madeira) on a Mac running Mojave:
File "/usr/local/opt/gdal2-python/bin/gdal_polygonize.py", line 36, in <module> from osgeo import gdal ImportError: No module named osgeo
Some others have discussed this before and with reference to this other thread "QGIS 3.0 error when start in MacOS High Sierra", I note that I don't seem to have the
sub-branch in my
directories. I definitely have Python 3.6 (and not 3.7) installed.
To try to fix, I've reinstalled Python 3.6.8 using the installer from Python.org and I've reinstalled QGIS 3.4.3. Following these reinstalls, I still don't have the directory branches mentioned above and the Polygonise tool still doesn't work.
My presumption is that the lack of these branches is causing the problem (but I could be wrong). Can anyone kindly suggest what I need to do to sort this out?