-
-
Notifications
You must be signed in to change notification settings - Fork 23
Description
As linked, the issue is already reported in the main general bug tracing.
#In QGIS and QGIS-LTR for macOS, since very long time, the component pyrcc5, which is located in QGIS.app>Contents>MacOS>bin or QGIS-LTR.app>Contents>MacOS>bin, has a syntax error in its code.
The problem occurs when QGIS tries to use it, for example when the plugin "plugin-builder" recall it to compile the plugin package. I tested it mainly in this occasion.. But I'm not alone! It's a long time issue!
PyQt are ok.
Workaround: edit pyrcc5 file with TextEdit.app replacing 'dirname $0
/python3.9' with dirname $0
/python3.9 (removing quotes)
Steps to reproduce the issue
- install plugin "plugin-builder"
- activate it and open it
- try to compile masks to create a new plugin
- in the final step, when finishing, the procedure that recalls pyrcc5 fails because of pyrcc5
or.. - simply launch pyrcc5 in Terminal.app
Versions
All actual versions of QGIS and QGIS-LTR, all previous QGIS and QGIS-LTR
Supported QGIS version
I'm running a supported QGIS version according to the roadmap.
New profile
I tried with a new QGIS profile
Additional context
Also plugin-builder.py, on macOS, has a small syntax bug in its code (but it's only related), and this is the solution:
At lines 474-475-476
cmd = ['/Applications/QGIS.app/Contents/MacOS/bin/pyrcc5', '-o',
os.path.join(self.plugin_path, 'resources.py'),
os.path.join(self.plugin_path, 'resources.qrc')]
Where QGIS.app can be changed into QGIS-LTR.app