[QGIS-Developer] Pyrcc5 is not installed , pyuic4 is not in the path and other errors trying to build a plugin framework
J L
jeffloun at refractions.net
Wed Feb 27 11:46:51 PST 2019
Hi All,
I've installed QGis desktop 3.6.0 from the OSGeo4w web installer on my
windows 10 machine. This most recent time with a default express-install. I
tried various things before on a different win7 machine and I thought maybe
a completely fresh install on a newer computer would work better, so this
was all the first time install on this machine.
Once I install and run the plugin "Plugin Builder3" , fill out the dialogs
then press "generate" to get a basic plugin framework made for me, I get
the error: "The resource compiler pyrcc5 was not found in your path. You'll
have to manually compile the resources.qrc file with pyrcc5 before
installing your plugin."
I saw a stackexchange question that seems to solve this problem,
https://gis.stackexchange.com/questions/273552/pyrcc5-is-not-recognized-as-an-internal-or-external-command
Run some bat files to get the right directories added to the path. That
seems to allow me to build the resource as a one off.
I believe the next step is to deploy using pb_tool. I don't have that, so I
installed pb_tool from the OSGeo4w shell with, "pip install pb_tool"
but then I get errors when running "pb_tool deploy" in my plugin directory,
"pyuic4 is not in your path---unable to compile your ui files pyrcc4 is not
in your path---unable to compile your resource file(s)"
Seems like a path issue again, so I run the bat files from the
stackexchange answer to add them again in my osgeo4w shell, then I get this:
C:\MyFiles\Medina\Generated_Plugin_Code\topology_edit>pb_tool deploy File
"C:\OSGEO4~1\apps\Python37\lib\site.py", line 177 file=sys.stderr)
which seems very odd to me. I don't think I should try to solve syntax
errors in teh python scripts. I feel like I must be doing something wrong
here, or there is a bug in the install that doesn't include these things
automatically, I assume the idea would be to have all the tools needed
installed by default.
I can get the plugin deployed by manually building the resources with the
stackexchange bat file advice, then manually copy it to the plugin
directory, but I thought I would report my experience in case there was an
easy way that allows me to use pb_tool and automate that.
Cheers,
-Jeff
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20190227/e9271b54/attachment.html>
More information about the QGIS-Developer
mailing list