mherrmann/fbs-tutorial

Frozen App Crushes: No module named 'fbs_runtime' & images not included during fbs run & .ini QSettings dead

ScarlettCharlie opened this issue · 0 comments

MacOS 10.15.5
PyQt 5.14.0
PyCharm 2019.3.4

Everything was absolutely fine BUT:

When I execute fbs run, the app is abnormal:
1, the QSetting files in .ini format won't work (the GUI won't interactive with it)
2, the DB files acted in the same way
3, the images of my app failed to load

When the app is frozen:
1, app crushes when clicked;
2, when running the app in the terminal:
ModuleNotFoundError: No module named 'fbs_runtime'
[7046] Failed to execute script fbs_pyinstaller_hook
logout

------------- Update -------------

Follow the link below and this issue can be solved. (But the .ini file issues are not included)
Make sure all your resources (such as .db files, images, etc...but not necessarily including the .py files you created and imported) are copied into the path: src/main/resources/base, instead of any other paths! No matter whether your resources are single files or files in folders.
Just one thing: I wish that fbs can not only locate resources, but also folders. But this small issue can be avoided while programming. It just makes the processing of using .ini files related to GUI a little bit time consuming.

Do you consider providing a GUI App so that things can be even easier?
I do consider giving it a try when I'm free.

https://stackoverflow.com/questions/61311076/deploying-pyqt5-using-fbs-with-a-sqlite-database

------------- Update -------------

Still working on the .ini files. Hope they can work normally.