Open ajaysehwal opened 1 day ago
Can you please share your requirements file.
flet==0.24.* aiohttp SpeechRecognition appwrite python-dotenv cryptography
Try upgrading your Flet version (and that of your requirements.txt
) to the latest pre-release version: https://pypi.org/project/flet/#history
Duplicate Check
Describe the bug
PS C:\Users\ajays\mos\Sagebridge\FLET\torrent-searching> flet build apk --verbose [13:31:14] Flutter bootstrap directory: C:\Users\ajays\AppData\Local\Temp\flet_flutter_build_Lx9dHe3UTw
No additional Flutter dependencies!
[13:31:19] Created Flutter bootstrap project from gh:flet-dev/flet-build-template with ref 0.24.1 ✅
Copying C:\Users\ajays\mos\Sagebridge\FLET\torrent-searching\assets\icon.png to C:\Users\ajays\AppData\Local\Temp\flet_flutter_build_Lx9dHe3UTw\images
Customized app icons and splash images ✅
Run subprocess: ['C:\flutter\flutter\bin\dart.BAT', 'run', 'flutter_launcher_icons']
( ● ) Generating app icons (6.4s) ( ● ) Generating app icons ⏳... (1.3s) ( ● ) Generating app icons ⏳... Got dependencies in
C:\Users\ajays\AppData\Local\Temp\flet_flutter_build_Lx9dHe3UTw
. ( ● ) Generating app icons(10.9s) Built flutter_launcher_icons:flutter_launcher_icons. ( ● ) Generating app icons ⏳... ════════════════════════════════════════════ FLUTTER LAUNCHER ICONS (v0.13.1)════════════════════════════════════════════
( ● ) Generating app icons ⏳... • 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... ( ● ) Generating app icons ⏳... Creating Icons for MacOS... ( ● ) Generating app icons ⏳... ✓ Successfully generated launcher icons [13:31:42] Generated app icons ✅
Run subprocess: ['C:\flutter\flutter\bin\dart.BAT', 'run', 'flutter_native_splash:create']
(● ) Generating splash screens (3.4s) Built flutter_native_splash:create. ( ● ) Generating splash screens ⏳... [Android] Creating default splash images (● ) Generating splash screens ⏳... [Android] Creating dark mode splash images ( ● ) Generating splash screens ⏳... [Android] Creating default android12splash images ( ● ) Generating splash screens ⏳... [Android] Creating dark mode android12splash images ( ● ) Generating splash screens ⏳... [Android] Updating launch background(s) with splash image path... [Android] - android/app/src/main/res/drawable/launch_background.xml ( ● ) Generating splash screens ⏳... [Android] - android/app/src/main/res/drawable-night/launch_background.xml [Android] - android/app/src/main/res/drawable-v21/launch_background.xml ( ● ) Generating splash screens ⏳... [Android] - android/app/src/main/res/drawable-night-v21/launch_background.xml [Android] Updating styles... [Android] - android/app/src/main/res/values-v31/styles.xml [Android] No android/app/src/main/res/values-v31/styles.xml found in your Android project [Android] Creating android/app/src/main/res/values-v31/styles.xml and adding it to your Android project [Android] - android/app/src/main/res/values-night-v31/styles.xml [Android] No android/app/src/main/res/values-night-v31/styles.xml found in your Android project [Android] Creating android/app/src/main/res/values-night-v31/styles.xml and adding it to your Android project [Android] - android/app/src/main/res/values/styles.xml ( ● ) Generating splash screens ⏳... [Android] - android/app/src/main/res/values-night/styles.xml [iOS] Creating images ( ● ) Generating splash screens ⏳... [iOS] Creating dark mode images ( ● ) Generating splash screens ⏳... [iOS] Updating ios/Runner/Info.plist for status bar hidden/visible (● ) Generating splash screens ⏳... [Web] Creating images ( ● ) Generating splash screens ⏳... [Web] Creating images ( ●) Generating splash screens ⏳... [Web] Creating background images ( ● ) Generating splash screens ⏳... [Web] Creating CSS ( ● ) Generating splash screens ⏳... [Web] Updating index.html (● ) Generating splash screens ⏳... ✅ Native splash complete. Now go finish building something awesome! 💪 You rock! 🤘🤩 Like the package? Please give it a 👍 here: https://pub.dev/packages/flutter_native_splash
[13:31:53] Generated splash screens ✅
Run subprocess: ['C:\flutter\flutter\bin\dart.BAT', 'run', 'serious_python:main', 'package', 'C:\Users\ajays\mos\Sagebridge\FLET\torrent-searching',
'--mobile', '--platform', 'mobile', '--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\ajays\AppData\Local\Temp\flet_flutter_build_Lx9dHe3UTw\app Copying Python app from C:\Users\ajays\mos\Sagebridge\FLET\torrent-searching to C:\Users\ajays\AppData\Local\Temp\serious_python_temp800c13c7 ( ● ) Packaging Python app ⏳... Configured mobile platform with sitecustomize.py at C:\Users\ajays\AppData\Local\Temp\serious_python_sitecustomized3b4e387\sitecustomize.py
Installing dependencies [flet-embed==0.24., flet-embed==0.24., aiohttp, SpeechRecognition, appwrite, python-dotenv, logging] with pip command to C:\Users\ajays\AppData\Local\Temp\serious_python_temp800c13c7__pypackages__ Extracting Python distributive from C:\Users\ajays\AppData\Local\Temp\cpython-3.11.6+20231002-x86_64-pc-windows-msvc-shared-install_only.tar.gz to C:\Users\ajays\AppData\Local\Temp\hostpython3.11_ab9c6cff ( ● ) Packaging Python app ⏳... Compiling Python sources at C:\Users\ajays\AppData\Local\Temp\serious_python_temp800c13c7 [13:33:18] Deleting Flutter bootstrap directory C:\Users\ajays\AppData\Local\Temp\flet_flutter_build_Lx9dHe3UTw
Error building Flet app - see the log of failed command above.
Run subprocess: ['C:\flutter\flutter\bin\flutter.BAT', 'doctor']
[13:33:25] Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.24.4, on Microsoft Windows [Version 10.0.22631.4460], locale en-US)
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[√] Chrome - develop for the web
[√] Visual Studio - develop Windows apps (Visual Studio Build Tools 2019 16.11.41)
[√] Android Studio (version 2024.2)
[√] VS Code (version 1.95.2)
[√] Connected device (3 available)
[√] Network resources
PS C:\Users\ajays\mos\Sagebridge\FLET\torrent-searching> flutter doctor --verbose
[√] Flutter (Channel stable, 3.24.4, on Microsoft Windows [Version 10.0.22631.4460], locale en-US) • Flutter version 3.24.4 on channel stable at C:\flutter\flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision 603104015d (3 weeks ago), 2024-10-24 08:01:25 -0700 • Engine revision db49896cf2 • Dart version 3.5.4 • DevTools version 2.37.3
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0) • Android SDK at C:\Users\ajays\AppData\Local\Android\Sdk • Platform android-34, build-tools 34.0.0 • ANDROID_HOME = C:\Users\ajays\AppData\Local\Android\Sdk • Java binary at: C:\Program Files\Android\Android Studio\jbr\bin\java • Java version OpenJDK Runtime Environment (build 21.0.3+-12282718-b509.11) • All Android licenses accepted.
[√] Chrome - develop for the web • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
[√] Visual Studio - develop Windows apps (Visual Studio Build Tools 2019 16.11.41) • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools • Visual Studio Build Tools 2019 version 16.11.35325.158 • Windows 10 SDK version 10.0.19041.0
[√] Android Studio (version 2024.2) • Android Studio at C:\Program Files\Android\Android Studio • Flutter plugin can be installed from: https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: https://plugins.jetbrains.com/plugin/6351-dart • Java version OpenJDK Runtime Environment (build 21.0.3+-12282718-b509.11)
[√] VS Code (version 1.95.2) • VS Code at C:\Users\ajays\AppData\Local\Programs\Microsoft VS Code • Flutter extension version 3.100.0
[√] Connected device (3 available) • Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.22631.4460] • Chrome (web) • chrome • web-javascript • Google Chrome 130.0.6723.117 • Edge (web) • edge • web-javascript • Microsoft Edge 130.0.2849.80
[√] Network resources • All expected network resources are available.
• No issues found! PS C:\Users\ajays\mos\Sagebridge\FLET\torrent-searching>
Code sample
Code
```python [Paste your code here] ```To reproduce
PS C:\Users\ajays\mos\Sagebridge\FLET\torrent-searching> flet build apk --verbose [13:31:14] Flutter bootstrap directory: C:\Users\ajays\AppData\Local\Temp\flet_flutter_build_Lx9dHe3UTw
No additional Flutter dependencies!
[13:31:19] Created Flutter bootstrap project from gh:flet-dev/flet-build-template with ref 0.24.1 ✅
Copying C:\Users\ajays\mos\Sagebridge\FLET\torrent-searching\assets\icon.png to C:\Users\ajays\AppData\Local\Temp\flet_flutter_build_Lx9dHe3UTw\images
Customized app icons and splash images ✅
Run subprocess: ['C:\flutter\flutter\bin\dart.BAT', 'run', 'flutter_launcher_icons']
( ● ) Generating app icons (6.4s) ( ● ) Generating app icons ⏳... (1.3s) ( ● ) Generating app icons ⏳... Got dependencies in
C:\Users\ajays\AppData\Local\Temp\flet_flutter_build_Lx9dHe3UTw
. ( ● ) Generating app icons(10.9s) Built flutter_launcher_icons:flutter_launcher_icons. ( ● ) Generating app icons ⏳... ════════════════════════════════════════════ FLUTTER LAUNCHER ICONS (v0.13.1)════════════════════════════════════════════
( ● ) Generating app icons ⏳... • 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... ( ● ) Generating app icons ⏳... Creating Icons for MacOS... ( ● ) Generating app icons ⏳... ✓ Successfully generated launcher icons [13:31:42] Generated app icons ✅
Run subprocess: ['C:\flutter\flutter\bin\dart.BAT', 'run', 'flutter_native_splash:create']
(● ) Generating splash screens (3.4s) Built flutter_native_splash:create. ( ● ) Generating splash screens ⏳... [Android] Creating default splash images (● ) Generating splash screens ⏳... [Android] Creating dark mode splash images ( ● ) Generating splash screens ⏳... [Android] Creating default android12splash images ( ● ) Generating splash screens ⏳... [Android] Creating dark mode android12splash images ( ● ) Generating splash screens ⏳... [Android] Updating launch background(s) with splash image path... [Android] - android/app/src/main/res/drawable/launch_background.xml ( ● ) Generating splash screens ⏳... [Android] - android/app/src/main/res/drawable-night/launch_background.xml [Android] - android/app/src/main/res/drawable-v21/launch_background.xml ( ● ) Generating splash screens ⏳... [Android] - android/app/src/main/res/drawable-night-v21/launch_background.xml [Android] Updating styles... [Android] - android/app/src/main/res/values-v31/styles.xml [Android] No android/app/src/main/res/values-v31/styles.xml found in your Android project [Android] Creating android/app/src/main/res/values-v31/styles.xml and adding it to your Android project [Android] - android/app/src/main/res/values-night-v31/styles.xml [Android] No android/app/src/main/res/values-night-v31/styles.xml found in your Android project [Android] Creating android/app/src/main/res/values-night-v31/styles.xml and adding it to your Android project [Android] - android/app/src/main/res/values/styles.xml ( ● ) Generating splash screens ⏳... [Android] - android/app/src/main/res/values-night/styles.xml [iOS] Creating images ( ● ) Generating splash screens ⏳... [iOS] Creating dark mode images ( ● ) Generating splash screens ⏳... [iOS] Updating ios/Runner/Info.plist for status bar hidden/visible (● ) Generating splash screens ⏳... [Web] Creating images ( ● ) Generating splash screens ⏳... [Web] Creating images ( ●) Generating splash screens ⏳... [Web] Creating background images ( ● ) Generating splash screens ⏳... [Web] Creating CSS ( ● ) Generating splash screens ⏳... [Web] Updating index.html (● ) Generating splash screens ⏳... ✅ Native splash complete. Now go finish building something awesome! 💪 You rock! 🤘🤩 Like the package? Please give it a 👍 here: https://pub.dev/packages/flutter_native_splash
[13:31:53] Generated splash screens ✅
Run subprocess: ['C:\flutter\flutter\bin\dart.BAT', 'run', 'serious_python:main', 'package', 'C:\Users\ajays\mos\Sagebridge\FLET\torrent-searching',
'--mobile', '--platform', 'mobile', '--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\ajays\AppData\Local\Temp\flet_flutter_build_Lx9dHe3UTw\app Copying Python app from C:\Users\ajays\mos\Sagebridge\FLET\torrent-searching to C:\Users\ajays\AppData\Local\Temp\serious_python_temp800c13c7 ( ● ) Packaging Python app ⏳... Configured mobile platform with sitecustomize.py at C:\Users\ajays\AppData\Local\Temp\serious_python_sitecustomized3b4e387\sitecustomize.py
Installing dependencies [flet-embed==0.24., flet-embed==0.24., aiohttp, SpeechRecognition, appwrite, python-dotenv, logging] with pip command to C:\Users\ajays\AppData\Local\Temp\serious_python_temp800c13c7__pypackages__ Extracting Python distributive from C:\Users\ajays\AppData\Local\Temp\cpython-3.11.6+20231002-x86_64-pc-windows-msvc-shared-install_only.tar.gz to C:\Users\ajays\AppData\Local\Temp\hostpython3.11_ab9c6cff ( ● ) Packaging Python app ⏳... Compiling Python sources at C:\Users\ajays\AppData\Local\Temp\serious_python_temp800c13c7 [13:33:18] Deleting Flutter bootstrap directory C:\Users\ajays\AppData\Local\Temp\flet_flutter_build_Lx9dHe3UTw
Error building Flet app - see the log of failed command above.
Run subprocess: ['C:\flutter\flutter\bin\flutter.BAT', 'doctor']
[13:33:25] Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.24.4, on Microsoft Windows [Version 10.0.22631.4460], locale en-US)
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[√] Chrome - develop for the web
[√] Visual Studio - develop Windows apps (Visual Studio Build Tools 2019 16.11.41)
[√] Android Studio (version 2024.2)
[√] VS Code (version 1.95.2)
[√] Connected device (3 available)
[√] Network resources
Expected behavior
No response
Screenshots / Videos
Captures
[Upload media here]Operating System
Windows
Operating system details
11
Flet version
0.24.1
Regression
No, it isn't
Suggestions
No response
Logs
Logs
```console [Paste your logs here] ```Additional details
No response