Stuck at Packaging Python app #4698
Replies: 2 comments
-
Getting this error once I stop the command Traceback (most recent call last): |
Beta Was this translation helpful? Give feedback.
-
Though I'm wondering - are you planning to communicate with MongoDB server from an Android phone? |
Beta Was this translation helpful? Give feedback.
-
Duplicate Check
Describe the bug
I am unable to progress any further to build apk since I upgraded to 0.25.1 , I am currently stuck at ( ● ) Packaging Python app ⏳... VERBOSE: Looking in indexes: https://pypi.org/simple, https://pypi.flet.dev
( ● ) Packaging Python app ⏳...
FYI, I am using a work laptop, I used to build apps without any issues earlier on 0.24.2
requirements :
flet
pymongo
certifi
dnspython
First run:
[16:09:11] Flutter executable: C:\Users\be\flutter\bin\flutter.BAT
Dart executable: C:\Users\be\flutter\bin\dart.BAT
Run subprocess: ['C:\Users\be\flutter\bin\flutter.BAT', '--version']
[16:09:12] No additional Flutter dependencies!
[16:09:16] Created Flutter bootstrap project from gh:flet-dev/flet-build-template with ref 0.26.0 ✅
Copying D:\Python\new_test\assets\icon.png to D:\Python\new_test\build\flutter\images
Customized app icons and splash images ✅
Run subprocess: ['C:\Users\be\flutter\bin\dart.BAT', 'run', 'flutter_launcher_icons']
( ● ) Generating app icons ⏳...
Built flutter_launcher_icons:flutter_launcher_icons.
( ● ) Generating app icons ⏳... ════════════════════════════════════════════
FLUTTER LAUNCHER ICONS (v0.14.2)
════════════════════════════════════════════
( ● ) Generating app icons ⏳... • Creating default icons Android
• Overwriting the default Android launcher icon with a new icon
( ● ) Generating app icons ⏳... • Creating adaptive icons Android
(● ) Generating app icons ⏳... • Updating colors.xml with color for adaptive icon background
• Creating mipmap xml file Android
( ● ) 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
[16:09:20] Generated app icons ✅
Run subprocess: ['C:\Users\be\flutter\bin\dart.BAT', 'run', 'flutter_native_splash:create']
( ● ) Generating splash screens ⏳...
Built flutter_native_splash:create.
( ● ) Generating splash screens ⏳... [Android] Creating default splash images
(● ) Generating splash screens ⏳... [Android] Creating dark mode splash images
[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
[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] - android/app/src/main/res/values-night-v31/styles.xml
[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
[iOS] Creating dark mode images
( ● ) Generating splash screens ⏳... [iOS] Updating ios/Runner/Info.plist for status bar hidden/visible
[Web] Creating images
( ● ) Generating splash screens ⏳... [Web] Creating images
( ● ) Generating splash screens ⏳... [Web] Creating background images
[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
[16:09:23] Generated splash screens ✅
Contents of requirements.txt: flet
pymongo
certifi
dnspython
( ● ) Packaging Python app ⏳...
Built serious_python:main.
(● ) Packaging Python app ⏳... Running package command
Extra PyPi indexes: [https://pypi.flet.dev]
Created temp directory: C:\Users\be\AppData\Local\Temp\serious_python_temp906d5290
Copying Python app from D:\Python\new_test to a temp directory
( ● ) Packaging Python app ⏳... VERBOSE: Delete unnecessary app files with extensions: [.c, .h, .hpp, .typed, .a, .pdb, .exe, .dll]
VERBOSE: Delete unnecessary app files and directories: [pycache, bin]
VERBOSE: Configured Android/arm64-v8a platform with sitecustomize.py at C:\Users\be\AppData\Local\Temp\serious_python_sitecustomize4b1a263b\sitecustomize.py
Installing [-r, D:\Python\new_test\requirements.txt] with pip command to D:\Python\new_test\build\site-packages\arm64-v8a
VERBOSE: D:\Python\new_test\build\flutter\build\build_python_3.12.6\python\python.exe -m pip install --upgrade --disable-pip-version-check --only-binary :all: --extra-index-url https://pypi.flet.dev --target D:\Python\new_test\build\site-packages\arm64-v8a -r D:\Python\new_test\requirements.txt
( ● ) Packaging Python app ⏳... VERBOSE: Looking in indexes: https://pypi.org/simple, https://pypi.flet.dev
( ● ) Packaging Python app ⏳...
Second run:
(● ) Packaging Python app ⏳...
Built serious_python:main.
( ● ) Packaging Python app ⏳... Running package command
Extra PyPi indexes: [https://pypi.flet.dev]
Created temp directory: C:\Users\beeredda\AppData\Local\Temp\serious_python_temp4eb2f553
Copying Python app from D:\Python\new_test to a temp directory
Cleanup app
Configured Android/arm64-v8a platform with sitecustomize.py
( ●) Packaging Python app ⏳... Installing [-r, D:\Python\new_test\requirements.txt] with pip command to D:\Python\new_test\build\site-packages\arm64-v8a
( ● ) Packaging Python app ⏳...
Code sample
import flet as ft
from pymongo import MongoClient
import certifi
import dns.resolver
from datetime import date
import sys
from datetime import datetime, timedelta
To reproduce
Not sure how.
Expected behavior
able to download the packages
Screenshots / Videos
Captures
[Upload media here]
Operating System
Windows
Operating system details
Windows 11
Flet version
0.26.0
Regression
Yes, it used to work in a previous Flet version (please specify the version in additional details)
Suggestions
No response
Logs
Logs
[Paste your logs here]
Additional details
No response
Beta Was this translation helpful? Give feedback.
All reactions