-
Notifications
You must be signed in to change notification settings - Fork 195
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
Use terminal from a fbs packaged App #251
Comments
Hi, does the problem go away when you downgrade to PyQt5 5.15.3? |
No it didn't change anything. Just to be clear, I ask the user to specify the folder in which the input and executable files are and I am moving in this folder to execute the executable this way: os.chdir(path_to_folder) I don't want to bundle the executable within the App sine it is developed by someone else so that the user can update the executable independently and I don't have to update the App every time the developper update the executable files. But if that's the only solution I could settle with that. Using the terminal from a GUI App is something that has been done with fbs before? |
I'm not sure I understand 100% what you mean. Do you get what you want when you add
to |
It doesn't produce a standalone App that I could distribute as an installer (but I guess that's the point). Is that a limitation of fbs that we cannot use the terminal when we want to distribute solely a GUI App? |
What you write confuses me in so many ways.
I believe you will get what you want with |
When I add the "show_console_window : true" in the json setting file, it doesn't produce a standalone App. It produce a 929 bytes file that cannot be used (and then fbs installer doesn't do anything). But I can still start the application through the executable file in target/App_name. |
Please, in all of your future messages, provide me with more, painstaking detail and context. I feel like I have to ask for more context every time you post, when you could have given it to begin with. Here, you write "... the app just shows an error message". What is the error message? Also, you write "it produces a 929 bytes file that cannot be used". But then, you write "but I can still start the application through target/App_name". So what does it mean when you say "it cannot be used"? I wrote a post that gives more examples of the information I need to be able to help you: https://gist.github.com/mherrmann/4574c938bd610eb1183f3cc2200d6166 Please, please, please. Give me more detail. Tell me exactly what you are doing. Send me errors. Don't write "it doesn't work" or "it doesn't do anything". Write "I double-click target/App. I would have expected my app to open. But nothing happened. When I then typed in |
Sorry, I will try to be more specific. The error message when I try with "show_console_window : true" is just: You can't open the application "App name.app" because it may be damaged or incomplete. After using fbs freeze, I can use the GUI application launching from the terminal using the executable file located in the folder target/App_name. This work fine and I even tried compressing this folder (target/App_name folder), copying it somewhere else, unzipping it and launching the GUI App from the terminal using the executable from the unzipped folder. It works fine too. |
Thank you for the detail. Do you see any interesting output (such as errors) when you run the frozen app by typing the following into the terminal?
|
(If you don't see anything, try after |
Without --debug: Without the "show_console_window : true", it works fine, I can see in the terminal that the fortran executables are correctly executed. With --debug: With the "show_console_window : true", it does creates a standalone App that is roughly the same size (255.8 Mo vs 241 Mo without "show_console_window : true" and without --debug). But what it seems is that it stuck after executing the first fortran executable. At least the outputs from that first fortran executable are what is expected and the same than what I have when I run through the terminal (using "target/App_name.app/Contents/MacOs/App_name"). But then it stuck before being able to modify the input file from the second fortran executable. Here is the steps of the script:
From the files inside folder_1, steps 1 and 2 are correctly executed. Then I don't know if it does 3 and 4 since there is nothing displayed. But for sure it is stuck before 5). When I have done that I will come back to you. |
So it looks like it stuck at step 5. The line is just: Thank you for your help trying to solve this. When I find what was wrong I will update you. |
Hi @mherrmann, I think I have the same issue as described in this thread. I am running on macOS 11.5 using Python 3.8, PySide6 6.2 and fbs Pro 1.0.8. During freezing, I have issues when I add What is the actual error when using
I am not sure why Any ideas? Michael |
@mhogg what Are you able to reproduce the problem on a lower macOS version? Sorry if this is a pain to test. In general for compatibility, fbs's manual advises to build on as early an OS version as possible for maximum compatibility. |
That makes sense @mherrmann - thanks for your comment. In terms of testing - I only have access to Big Sur, but I might know someone who has an earlier version. I can confirm that freezing with |
Hi Michael!
I am trying to use the console from a fbs packaged App (python 3.9.4, fbs 1.0.6, Pyinstaller 4.5.1, PyQt5 5.15.4). I need to use fortran executable files from another developper, I basically only change the input files and read the outputs from these executables. This work fine when using the App from the terminal (either with the "fbs run" command or after freezing using the executable file in the target/App_name folder). But when I try to use it directly from the GUI App it doesn't work. I suspect that it cannot open a terminal session. Do I have to build a console App or is this something that could still be possible otherwise?
I am on a Mac but I plan to distribute Windows and Linux versions as well.
Thank you in advance for the response and thank you for this wonderful package!
Best,
Guillaume
The text was updated successfully, but these errors were encountered: