0

I converted QT .ui file into .py file and when I run it I get this error?

Traceback (most recent call last):

  File ~\Desktop\Project\main2.py:14 in <module>
    from ui3 import Ui_Form

  File ~\Desktop\Project\ui3.py:39 in <module>
    import rec_rc

ModuleNotFoundError: No module named 'rec_rc'
lepsch
  • 8,927
  • 5
  • 24
  • 44

1 Answers1

0

The following solution if provided by eyllanesc in this question, and it seems to be the same error as yours.

You should have a file called rec.qrc, this must be converted to .py, this or you can do it by executing:

pyrcc5 rec.qrc -o rec_rc.py

WhoKnowsMe
  • 498
  • 2
  • 13