I was playing with this yesterday, provided you don't care about python2 you can add
call "C:\OSGeo4W64\bin\o4w_env.bat" call "C:\OSGeo4W64\bin\qt5_env.bat" call "C:\OSGeo4W64\bin\py3_env.bat" #make this apply to your user set PATH=%PATH%;D:\PhotonUser\AppData\Roaming\Python\Python37\Scripts\ to the osgeo4w.bat file and all works fine Ian On Wed, 27 Feb 2019 at 19:47, J L <jeffl...@refractions.net> wrote: > 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 > > _______________________________________________ > QGIS-Developer mailing list > QGIS-Developer@lists.osgeo.org > List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer -- Ian Turton
_______________________________________________ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer