fbs-tutorial
fbs-tutorial copied to clipboard
Failed to freeze
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
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.