[MacPorts] #64537: qgis3 @3.22.2_0+grass+postgresql13+python39: error gdalwarp missing or insufficient permissions

MacPorts noreply at macports.org
Thu Jan 27 00:40:09 UTC 2022


#64537: qgis3 @3.22.2_0+grass+postgresql13+python39: error gdalwarp missing or
insufficient  permissions
-------------------------+----------------------------------------
  Reporter:  bal-agates  |      Owner:  (none)
      Type:  defect      |     Status:  new
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.7.1
Resolution:              |   Keywords:  qgis3 gdalwarp clip raster
      Port:  qgis3       |
-------------------------+----------------------------------------

Comment (by bal-agates):

 Update.  I was able to workaround the above problem by making the
 following change:

 In QGIS > Preferences > System > Environment
 - verified "Use custom variables" is checked
 - already had "Overwrite, GISBASE = /opt/local/bin"
 - added "Overwrite, PATH = /opt/local/bin:/usr/bin:/usr/sbin:/sbin"

 The above new PATH is concat of GISBASE and original PATH.

 Quit GIS and restarted.  Now my "Clip Raster by Mask Layer" worked with no
 error.

 I looked on another computer with QGIS 3.16.4 (macOS 10.13, x86_64) that
 was likely from a pre-built installer (not from MacPorts).  It did not
 have GISBASE and initially it had
 {{{
 PATH="/usr/bin:/bin:/usr/sbin:/sbin"
 }}}

 but after running "Clip Raster by Mask Layer" the
 {{{
 PATH="/Applications/QGIS-3.16.4-app/Contents/MacOS/bin:/usr/bin:/bin:/usr/sbin:/sbin"
 }}}

 The the programs path variable was modified by running the command.  Keep
 in mind this is a different version of QGIS3 than I reported the problem
 with.  I am not sure the current QGIS 3.22.2 should behave similarly but
 it might give some clues.

-- 
Ticket URL: <https://trac.macports.org/ticket/64537#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list