Answer the question
In order to leave comments, you need to log in
How to automatically compile resource file in pyqt5?
Hello. And again I am with stupid questions about Python and PyQt5.
I create the main form and push the icons into the icons.qrc resource file.
Then mainwindow.ui is compiled into a py file with the command:
pyuic5 -o mainwindow.py --resource-suffix=_rc mainwindow.ui
. pyrcc4 -o res_rc.py icons.qrc
$ pyrcc5 -o res_rc.py icons.qrc
Traceback (most recent call last):
File "/usr/lib/python3.4/runpy.py", line 170, in _run_module_as_main
"__main__", mod_spec)
File "/usr/lib/python3.4/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/usr/lib/python3/dist-packages/PyQt5/pyrcc_main.py", line 23, in <module>
from .pyrcc import *
RuntimeError: the sip module implements API v11.0 but the PyQt5.pyrcc module requires API v11.3
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question