I am using QGIS 1.8 for building plugin. For developing i am using following ref this link example. where in this step 6 where compile the makefile in OSGeo4W. gives error pyuic4:command not found. I am also showing print screen of error:. Please help me to over come this error Or running same in python console of qgis 1.8
pyuic4 is part of PyQt4, which is part of OSGeo4W. In case its installer gives you a choice of what components to install, make sure you also picked pyqt4, which is short for "pythong bindings for qt4". Did QGIS not complain about python when you were using it (eg. the plugin manager)?
So, if you do have PyQt4 already, you may just need to set the search path, so
pyuic4 can be found. Or in the unlikely case that the bundled version is missing this generator, install a full version from http://www.riverbankcomputing.co.uk/software/pyqt/download.
I've ran in the same problem with the current QGIS 2.6.1 by just typing make I had the same error. I've searched for the pyuic4.bat file and it was located correctly. SO I just used the absolute path in the OSGEO4W Shell:
C:\Users\ricckli\.qgis2\python\plugins\qgis2leaf>make pyuic4 -o ui_qgis2leaf.py ui_qgis2leaf.ui make: pyuic4: Command not found make: *** [ui_qgis2leaf.py] Error 127
This one was working without a problem:
C:\Users\ricckli\.qgis2\python\plugins\qgis2leaf>C:\OSGeo4W64\bin\pyuic4 -o ui_q gis2leaf.py ui_qgis2leaf.ui
Using the latest version of Plugin Builder, you only need to compile resources.qrc because the .ui is now loaded dynamically. I am using QGIS 2.6.1 and in this version there is no need to compile uic file.