qgis / QGIS-Mac-Packager

Scripts for Official QGIS MacOS Packages
https://www.qgis.org
GNU General Public License v2.0
54 stars 21 forks source link

pyuic5 and pyrcc5 scripts broken on OSX #125

Closed MattReimer closed 3 years ago

MattReimer commented 3 years ago

QGIS 3.18.2 OSX Version 11.3.1

I had to make the following 2 file changes to get pyrcc5 and pyuic5 to compile resources properly


# /Applications/QGIS.app/Contents/MacOS/bin/pyuic5 
# FROM
exec '`dirname $0`/python3'.8 -m PyQt5.uic.pyuic ${1+"$@"}

# TO 
exec `dirname $0`/python3.8 -m PyQt5.uic.pyuic ${1+"$@"}

# /Applications/QGIS.app/Contents/MacOS/bin/pyrcc5
# FROM
exec '`dirname $0`/python3'.8 -m PyQt5.pyrcc_main ${1+"$@"}

# TO
exec `dirname $0`/python3.8 -m PyQt5.uic.pyuic ${1+"$@"}

It seems to me that there are a set of single quotes that are in the wrong place.

jlayt commented 2 years ago

Hi, I'm still seeing this issue in 3.16.14 and 3.22.1, in pyuic5, pyrcc5 and pylupdate5. For example for pyuic5 in 3.22.1

exec '`dirname $0/`/python3.9' -m PyQt5.uic.pyuic ${1+"$@"}

Which produces the output

exec: /Users/j.layt/Development/QGIS/LPMaps/`dirname $0`/python3.9: cannot execute: No such file or directory
hoetmaaiers commented 3 months ago

Still in there... Is OSX related develoment out of focus?