Sep-03-2022, 01:04 AM
(This post was last modified: Sep-03-2022, 01:04 AM by jttolleson.)
Hello all,
Jayson Again - and I am making a website and android app by using an iframe in python then converting the .py file to an apk in p4a module.
I have an intense webpage at fishmap.lftr.biz -- that slings a data rich world fishing map with video, in python3 and so..........
I have utilized this webpage to make a .py script and android app as apk:
https://python-for-android.readthedocs.io/en/latest/
when i run and sdl2 bootstrap:
any help???? in making my python script and apk
I am continuing to attempt.....i believe there may be a python -V issue on my Ubuntu 22 machine so i download and install python-is-python3 to make the alias' better. I have python 3.10.4 now aswell. no luck yet.
Hey, my command is wrong... too
p4a clean_download_cache requirements
p4a clean_dists && p4a clean_builds
p4a apk --requirements=requirements \
--permission PERMISSION \
--package=the.package.name \
--name="App name" \
--version=x.y.z \
--android_api XY \
--bootstrap=sdl2 \
--launcher \
--minsdk 13
Warning
Do not use any of –private, –public, –dir or other arguments for adding main.py or main.pyo to the app. The argument –launcher is above them and tells the p4a to build the launcher version of the APK.
Well, a new tutorial has popped up and there has been a revamp done to the package p4a is now python-for-android and when i install it on a new machine :
New Tutorial - http://inclem.net/files/p4a_revamp_doc/quickstart.html
i will get back at the success of the new command:
python-for-android create ..........................
Hello again, Jayson - and i have found new hope on the topic....
a google collab exists utilizing python-for-android and buildozer....
It is a great solution for turning a python program into an ANDROID APP.
Google Colab
i found my colab option here: TowardsDataScience
https://towardsdatascience.com/3-ways-to...f4c9cd55af
I will post the status of the apk untill i finish my fishmap......
Well, i have output an apk ...finally.
unfortunately, while progress has been made i have yet to load the app, so i will try other options like webview and flask.
Jayson Again - and I am making a website and android app by using an iframe in python then converting the .py file to an apk in p4a module.
I have an intense webpage at fishmap.lftr.biz -- that slings a data rich world fishing map with video, in python3 and so..........
I have utilized this webpage to make a .py script and android app as apk:
https://python-for-android.readthedocs.io/en/latest/
when i run and sdl2 bootstrap:
Error while running "/home/jay/.local/share/python-for-android/build/other_builds/hostpython3/desktop/hostpython3/native-build/python3 -OO -m compileall -b -f /home/jay/python-for-android" This probably means one of your Python files has a syntax error, see logs abovetermainal command:
p4a apk --private /home/jay/python-for-android --package=biz.lftr.Fishmap --name "Fishmap" --version 0.1 --bootstrap=sdl2 --requirements=python3==3.9,hostpython3==3.9 --arch arm64-v8a --sdk-dir /home/jay/python-for-android/~/python-for-android/android-studio --ndk-dir /home/jay/python-for-android/android-ndk-r25b --presplash-color=teal --permission=INTERNET --debugmain.py
#!/usr/bin/env python3 print ('''Content-Type: text/html\n''') print (''' <html><head> <title>LFTR Fishmap</title> <meta name="description" content="fish fishing map with Doppler Radar Map weather" /> <meta http-equiv="content-type" content="text/html" /> <meta name="viewport" content="width=device-width, initial-scale=1"> </head> <body> <iframe src="fishmap.lftr.biz"></iframe> </body> </html>''')so i run :
python3 -OO - m compileall -b -f /home/jay/python-for-androidand the command works no syntax error, however it is independent of the finale of the script, so no apk just .pyc is made
any help???? in making my python script and apk
I am continuing to attempt.....i believe there may be a python -V issue on my Ubuntu 22 machine so i download and install python-is-python3 to make the alias' better. I have python 3.10.4 now aswell. no luck yet.
Hey, my command is wrong... too
p4a clean_download_cache requirements
p4a clean_dists && p4a clean_builds
p4a apk --requirements=requirements \
--permission PERMISSION \
--package=the.package.name \
--name="App name" \
--version=x.y.z \
--android_api XY \
--bootstrap=sdl2 \
--launcher \
--minsdk 13
Warning
Do not use any of –private, –public, –dir or other arguments for adding main.py or main.pyo to the app. The argument –launcher is above them and tells the p4a to build the launcher version of the APK.
Well, a new tutorial has popped up and there has been a revamp done to the package p4a is now python-for-android and when i install it on a new machine :
New Tutorial - http://inclem.net/files/p4a_revamp_doc/quickstart.html
i will get back at the success of the new command:
python-for-android create ..........................
Hello again, Jayson - and i have found new hope on the topic....
a google collab exists utilizing python-for-android and buildozer....
It is a great solution for turning a python program into an ANDROID APP.
Google Colab
i found my colab option here: TowardsDataScience
https://towardsdatascience.com/3-ways-to...f4c9cd55af
I will post the status of the apk untill i finish my fishmap......
Well, i have output an apk ...finally.
unfortunately, while progress has been made i have yet to load the app, so i will try other options like webview and flask.