Buildozer, Not able to make it work for android app

139 views
Skip to first unread message

SUDARSHAN KONDGEKAR

unread,
Aug 14, 2015, 6:04:31 PM8/14/15
to Kivy users support
I have created a simple app in kivy and wanted to generate android version apk
using buildozer as per instructions available at http://kivy.org/docs/guide/packaging-android.html#packaging-with-python-for-android
but somehow getting error while downloading Python-2.7.2.tar.bz2
here is a log

sudarshan@sudarshan-Xubuntu:~/Documents/PythonKivi/FindMacAddress$ buildozer android debug
# Check configuration tokens
# Ensure build layout
# Check configuration tokens
# Preparing build
# Check requirements for android
# Run 'dpkg --version'
# Cwd None
Debian `dpkg' package management program version 1.17.5 (amd64).
This is free software; see the GNU General Public License version 2 or
later for copying conditions. There is NO warranty.
# 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-7-openjdk-amd64/bin/javac
# Search for Java keytool (keytool)
#  -> found at /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/keytool
# Install platform
# Apache ANT found at /home/sudarshan/.buildozer/android/platform/apache-ant-1.9.4
# Android SDK found at /home/sudarshan/.buildozer/android/platform/android-sdk-21
# Android NDK found at /home/sudarshan/.buildozer/android/platform/android-ndk-r9c
# Check application requirements
# Run './distribute.sh -l'
# Cwd /home/sudarshan/Documents/PythonKivi/FindMacAddress/.buildozer/android/platform/python-for-android
Available modules: android apsw audiostream bidi boost cherrypy c_igraph cprotobuf cymunk django docutils ecdsa enum34 evdev ffmpeg ffmpeg2 ffpyplayer freetype gevent greenlet harfbuzz hostpython igraph jpeg kivent_core kivent_cymunk kivy leveldb libevent libpq libsodium libswift libtorrent libxml2 libxslt libyaml lxml m2crypto midistream msgpack mysql_connector netifaces numpy opencv openssl paramiko pil plyer plyvel png polygon protobuf psutil psycopg2 pyasn1 pycrypto pygame pyjnius pylibpd pyopenssl pyparsing pyqrcode python pyyaml sdl setuptools six sqlalchemy sqlite3 storm swift thrift twisted txws wokkel zeroconf zope
# Application requirements already installed, pass
# Check garden requirements
# Compile platform
# Run './distribute.sh -l'
# Cwd /home/sudarshan/Documents/PythonKivi/FindMacAddress/.buildozer/android/platform/python-for-android
Available modules: android apsw audiostream bidi boost cherrypy c_igraph cprotobuf cymunk django docutils ecdsa enum34 evdev ffmpeg ffmpeg2 ffpyplayer freetype gevent greenlet harfbuzz hostpython igraph jpeg kivent_core kivent_cymunk kivy leveldb libevent libpq libsodium libswift libtorrent libxml2 libxslt libyaml lxml m2crypto midistream msgpack mysql_connector netifaces numpy opencv openssl paramiko pil plyer plyvel png polygon protobuf psutil psycopg2 pyasn1 pycrypto pygame pyjnius pylibpd pyopenssl pyparsing pyqrcode python pyyaml sdl setuptools six sqlalchemy sqlite3 storm swift thrift twisted txws wokkel zeroconf zope
# Clean and build python-for-android
# Remove directory and subdirectory /home/sudarshan/Documents/PythonKivi/FindMacAddress/.buildozer/android/platform/python-for-android/dist/kalkulator
# Run './distribute.sh -m "kivy" -d "kalkulator"'
# Cwd /home/sudarshan/Documents/PythonKivi/FindMacAddress/.buildozer/android/platform/python-for-android
Check build dependencies for Ubuntu
Packages missing: cython
It might break the compilation, except if you installed thoses packages manually.
Check environment
SDK located at /home/sudarshan/.buildozer/android/platform/android-sdk-21
NDK located at /home/sudarshan/.buildozer/android/platform/android-ndk-r9c
NDK version is r9c
API level set to 14
Check NDK location
Check mandatory tools
Distribution will be located at /home/sudarshan/Documents/PythonKivi/FindMacAddress/.buildozer/android/platform/python-for-android/dist/kalkulator
Entering in ARM environment
Compiler found at /home/sudarshan/.buildozer/android/platform/android-ndk-r9c/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin//arm-linux-androideabi-gcc
PATH is /home/sudarshan/.buildozer/android/platform/android-ndk-r9c/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86/bin/:/home/sudarshan/.buildozer/android/platform/android-ndk-r9c/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/:/home/sudarshan/.buildozer/android/platform/android-ndk-r9c:/home/sudarshan/.buildozer/android/platform/android-sdk-21/tools:/home/sudarshan/.buildozer/android/platform/apache-ant-1.9.4/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
Leaving ARM environment
Read kivy recipe
Module kivy depend on pygame pyjnius android
Read pygame recipe
Module pygame depend on python sdl
Read pyjnius recipe
Module pyjnius depend on python sdl
Read android recipe
Module android depend on pygame
Read python recipe
Module python depend on hostpython
Read sdl recipe
Module sdl depend on python
Ignored python, already processed
Ignored sdl, already processed
Ignored pygame, already processed
Read hostpython recipe
Ignored python, already processed
Modules changed to hostpython python sdl pygame pyjnius android kivy
Pure-Python modules changed to
Run get packages
Download package for hostpython
Downloading http://python.org/ftp/python/2.7.2/Python-2.7.2.tar.bz2
--2015-08-15 02:09:49--  http://python.org/ftp/python/2.7.2/Python-2.7.2.tar.bz2
Resolving python.org (python.org)... 104.130.43.121, 2001:4802:7901:0:e60a:1375:0:5
Connecting to python.org (python.org)|104.130.43.121|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://python.org/ftp/python/2.7.2/Python-2.7.2.tar.bz2 [following]
--2015-08-15 02:09:50--  https://python.org/ftp/python/2.7.2/Python-2.7.2.tar.bz2
Connecting to python.org (python.org)|104.130.43.121|:443... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://www.python.org/ftp/python/2.7.2/Python-2.7.2.tar.bz2 [following]
--2015-08-15 02:09:51--  https://www.python.org/ftp/python/2.7.2/Python-2.7.2.tar.bz2
Resolving www.python.org (www.python.org)... 103.245.222.223
Connecting to www.python.org (www.python.org)|103.245.222.223|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 11754834 (11M) [application/octet-stream]
Saving to: ‘Python-2.7.2.tar.bz2’

     0K .......... .......... .......... .......... ..........  0%  135K 84s
    50K .......... .......... .......... .......... ..........  0% 69.6K 2m4s
   100K .......... .......... .......... .......... ..........  1% 1.10M 85s
   150K .......... .......... .......... .......... ..........  1% 45.9K 2m5s
   200K .......... .......... .......... .......... ..........  2% 4.06M 1m40s
   250K .......... .......... .......... .......... ..........  2%  130K 98s
   300K .......... .......... .......... .......... ..........  3%  130K 95s
   350K .......... .......... .......... .......... ..........  3% 77.5K 1m41s
   400K .......... .......... .......... .......... ..........  3%  184K 96s
   450K .......... .......... .......... .......... ..........  4%  107K 96s
   500K .......... .......... .......... .......... ..........  4%  109K 96s
   550K .......... .......... .......... .......... ..........  5%  105K 97s
   600K .......... .......... .......... .......... ..........  5%  113K 96s
   650K .......... .......... .......... .......... ..........  6% 71.8K 1m40s
   700K .......... .......... .......... .......... ..........  6% 64.0K 1m44s
   750K .......... .......... .......... .......... ..........  6% 37.6K 1m54s
   800K .......... .......... .......... .......... ..........  7% 35.6K 2m5s
   850K .......... .......... .......... .......... ..........  7% 31.4K 2m16s
   900K .......... .......... .......... .......... ..........  8% 52.9K 2m19s
   950K .......... .......... .......... .......... ..........  8% 79.2K 2m18s
  1000K .......... .......... .......... .......... ..........  9%  116K 2m15s
  1050K .......... .......... .......... .......... ..........  9%  118K 2m12s
  1100K .......... .......... .......... .......... .......... 10%  126K 2m9s
  1150K .......... .......... .......... .......... .......... 10% 77.2K 2m9s
  1200K .......... .......... .......... .......... .......... 10% 96.8K 2m7s
  1250K .......... .......... .......... .......... .......... 11% 79.7K 2m7s
  1300K .......... .......... .......... .......... .......... 11% 85.6K 2m6s
  1350K .......... .......... .......... .......... .......... 12% 72.4K 2m6s
  1400K .......... .......... .......... .......... .......... 12% 85.9K 2m5s
  1450K .......... .......... .......... .......... .......... 13% 72.8K 2m5s
  1500K .......... .......... .......... .......... .......... 13% 92.9K 2m3s
  1550K .......... .......... .......... .......... .......... 13% 65.2K 2m4s
  1600K .......... .....                                       14% 33.4M=20s

2015-08-15 02:10:13 (80.6 KB/s) - Read error at byte 1653928/11754834 (Connection reset by peer). # Command failed: ./distribute.sh -m "kivy" -d "kalkulator"
#
# 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

Garrett Armstrong

unread,
Aug 14, 2015, 10:05:31 PM8/14/15
to Kivy users support
My impression is the network dropped before you completed downloading the Python-2.7.2.tar.bz2.  If so, and if your internet is expected to continue to drop connection, then maybe you could download the python-2.7.2.tar.bz2 in advance - then place it where buildozer expects to find it, so that buildozer won't need to download it.  I don't know the details of how to hack that, but it seems like one possible solution.
Reply all
Reply to author
Forward
0 new messages