Open baseplate-admin opened 1 month ago
Error: type 'Null' is not a subtype of type 'String'
this is the error line
hi @FeodorFitsner, should this be in serious-python
?
Can you use --v
flag?
Can you use --v flag?
Sure
(seeder-flet-py3.12) PS C:\Programming\coreproject\seeder> poetry run flet build windows -v
[14:41:37] Flutter bootstrap directory: C:\Users\baseplate-admin\AppData\Local\Temp\flet_flutter_build_W8M9cIeAtz
Additional Flutter dependencies:
{}
[14:41:44] Created Flutter bootstrap project from gh:flet-dev/flet-build-template with ref 0.23.2 ✅
Customized app icons and splash images ✅
Run subprocess: ['C:\\tools\\flutter\\bin\\dart.BAT', 'run', 'flutter_launcher_icons']
( ● ) Generating app icons (2.5s)
( ● ) Generating app icons ⏳...
( ● ) Generating app icons ⏳... Got dependencies in `C:\Users\baseplate-admin\AppData\Local\Temp\flet_flutter_build_W8M9cIeAtz`.
( ●) Generating app icons (3.3s)
Built flutter_launcher_icons:flutter_launcher_icons.
( ● ) Generating app icons ⏳... ════════════════════════════════════════════
FLUTTER LAUNCHER ICONS (v0.13.1)
════════════════════════════════════════════
• Creating default icons Android
( ● ) Generating app icons ⏳... • Overwriting the default Android launcher icon with a new icon
( ● ) Generating app icons ⏳... • Overwriting default iOS launcher icon with new icon
( ● ) Generating app icons ⏳... Creating Icons for Web...
( ●) Generating app icons ⏳... Creating Icons for Windows...
Creating Icons for MacOS...
(● ) Generating app icons ⏳...
✓ Successfully generated launcher icons
[14:41:52] Generated app icons ✅
Run subprocess: ['C:\\tools\\flutter\\bin\\dart.BAT', 'run', 'serious_python:main', 'package', 'C:\\Programming\\coreproject\\seeder', '--dep-mappings', 'flet=flet-embed',
'--req-deps', 'flet-embed', '--exclude', 'build']
( ● ) Packaging Python app ⏳...
Built serious_python:main.
Running package command
( ● ) Packaging Python app ⏳... Creating asset directory: C:\Users\baseplate-admin\AppData\Local\Temp\flet_flutter_build_W8M9cIeAtz\app
Copying Python app from C:\Programming\coreproject\seeder to C:\Users\baseplate-admin\AppData\Local\Temp\serious_python_temp41c572b0
( ● ) Packaging Python app ⏳... Error: type 'Null' is not a subtype of type 'String'
Deleting temp directory C:\Users\baseplate-admin\AppData\Local\Temp\serious_python_temp41c572b0
[14:41:53] Deleting Flutter bootstrap directory C:\Users\baseplate-admin\AppData\Local\Temp\flet_flutter_build_W8M9cIeAtz
Flet app package app/app.zip was not created.
--v
, instead of -v
(seeder-flet-py3.12) PS C:\Programming\coreproject\seeder> poetry run flet build windows --v
[14:43:12] Flutter bootstrap directory: C:\Users\baseplate-admin\AppData\Local\Temp\flet_flutter_build_5GTut7q0HK
Additional Flutter dependencies:
{}
[14:43:21] Created Flutter bootstrap project from gh:flet-dev/flet-build-template with ref 0.23.2 ✅
Customized app icons and splash images ✅
Run subprocess: ['C:\\tools\\flutter\\bin\\dart.BAT', 'run', 'flutter_launcher_icons']
( ● ) Generating app icons (2.9s)
( ● ) Generating app icons ⏳...
Got dependencies in `C:\Users\baseplate-admin\AppData\Local\Temp\flet_flutter_build_5GTut7q0HK`.
( ● ) Generating app icons ⏳...
Built flutter_launcher_icons:flutter_launcher_icons.
════════════════════════════════════════════
FLUTTER LAUNCHER ICONS (v0.13.1)
════════════════════════════════════════════
( ● ) Generating app icons ⏳... • Creating default icons Android
• Overwriting the default Android launcher icon with a new icon
( ● ) Generating app icons ⏳... • Overwriting default iOS launcher icon with new icon
( ●) Generating app icons ⏳... Creating Icons for Web...
( ● ) Generating app icons ⏳... Creating Icons for Windows...
( ● ) Generating app icons ⏳... Creating Icons for MacOS...
( ● ) Generating app icons ⏳...
✓ Successfully generated launcher icons
[14:43:26] Generated app icons ✅
Run subprocess: ['C:\\tools\\flutter\\bin\\dart.BAT', 'run', 'serious_python:main', 'package', 'C:\\Programming\\coreproject\\seeder', '--dep-mappings', 'flet=flet-embed',
'--req-deps', 'flet-embed', '--exclude', 'build']
( ● ) Packaging Python app ⏳...
Built serious_python:main.
(● ) Packaging Python app ⏳... Running package command
Creating asset directory: C:\Users\baseplate-admin\AppData\Local\Temp\flet_flutter_build_5GTut7q0HK\app
Copying Python app from C:\Programming\coreproject\seeder to C:\Users\baseplate-admin\AppData\Local\Temp\serious_python_temp80c62787
( ● ) Packaging Python app ⏳... Error: type 'Null' is not a subtype of type 'String'
Deleting temp directory C:\Users\baseplate-admin\AppData\Local\Temp\serious_python_temp80c62787
[14:43:27] Deleting Flutter bootstrap directory C:\Users\baseplate-admin\AppData\Local\Temp\flet_flutter_build_5GTut7q0HK
Flet app package app/app.zip was not created.
Duplicate Check
Describe the requested feature
Hi, it seems flet cannot build for monorepo style projects.
Here is a tree of the project folder
and following
pyproject.toml
filewhen i build with flet, it outputs the following
Suggest a solution
Flet should look for packages in the pyproject.toml file recursively.
Screenshots
No response
Additional details
If you want a github repository: https://github.com/coreproject-moe/CoreProject/tree/a8d9ef8fe716dc4f2abb2a412f8e035dcd12ae31/seeder
cc: @moonlitgrace