I made a simple program with PyQt GUI, and compiled \'.ui\' file.
# Form implementation generated from reading ui file \'main.ui\'
#
# Created by: PyQt5 UI c
When you compile a .ui file, it uses the resources_rc.py (which must be compiled as well) to store its resources. For example, if you open the qrc file, you will see the items it has stored. If your ui uses anything from the resources_rc.py, file you will get the error you saw.
You should have a file called resource.qrc
, this must be converted to .py
, this or you can do it by executing:
pyrcc5 resource.qrc -o resource_rc.py