I am in my first steps in PyQt5. I intend to create a plugin within QGis 3.0. I would like to convert the file resources.qrc into py file, by running windows shell commands with python. However, when I execute:
pyrcc4 resources.qrc -o resources.py The code of resources.qrc is as follow:
<RCC> <qresource prefix="/"> <file>://Program Files/QGIS3.2/apps/qgis/python/plugins/testPlugin/icon.png</file> </qresource> </RCC> The code of testPlugin.py is as follow:
from PyQt5.QtCore import * from PyQt5.QtGui import * import resources class TestPlugin: def __init__(self, iface): self.iface = iface def initGui(self): self.action = QAction("Run", self.iface.mainWindow()) QObject.connect(self.action, SIGNAL("triggered()"),self.onRun) self.iface.addPluginToMenu("Test Plugin", self.action) def unload(self): self.iface.removePluginMenu("Test Plugin", self.action) def onRun(self): QMessageBox.information(self.iface.mainWindow(), "debug","Running")
I receive the following message error: invalid syntax. I verify the path files, but without success. 
When I execude the code from Windows commande, pyrcc4 is not recognized as internal or external command, executal program or command file.
Any help is welcome.
