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

fbs freeze failed #55

Open
UmangRajpara13 opened this issue Feb 15, 2021 · 3 comments
Open

fbs freeze failed #55

UmangRajpara13 opened this issue Feb 15, 2021 · 3 comments

Comments

@UmangRajpara13
Copy link

UmangRajpara13 commented Feb 15, 2021

"Ubuntu 20.04, python 3.6 in venv"

Traceback (most recent call last):
File "/home/umang/Desktop/repos/Venv/bin/fbs", line 8, in
sys.exit(_main())
File "/home/umang/Desktop/repos/Venv/lib/python3.6/site-packages/fbs/main.py", line 17, in _main
fbs.cmdline.main()
File "/home/umang/Desktop/repos/Venv/lib/python3.6/site-packages/fbs/cmdline.py", line 32, in main
fn(*args)
File "/home/umang/Desktop/repos/Venv/lib/python3.6/site-packages/fbs/builtin_commands/init.py", line 125, in freeze
freeze_ubuntu(debug=debug)
File "/home/umang/Desktop/repos/Venv/lib/python3.6/site-packages/fbs/freeze/ubuntu.py", line 4, in freeze_ubuntu
freeze_linux(debug)
File "/home/umang/Desktop/repos/Venv/lib/python3.6/site-packages/fbs/freeze/linux.py", line 8, in freeze_linux
run_pyinstaller(debug=debug)
File "/home/umang/Desktop/repos/Venv/lib/python3.6/site-packages/fbs/freeze/init.py", line 48, in run_pyinstaller
run(args, check=True)
File "/usr/lib/python3.6/subprocess.py", line 438, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['pyinstaller', '--name', 'Awesome', '--noupx', '--log-level', 'ERROR', '--noconfirm', '--distpath', '/home/umang/Desktop/repos/Venv/target', '--specpath', '/home/umang/Desktop/repos/Venv/target/PyInstaller', '--workpath', '/home/umang/Desktop/repos/Venv/target/PyInstaller', '--additional-hooks-dir', '/home/umang/Desktop/repos/Venv/lib/python3.6/site-packages/fbs/freeze/hooks', '--runtime-hook', '/home/umang/Desktop/repos/Venv/target/PyInstaller/fbs_pyinstaller_hook.py', '/home/umang/Desktop/repos/Venv/src/main/python/main.py']' returned non-zero exit status 1.

@amarnathreddy0201
Copy link

[3012] Failed to execute script

is this error ,so please help me too

@UmangRajpara13
Copy link
Author

i dropped python for desktop application development.
i moved to javascript and use electron framework.

@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_())

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

3 participants