ImportError: No module named 'resource_rc'

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

with python3, i use this:

pyrcc5 file.qrc -o file.py

https://i.stack.imgur.com/UhvOS.png


import resource_rc

you may fix this with --from-imports option .

pyuic4 -h

--from-imports      generate imports relative to '.'

Example:

pyuic4 --from-imports -w -o aboutBA.py aboutBA.ui

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.