Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to freeze #57

Open
iaggocapitanio1 opened this issue May 24, 2021 · 1 comment
Open

Failed to freeze #57

iaggocapitanio1 opened this issue May 24, 2021 · 1 comment

Comments

@iaggocapitanio1
Copy link

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

@Ing-Josef-Klotzner
Copy link

Ing-Josef-Klotzner commented Aug 12, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants