Closed Yanzzzi closed 9 months ago
Please provide full logs with flet build windows -vv
command.
Please provide full logs with
flet build windows -vv
command.
Thanks for the hint @FeodorFitsner, for some reason I didn't think to use the -vv
flag. With the help of full logs, an error was found: it was not possible to compile an f-string that used the same quotes (everything worked when running the script normally).
f'{current_date_obj.strftime('%m/%Y')}'
I have a couple of questions left:
build
command does not work. Does the command work only with the x32 version, or is it possible to run it on x64 somehow?build
the program freezes for 2-3 seconds and displays only a white screen. On subsequent launches the delay becomes less (about 1 second). Why is this happening? When packing the program with the pack
command, the .exe file runs immediately, nothing freezes.It looked like it was Python 3.12.0 specific error. Updating to 3.12.1 should fix that: https://github.com/flet-dev/flet/issues/2441#issuecomment-1902568848
Description
My script has a popup that creates pdf and excel reports. The code for creating reports is placed in a separate file, it uses the fpdf2 and openpyxl libraries. An unknown error occurs when using the "flet build windows" command (logs below).
At the same time, "flet build windows" works properly on a minimal example.
Code example to reproduce the issue: main.py
reports.py
Describe the results you received:
Additional information you deem important (e.g. issue happens only occasionally): Before that, in principle, the "flet build windows" command did not work for me, it gave the following error:
I managed to fix this by replacing the python interpreter of the x64 version with x32.
Flet version (
pip show flet
):Operating system:
Windows 10 Pro