APK Packaging issue #2910
Unanswered
Maskedviper
asked this question in
Q&A
Replies: 1 comment
-
Same issue here. I have no clue. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Question
We are working on creating an app using Python and the Flet framework, after following several videos and links we are still running into an error in packaging the code as an apk file using the Flet framework.When we add the libraries one at a time they modulenotfounderror Is removed for the previous library not included but when we include all libraries in one go its taking hours for the packaging process and it still doesn't end up packaging.
We were getting the error "(ModuleNotFoundError: No module named 'fcntl')", indicating that fcntl is not available on windows and its specific to Unix. So I used a Windows Subsystem for Linux (WSL) and made sure all the environment variables
ANDROID_SDK_ROOT
andNDK_VERSION
are set correctly. Then running the p4a command "p4a apk --requirements=python3,flet,requests,beautifulsoup4,pandas,numpy,matplotlib,scikit-learn,xgboost --arch=arm64-v8a,armeabi-v7a,x86_64 --sdk-dir=$ANDROID_SDK_ROOT --ndk-dir=$ANDROID_SDK_ROOT/ndk/$NDK_VERSION --dist-name=mydist --package=org.example.myapp --name "My Application" --version 0.1 --bootstrap=sdl2"We have also specified the correct NDK VERSION and we still seem to be running into errors
Code sample
No response
Error message
------------------------------------------------------
Beta Was this translation helpful? Give feedback.
All reactions