flet icon indicating copy to clipboard operation
flet copied to clipboard

Packaging Python app...Flet app package app/app.zip was not created.

Open MOHAMED-SEGHIR-Elhocine opened this issue 1 year ago • 3 comments

I got this problem : Creating Flutter bootstrap project...OK Customizing app icons and splash images...OK Generating app icons...OK Packaging Python app...Flet app package app/app.zip was not created.

I've used the command : flet build windows /Path/..

MOHAMED-SEGHIR-Elhocine avatar Jun 11 '24 10:06 MOHAMED-SEGHIR-Elhocine

u have problem whit dependencies. Try to upgrade flutter, dart, add the paths (use flutter doctor command in the terminal). Create your requirements.txt manually. If nothing work try to create a new env and install all the dependencies again.

Laztef avatar Jun 18 '24 05:06 Laztef

Got the same problem. Tried to recreate the env, but didn't work. Are there some other ways to solve it?

gidron avatar Jun 23 '24 20:06 gidron

I managed to make it work by using PyCharm Community Edition, which has a built-in virtual environment. I was previously using VS Code. Thank you all.

MOHAMED-SEGHIR-Elhocine avatar Jun 29 '24 18:06 MOHAMED-SEGHIR-Elhocine

Sorunu çözebildiniz mi?

yucel685 avatar Jul 27 '24 19:07 yucel685

@GidroN @yucel685 if you guys are facing this issue please share some more details (full verbose logs, repro code, captures etc).

ndonkoHenri avatar Jul 27 '24 23:07 ndonkoHenri

try to update python and flet! Delete the env folder and try to create this again. Check your hdd capacity. If this is full you can't create the temp files to build your flet app

Laztef avatar Aug 04 '24 03:08 Laztef

it's because of the requirements.txt . i think there's a problem with third party libraries

TKZ700 avatar Sep 07 '24 11:09 TKZ700

pessoal sera que o flet sempre leva as bibliotecas mesmo sem pyinatller? ta meio dificil nao acho a diferenca de build recomendado e do pyintaller

diguijoaquim avatar Oct 18 '24 16:10 diguijoaquim

@diguijoaquim Try building with pre-release: https://flet.dev/blog/flet-new-packaging-pre-release

FeodorFitsner avatar Oct 18 '24 16:10 FeodorFitsner

For reference, my requirements file was created using pip freeze > requirements.txt and it was saved using UTF-16 encoding which is incompatible with flutter, after open and save it in UTF-8 it works.

mriscoc avatar Nov 16 '24 09:11 mriscoc