Build android app offline with buildozer, how ?

209 views
Skip to first unread message

ToR

unread,
Jul 22, 2021, 8:21:17 AM7/22/21
to Kivy users support
I'm having zero success building a Kivy app offline...
Using Python 3.7, Kivy 1.11.1, buildozer 1.2.0 on mac os 10.13.6 works when online.
Offline is a no-go.
I can readily admit I do not know exactly what is going on here, so my simple question:
Is it at all possible and if so, are there a link to some hints you can share ?

Robert

unread,
Jul 22, 2021, 12:42:20 PM7/22/21
to Kivy users support
I don't think there is any documentation that suggests one can run Buildozer without a net connection. In the general case a net connection is definitely required. You may find a special case, but clearly you could not rely on it.

ToR

unread,
Jul 23, 2021, 4:58:08 AM7/23/21
to Kivy users support
OK, good to know it's supposed to work this way, my hair was turning grey...
So net connection mandatory but may I ask why ?
At my present location net connection is sporadic and it's a PITA when building and testing.
It is hard to believe I'm the only one who wants to build offline, yes ?

Sruthi Kuriakose

unread,
Jan 24, 2023, 3:11:21 AM1/24/23
to Kivy users support
Hi, have you found a solution to this problem? I'm trying to build offline too. 
I'm wondering why inspite of the libraries being already installed in the system, Buildozer still downloads while compiling.

Regards,
Sruthi

tor

unread,
Jan 24, 2023, 4:13:39 AM1/24/23
to kivy-...@googlegroups.com
No, I took Roberts answer for gospel and have not made any further attempts.
It's a pity though, there really are cases you do not want to expose to an online environment, guess Kivy/Buildozer et.c. is not for those...


--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/9a08e1cc-447d-4357-b4c4-71e8414c6141n%40googlegroups.com.

qua non

unread,
Jan 24, 2023, 5:14:21 AM1/24/23
to kivy-...@googlegroups.com
Buildozer is supposed to work offline,  if it does not please open a issue. With details logs.

qua non

unread,
Jan 24, 2023, 5:18:58 AM1/24/23
to kivy-...@googlegroups.com
Clarification. "Buildozer is supposed to work offline".

Buildozer is supposed to be able to build offline once the distribution/requirements are downloaded. Unless you change any app requirements/buildozer.spec requirements.

If for some reason currently buildozer fails to build offline even when there is no change to requirements. Then maybe a bug creeped up that made things not work that way.

So, Please do open a bug on issue tracker with exact detail on what is going on and detailed logs.

tor

unread,
Jan 25, 2023, 4:00:32 AM1/25/23
to kivy-...@googlegroups.com

Sruthi Kuriakose

unread,
Jan 25, 2023, 5:03:03 AM1/25/23
to Kivy users support
The main issue is that even when all the packages are installed,  running "buildozer android debug" automatically starts cloning the required libraries. 
As you can see here, I've already installed the python-for-android library, but buildozer tries to clone it from github. I also added the folder location path, but it didn't make any difference


:~/sruthi/kivy_examples/signup_android$ sudo buildozer android debug
# Check configuration tokens
Buildozer is running as root!
This is not recommended, and may lead to problems later.
Are you sure you want to continue [y/n]? y
# Ensure build layout
# Check configuration tokens
# Read available permissions from api-versions.xml
# Preparing build
# Check requirements for android
# Search for Git (git)
#  -> found at /usr/bin/git
# Search for Cython (cython)
#  -> found at /usr/local/bin/cython
# Search for Java compiler (javac)
#  -> found at /usr/lib/jvm/java-11-openjdk-amd64/bin/javac
# Search for Java keytool (keytool)
#  -> found at /usr/lib/jvm/java-11-openjdk-amd64/bin/keytool
# Install platform
# Run ['git', 'clone', '-b', 'master', '--single-branch', 'https://github.com/kivy/python-for-android.git', 'python-for-android']

# Cwd /kivy_examples/signup_android/.buildozer/android/platform
Cloning into 'python-for-android'...
fatal: unable to access 'https://github.com/kivy/python-for-android.git/': Could not resolve host: github.com
# Command failed: ['git', 'clone', '-b', 'master', '--single-branch', 'https://github.com/kivy/python-for-android.git', 'python-for-android']
# ENVIRONMENT:
#     LANG = 'C.UTF-8'
#     LS_COLORS = 'rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:'
#     TERM = 'xterm-256color'
#     DISPLAY = ':0'
#     PATH = '/root/.buildozer/android/platform/apache-ant-1.9.4/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin'
#     MAIL = '/var/mail/root'
#     LOGNAME = 'root'
#     USER = 'root'
#     HOME = '/root'
#     SHELL = '/bin/bash'
#     SUDO_COMMAND = '/usr/local/bin/buildozer android debug'
#     SUDO_UID = '1000'
#     SUDO_GID = '1000'
#
# Buildozer failed to execute the last command
# The error might be hidden in the log above this error
# Please read the full log, and search for it before
# raising an issue with buildozer itself.
# In case of a bug report, please add a full log with log_level = 2
:~/sruthi/kivy_examples/signup_android$ python-for-android --version
[WARNING]: prerequisites.py is experimental and does not support all prerequisites yet.
[WARNING]: Please report any issues to the python-for-android issue tracker.
2022.12.20



Reply all
Reply to author
Forward
0 new messages