<div dir="ltr">I was playing with this yesterday, provided you don't care about python2 you can add<div><br></div><div><span style="color:rgb(32,33,36);font-family:Roboto,sans-serif;font-size:14px;white-space:pre-wrap;background-color:rgb(248,249,250)">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</span></div><div><span style="color:rgb(32,33,36);font-family:Roboto,sans-serif;font-size:14px;white-space:pre-wrap;background-color:rgb(248,249,250)">set PATH=%PATH%;D:\PhotonUser\AppData\Roaming\Python\Python37\Scripts\</span><br></div><div><span style="color:rgb(32,33,36);font-family:Roboto,sans-serif;font-size:14px;white-space:pre-wrap;background-color:rgb(248,249,250)"><br></span></div><div><span style="color:rgb(32,33,36);font-family:Roboto,sans-serif;font-size:14px;white-space:pre-wrap;background-color:rgb(248,249,250)">to the osgeo4w.bat file and all works fine</span></div><div><span style="color:rgb(32,33,36);font-family:Roboto,sans-serif;font-size:14px;white-space:pre-wrap;background-color:rgb(248,249,250)"><br></span></div><div><span style="color:rgb(32,33,36);font-family:Roboto,sans-serif;font-size:14px;white-space:pre-wrap;background-color:rgb(248,249,250)">Ian</span></div><div><span style="color:rgb(32,33,36);font-family:Roboto,sans-serif;font-size:14px;white-space:pre-wrap;background-color:rgb(248,249,250)"><br></span></div><div><span style="color:rgb(32,33,36);font-family:Roboto,sans-serif;font-size:14px;white-space:pre-wrap;background-color:rgb(248,249,250)"><br></span></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 27 Feb 2019 at 19:47, J L <<a href="mailto:jeffloun@refractions.net">jeffloun@refractions.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hi All,<div>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.</div><div><br></div><div>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: "<span style="white-space:pre-wrap">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."</span></div><div><span style="white-space:pre-wrap"><br></span></div><div><span style="white-space:pre-wrap">I saw a stackexchange question that seems to solve this problem, <a href="https://gis.stackexchange.com/questions/273552/pyrcc5-is-not-recognized-as-an-internal-or-external-command" target="_blank">https://gis.stackexchange.com/questions/273552/pyrcc5-is-not-recognized-as-an-internal-or-external-command</a></span></div><div><span style="white-space:pre-wrap">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</span><span style="white-space:pre-wrap">.</span></div><div><span style="white-space:pre-wrap"><br></span></div><div><span style="white-space:pre-wrap">I believe the next step is to deploy using pb_tool. I don't have that, so </span><span style="white-space:pre-wrap">I installed pb_tool from the OSGeo4w shell with,  "pip install pb_tool" </span></div><div><span style="white-space:pre-wrap">but then I get errors when running "pb_tool deploy"  in my plugin directory,</span></div><div><span style="white-space:pre-wrap">"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)"</span><br></div><div><span style="white-space:pre-wrap"><br></span></div><div><span style="white-space:pre-wrap">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:</span></div><div><span style="white-space:pre-wrap">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)</span><br></div><div><span style="white-space:pre-wrap"><br></span></div><div><span style="white-space:pre-wrap">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.</span></div><div><span style="white-space:pre-wrap"><br></span></div><div>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.</div><div><span style="white-space:pre-wrap">Cheers,</span></div><div><span style="white-space:pre-wrap">-Jeff</span></div><div><span style="white-space:pre-wrap"><br></span></div></div></div></div></div>
_______________________________________________<br>
QGIS-Developer mailing list<br>
<a href="mailto:QGIS-Developer@lists.osgeo.org" target="_blank">QGIS-Developer@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature">Ian Turton<br></div>