fbs-tutorial icon indicating copy to clipboard operation
fbs-tutorial copied to clipboard

Failed to freeze

Open iaggocapitanio1 opened this issue 4 years ago • 1 comments

fbs failed trying to freeze in Linux OS, I believe that it's related with the pyinstaler==3.4. May be, will be good if you change this requirement to a newer or older version. Regards https://github.com/mherrmann/fbs/issues error.md

iaggocapitanio1 avatar May 24 '21 11:05 iaggocapitanio1

try to add just this line in your python program: from fbs_runtime.application_context.PyQt5 import ApplicationContext

do NOT use this:

    appctxt = ApplicationContext()
    ....
    exit_code = appctxt.app.exec_()
    sys.exit(exit_code)


```# leave your main like it was -- like this:
def main():
    app = QtWidgets.QApplication(argv)
    t = Tetris()
    t.show()
    exit(app.exec_())


every python pyqt5 application now works for me using it this way.

Ing-Josef-Klotzner avatar Aug 12 '22 22:08 Ing-Josef-Klotzner