Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

resource compiler pyrcc5 was not found in your path #110

Open
tveinot opened this issue Apr 3, 2019 · 4 comments
Open

resource compiler pyrcc5 was not found in your path #110

tveinot opened this issue Apr 3, 2019 · 4 comments

Comments

@tveinot
Copy link

tveinot commented Apr 3, 2019

How can I fix this so the plugin will do this step for me? I can run the pyrcc5 from the OSGeo Shell if I run py3_env and qt5_env first.

@nilsnolde
Copy link

I tried to outline the (fairly confusing) part of pyrcc5 and the resources.qrc file here:
https://github.com/gis-ops/tutorials/blob/master/qgis/QGIS_QtDesigner.md#qt-resourcesqrc

Hope it helps you.

@tveinot
Copy link
Author

tveinot commented Apr 4, 2019

You're right, that is confusing lol...
I kind of understand what they are saying but it seems the issue is related to the plugin scripts not running in the right environment or a path is wrong somewhere. I can run it manually; it just doesn't work automatically from within the plugin.

@palikao
Copy link

palikao commented Mar 24, 2023

I had the same problem, starting from Plugin Builder 3 and QGIS-LTR on MacOS.

Waiting for an official QGIS solution, I've found a simpler trick to solve the problem of pyrcc5, without installing anything more.

  1. Edit the plugin_builder.py inside plugin folder, replacing 'pyrcc5' inside cmd instruction with its complete path (ie. '/Applications/QGIS-LTR.app/Contents/MacOS/bin/pyrcc5'
  2. Save
  3. Edit pyrcc5 file (located in /Applications/QGIS-LTR.app/Contents/MacOS/bin/pyrcc5), replacing 'dirname $0/python3.9' with dirname $0/python3.9 (removing quotes)
  4. Save
  5. Reload Plugin Builder inside QGIS-LTR or open QGIS-LTR again

Everything that deals with 'QGIS-LTR' is ok also for 'QGIS', paths too

@palikao
Copy link

palikao commented Aug 12, 2023

Reported as general issue here:
qgis/QGIS#54199

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants