Open Houqua3D opened 3 months ago
I also ran into this issue for a simple app, while looking into this error that I'm also having #2103.\ mian.py
import flet as ft
def main(page: ft.Page):
page.add(ft.ListView(controls=[
ft.Text(f"{x}. Hello World!") for x in range(100)
], expand=True, spacing=10))
ft.app(target=main, view=ft.AppView.FLET_APP)
requirements.txt
flet
\
When running flet build windows -vv
I get the following output:
[07:34:33] Flutter executable: C:\Users\<user>\AppData\Local\flutter\bin\flutter.BAT
Dart executable: C:\code\source\flutter_windows_1.22.6-stable\flutter\bin\cache\dart-sdk\bin\dart.EXE
Flutter bootstrap directory: C:\Users\<user>\AppData\Local\Temp\flet_flutter_build_tNgMazW40C
Additional Flutter dependencies:
{}
[07:34:42] 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:\\code\\source\\flutter_windows_1.22.6-stable\\flutter\\bin\\cache\\dart-sdk\\bin\\dart.EXE', 'run', 'flutter_launcher_icons']
( ● ) Generating app icons ⏳... ╔════════════════════════════════════════════════════════════════════════════╗
║ The Dart tool uses Google Analytics to anonymously report feature usage ║
║ statistics, and crash reporting to send basic crash reports. This data is ║
║ used to help improve the Dart platform and tools over time. ║
║ ║
║ To disable reporting of anonymous tool usage statistics in general, run ║
║ the command: `dart --disable-analytics`. ║
╚════════════════════════════════════════════════════════════════════════════╝
( ● ) Generating app icons ⏳... Could not find the implicit file to run: bin\flet_flutter_build_tNgMazW40C.dart.
Usage: dart run [arguments] <dart file | package target>
-h, --help Print this usage information.
Debugging options:
--observe=<[<port>[/<bind-address>]]> The observe flag is a convenience flag used to run a program with a set of common options useful for debugging.
Options implied by --observe are currently:
--enable-vm-service=<[<port>[/<bind-address>]]> Enables the VM service and listens on the specified port for connections (default port number is 8181, default bind address is
localhost).
--[no-]pause-isolates-on-exit Pause isolates on exit when running with --enable-vm-service.
--[no-]pause-isolates-on-unhandled-exceptions Pause isolates when an unhandled exception is encountered when running with --enable-vm-service.
--[no-]warn-on-pause-with-no-debugger Print a warning when an isolate pauses with no attached debugger when running with --enable-vm-service.
Other debugging options:
--[no-]pause-isolates-on-start Pause isolates on start when running with --enable-vm-service.
--[no-]enable-asserts Enable assert statements.
Run "dart help" to see global options.
[07:34:43] Deleting Flutter bootstrap directory C:\Users\<user>\AppData\Local\Temp\flet_flutter_build_tNgMazW40C
Run subprocess: ['C:\\Users\\<user>\\AppData\\Local\\flutter\\bin\\flutter.BAT', '--version']
[07:34:44] Error building Flet app - see the log of failed command above.
\ Dev Env Info
Flet 0.23.2
Python 3.10.0
OS Name Microsoft Windows 11 Pro (Version 10.0.22631 Build 22631)
Duplicate Check
Describe the bug
I have a CI/CD build pipeline (which automatically uses the newest flet version for dev builds) and since version 0.23.0 was released the pipeline stopped working. When the pipeline calls
flet build windows
the following error occurs:The build finishes successfully with earlier flet versions. EDIT Info: also tested bugfix version 0.23.1. It does not resolve this error.
Code
No response
To reproduce
Azure agents pipeline with the following agent configuration:
Pipeline:
Flutter version == 3.22.2 Dart version == 3.4.3
While executing
flet build windows
the above-described error occurs.When changing the line
python -m pip install flet
topython -m pip install flet==0.22.*
it finishes the build successfully.Expected behavior
No response
Screenshots
No response
Operating System
Windows
Operating system details
Microsoft Windows Server 2022 10.0.20348
Flet version
0.23.0
Regression
Yes, it used to work in a previous Flet version (please specify the version in additional details)
Suggestions
No response
Additional details
No response