Skip to content

Instantly share code, notes, and snippets.

@Zen-CODE
Created August 6, 2017 08:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Zen-CODE/839c0b67face5abbb4280370cedf9024 to your computer and use it in GitHub Desktop.
Save Zen-CODE/839c0b67face5abbb4280370cedf9024 to your computer and use it in GitHub Desktop.
kivy@kivy-complete:~/Repos/Apps/kivy-speedtest$ 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.18.4 (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-8-openjdk-amd64/bin/javac
# Search for Java keytool (keytool)
# -> found at /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/keytool
# Install platform
# Run 'pip install -q --user "appdirs" "colorama>=0.3.3" "sh>=1.10,<1.12.5" "jinja2" "six"'
# Cwd None
# Apache ANT found at /home/kivy/.buildozer/android/platform/apache-ant-1.9.4
# Android SDK found at /home/kivy/.buildozer/android/platform/android-sdk-23
# Android NDK found at /home/kivy/.buildozer/android/platform/android-ndk-r9c
# Check application requirements
# Check garden requirements
# Compile platform
# Run '/usr/bin/python -m pythonforandroid.toolchain create --dist_name=camiweb.com --bootstrap=sdl2 --requirements=python2,sqlite3,kivy==1.10.0 --arch armeabi-v7a --copy-libs --color=always --storage-dir=/home/kivy/Repos/Apps/kivy-speedtest/.buildozer/android/platform/build'
# Cwd /home/kivy/Repos/Apps/kivy-speedtest/.buildozer/android/platform/python-for-android-master
[INFO]: Recipe kivy: version "1.10.0" requested
[INFO]: Will compile for the following archs: armeabi-v7a
[INFO]: Found Android API target in $ANDROIDAPI
[INFO]: Available Android APIs are (19)
[INFO]: Requested API target 19 is available, continuing.
[INFO]: Found NDK dir in $ANDROIDNDK
[INFO]: Got NDK version from $ANDROIDNDKVER
[INFO]: Using Google NDK r9c
[INFO]: Found virtualenv at /usr/local/bin/virtualenv
[INFO]: ccache is missing, the build will not be optimized in the future.
[INFO]: Found the following toolchain versions: ['4.6', '4.8', 'clang3.3']
[INFO]: Picking the latest gcc toolchain, here 4.8
[INFO]: No existing dists meet the given requirements!
[INFO]: No dist exists that meets your requirements, so one will be built.
[INFO]: Found multiple valid dependency orders:
[INFO]: ['hostpython2', 'sdl2_image', 'sdl2_mixer', 'sdl2_ttf', u'sqlite3', u'python2', 'sdl2', 'six', 'pyjnius', u'kivy']
[INFO]: ['hostpython2', 'pygame_bootstrap_components', u'sqlite3', u'python2', 'sdl', 'six', 'pygame', 'pyjnius', u'kivy']
[INFO]: Using the first of these: ['hostpython2', 'sdl2_image', 'sdl2_mixer', 'sdl2_ttf', u'sqlite3', u'python2', 'sdl2', 'six', 'pyjnius', u'kivy']
[INFO]: The selected bootstrap is sdl2
[INFO]: # Creating dist with sdl2 bootstrap
[INFO]: Dist will have name camiweb.com and recipes (python2, sqlite3, kivy)
[INFO]: -> running cp -r /home/kivy/Repos/Apps/ki...(and 212 more)
[INFO]: -> directory context /home/kivy/Repos/Apps/kivy-speedtest/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python2
[INFO]: <- directory context /home/kivy/Repos/Apps/kivy-speedtest/.buildozer/android/platform/python-for-android-master
[INFO]: Recipe build order is ['hostpython2', 'sdl2_image', 'sdl2_mixer', 'sdl2_ttf', u'sqlite3', u'python2', 'sdl2', 'six', 'pyjnius', u'kivy']
[INFO]: # Downloading recipes
[INFO]: Downloading hostpython2
[INFO]: -> running mkdir -p /home/kivy/Repos/Apps...(and 70 more)
[INFO]: -> directory context /home/kivy/Repos/Apps/kivy-speedtest/.buildozer/android/platform/build/packages/hostpython2
[INFO]: -> running basename http://python.org/ftp/...(and 33 more)
[INFO]: hostpython2 download already cached, skipping
[INFO]: <- directory context /home/kivy/Repos/Apps/kivy-speedtest/.buildozer/android/platform/python-for-android-master
[INFO]: Downloading sdl2_image
[INFO]: -> running mkdir -p /home/kivy/Repos/Apps...(and 69 more)
[INFO]: -> directory context /home/kivy/Repos/Apps/kivy-speedtest/.buildozer/android/platform/build/packages/sdl2_image
[INFO]: -> running basename https://www.libsdl.org...(and 48 more)
[INFO]: sdl2_image download already cached, skipping
[INFO]: <- directory context /home/kivy/Repos/Apps/kivy-speedtest/.buildozer/android/platform/python-for-android-master
[INFO]: Downloading sdl2_mixer
[INFO]: -> running mkdir -p /home/kivy/Repos/Apps...(and 69 more)
[INFO]: -> directory context /home/kivy/Repos/Apps/kivy-speedtest/.buildozer/android/platform/build/packages/sdl2_mixer
[INFO]: -> running basename https://www.libsdl.or...(and 52 more)
[INFO]: sdl2_mixer download already cached, skipping
[INFO]: <- directory context /home/kivy/Repos/Apps/kivy-speedtest/.buildozer/android/platform/python-for-android-master
[INFO]: Downloading sdl2_ttf
[INFO]: -> running mkdir -p /home/kivy/Repos/Apps...(and 67 more)
[INFO]: -> directory context /home/kivy/Repos/Apps/kivy-speedtest/.buildozer/android/platform/build/packages/sdl2_ttf
[INFO]: -> running basename https://www.libsdl.org...(and 48 more)
[INFO]: sdl2_ttf download already cached, skipping
[INFO]: <- directory context /home/kivy/Repos/Apps/kivy-speedtest/.buildozer/android/platform/python-for-android-master
[INFO]: Downloading sqlite3
[INFO]: -> running mkdir -p /home/kivy/Repos/Apps...(and 66 more)
[INFO]: -> directory context /home/kivy/Repos/Apps/kivy-speedtest/.buildozer/android/platform/build/packages/sqlite3
[INFO]: -> running basename https://www.sqlite.org...(and 37 more)
[INFO]: sqlite3 download already cached, skipping
[INFO]: <- directory context /home/kivy/Repos/Apps/kivy-speedtest/.buildozer/android/platform/python-for-android-master
[INFO]: Downloading python2
[INFO]: -> running mkdir -p /home/kivy/Repos/Apps...(and 66 more)
[INFO]: -> directory context /home/kivy/Repos/Apps/kivy-speedtest/.buildozer/android/platform/build/packages/python2
[INFO]: -> running basename http://python.org/ftp/...(and 33 more)
[INFO]: python2 download already cached, skipping
[INFO]: <- directory context /home/kivy/Repos/Apps/kivy-speedtest/.buildozer/android/platform/python-for-android-master
[INFO]: Downloading sdl2
[INFO]: -> running mkdir -p /home/kivy/Repos/Apps...(and 63 more)
[INFO]: -> directory context /home/kivy/Repos/Apps/kivy-speedtest/.buildozer/android/platform/build/packages/sdl2
[INFO]: -> running basename https://www.libsdl.org...(and 26 more)
[INFO]: <- directory context /home/kivy/Repos/Apps/kivy-speedtest/.buildozer/android/platform/python-for-android-master
[INFO]: Downloading six
[INFO]: -> running mkdir -p /home/kivy/Repos/Apps...(and 62 more)
[INFO]: -> directory context /home/kivy/Repos/Apps/kivy-speedtest/.buildozer/android/platform/build/packages/six
[INFO]: -> running basename https://pypi.python.or...(and 40 more)
[INFO]: six download already cached, skipping
[INFO]: <- directory context /home/kivy/Repos/Apps/kivy-speedtest/.buildozer/android/platform/python-for-android-master
[INFO]: Downloading pyjnius
[INFO]: -> running mkdir -p /home/kivy/Repos/Apps...(and 66 more)
[INFO]: -> directory context /home/kivy/Repos/Apps/kivy-speedtest/.buildozer/android/platform/build/packages/pyjnius
[INFO]: -> running basename https://github.com/kiv...(and 28 more)
[INFO]: pyjnius download already cached, skipping
[INFO]: <- directory context /home/kivy/Repos/Apps/kivy-speedtest/.buildozer/android/platform/python-for-android-master
[INFO]: Downloading kivy
[INFO]: -> running mkdir -p /home/kivy/Repos/Apps...(and 63 more)
[INFO]: -> directory context /home/kivy/Repos/Apps/kivy-speedtest/.buildozer/android/platform/build/packages/kivy
[INFO]: -> running basename https://github.com/kiv...(and 25 more)
[INFO]: kivy download already cached, skipping
[INFO]: <- directory context /home/kivy/Repos/Apps/kivy-speedtest/.buildozer/android/platform/python-for-android-master
[INFO]: # Building all recipes for arch armeabi-v7a
[INFO]: # Unpacking recipes
[INFO]: Unpacking hostpython2 for armeabi-v7a
[INFO]: -> running basename http://python.org/ftp/...(and 33 more)
[INFO]: -> directory context /home/kivy/Repos/Apps/kivy-speedtest/.buildozer/android/platform/build/build/other_builds/hostpython2/desktop
[INFO]: hostpython2 is already unpacked, skipping
[INFO]: <- directory context /home/kivy/Repos/Apps/kivy-speedtest/.buildozer/android/platform/python-for-android-master
[INFO]: Unpacking sdl2_image for armeabi-v7a
[INFO]: -> running basename https://www.libsdl.org...(and 48 more)
[INFO]: -> directory context /home/kivy/Repos/Apps/kivy-speedtest/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python2/jni
[INFO]: sdl2_image is already unpacked, skipping
[INFO]: <- directory context /home/kivy/Repos/Apps/kivy-speedtest/.buildozer/android/platform/python-for-android-master
[INFO]: Unpacking sdl2_mixer for armeabi-v7a
[INFO]: -> running basename https://www.libsdl.or...(and 52 more)
work[INFO]: -> directory context /home/kivy/Repos/Apps/kivy-speedtest/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python2/jni
[INFO]: sdl2_mixer is already unpacked, skipping
[INFO]: <- directory context /home/kivy/Repos/Apps/kivy-speedtest/.buildozer/android/platform/python-for-android-master
[INFO]: Unpacking sdl2_ttf for armeabi-v7a
[INFO]: -> running basename https://www.libsdl.org...(and 48 more)
[INFO]: -> directory context /home/kivy/Repos/Apps/kivy-speedtest/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python2/jni
[INFO]: sdl2_ttf is already unpacked, skipping
[INFO]: <- directory context /home/kivy/Repos/Apps/kivy-speedtest/.buildozer/android/platform/python-for-android-master
[INFO]: Unpacking sqlite3 for armeabi-v7a
[INFO]: -> running basename https://www.sqlite.org...(and 37 more)
[INFO]: -> directory context /home/kivy/Repos/Apps/kivy-speedtest/.buildozer/android/platform/build/build/other_builds/sqlite3/armeabi-v7a
[INFO]: sqlite3 is already unpacked, skipping
[INFO]: <- directory context /home/kivy/Repos/Apps/kivy-speedtest/.buildozer/android/platform/python-for-android-master
[INFO]: Unpacking python2 for armeabi-v7a
[INFO]: -> running basename http://python.org/ftp/...(and 33 more)
[INFO]: -> directory context /home/kivy/Repos/Apps/kivy-speedtest/.buildozer/android/platform/build/build/other_builds/python2-sqlite3/armeabi-v7a
[INFO]: python2 is already unpacked, skipping
[INFO]: <- directory context /home/kivy/Repos/Apps/kivy-speedtest/.buildozer/android/platform/python-for-android-master
[INFO]: Unpacking sdl2 for armeabi-v7a
[INFO]: -> running basename https://www.libsdl.org...(and 26 more)
[INFO]: -> directory context /home/kivy/Repos/Apps/kivy-speedtest/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python2/jni
[INFO]: sdl2 is already unpacked, skipping
[INFO]: <- directory context /home/kivy/Repos/Apps/kivy-speedtest/.buildozer/android/platform/python-for-android-master
[INFO]: Unpacking six for armeabi-v7a
[INFO]: -> running basename https://pypi.python.or...(and 40 more)
[INFO]: -> directory context /home/kivy/Repos/Apps/kivy-speedtest/.buildozer/android/platform/build/build/other_builds/six-python2/armeabi-v7a
[INFO]: six is already unpacked, skipping
[INFO]: <- directory context /home/kivy/Repos/Apps/kivy-speedtest/.buildozer/android/platform/python-for-android-master
[INFO]: Unpacking pyjnius for armeabi-v7a
[INFO]: -> running basename https://github.com/kiv...(and 28 more)
working: maste[INFO]: -> directory context /home/kivy/Repos/Apps/kivy-speedtest/.buildozer/android/platform/build/build/other_builds/pyjnius-python2-sdl2/armeabi-v7a
[INFO]: pyjnius is already unpacked, skipping
[INFO]: <- directory context /home/kivy/Repos/Apps/kivy-speedtest/.buildozer/android/platform/python-for-android-master
[INFO]: Unpacking kivy for armeabi-v7a
[INFO]: -> running basename https://github.com/kiv...(and 25 more)
[INFO]: -> directory context /home/kivy/Repos/Apps/kivy-speedtest/.buildozer/android/platform/build/build/other_builds/kivy-python2-sdl2/armeabi-v7a
[INFO]: kivy is already unpacked, skipping
[INFO]: <- directory context /home/kivy/Repos/Apps/kivy-speedtest/.buildozer/android/platform/python-for-android-master
[INFO]: # Prebuilding recipes
[INFO]: Prebuilding hostpython2 for armeabi-v7a
[INFO]: -> running cp /home/kivy/Repos/Apps/kivy-...(and 242 more)
[INFO]: Prebuilding sdl2_image for armeabi-v7a
[INFO]: sdl2_image has no prebuild_armeabi_v7a, skipping
[INFO]: Applying patches for sdl2_image[armeabi-v7a]
[INFO]: sdl2_image already patched, skipping
[INFO]: Prebuilding sdl2_mixer for armeabi-v7a
[INFO]: sdl2_mixer has no prebuild_armeabi_v7a, skipping
[INFO]: Applying patches for sdl2_mixer[armeabi-v7a]
[INFO]: sdl2_mixer already patched, skipping
[INFO]: Prebuilding sdl2_ttf for armeabi-v7a
[INFO]: sdl2_ttf has no prebuild_armeabi_v7a, skipping
[INFO]: Prebuilding sqlite3 for armeabi-v7a
[INFO]: sqlite3 has no prebuild_armeabi_v7a, skipping
[INFO]: Prebuilding python2 for armeabi-v7a
[INFO]: python2 has no prebuild_armeabi_v7a, skipping
[INFO]: Applying patches for python2[armeabi-v7a]
[INFO]: python2 already patched, skipping
[INFO]: Prebuilding sdl2 for armeabi-v7a
[INFO]: sdl2 has no prebuild_armeabi_v7a, skipping
[INFO]: Applying patches for sdl2[armeabi-v7a]
[INFO]: sdl2 already patched, skipping
[INFO]: Prebuilding six for armeabi-v7a
[INFO]: six has no prebuild_armeabi_v7a, skipping
[INFO]: Prebuilding pyjnius for armeabi-v7a
[INFO]: pyjnius has no prebuild_armeabi_v7a, skipping
[INFO]: Applying patches for pyjnius[armeabi-v7a]
[INFO]: pyjnius already patched, skipping
[INFO]: Prebuilding kivy for armeabi-v7a
[INFO]: kivy has no prebuild_armeabi_v7a, skipping
[INFO]: # Building recipes
[INFO]: Building hostpython2 for armeabi-v7a
[INFO]: -> directory context /home/kivy/Repos/Apps/kivy-speedtest/.buildozer/android/platform/build/build/other_builds/hostpython2/desktop/hostpython2
[INFO]: hostpython already exists, skipping build
[INFO]: <- directory context /home/kivy/Repos/Apps/kivy-speedtest/.buildozer/android/platform/python-for-android-master
[INFO]: Building sdl2_image for armeabi-v7a
[INFO]: Building sdl2_mixer for armeabi-v7a
[INFO]: Building sdl2_ttf for armeabi-v7a
[INFO]: Building sqlite3 for armeabi-v7a
[INFO]: sqlite3 said it is already built, skipping
[INFO]: Building python2 for armeabi-v7a
[INFO]: Copying hostpython binary to targetpython folder
[INFO]: -> running cp /home/kivy/Repos/Apps/kivy-...(and 226 more)
[INFO]: Building sdl2 for armeabi-v7a
[INFO]: -> directory context /home/kivy/Repos/Apps/kivy-speedtest/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python2/jni
[INFO]: -> running ndk-build V=1
working: [armeabi-v7a] Install : libm[INFO]: <- directory context /home/kivy/Repos/Apps/kivy-speedtest/.buildozer/android/platform/python-for-android-master
[INFO]: Building six for armeabi-v7a
[INFO]: six apparently isn't already in site-packages
[INFO]: Installing six into site-packages
[INFO]: -> directory context /home/kivy/Repos/Apps/kivy-speedtest/.buildozer/android/platform/build/build/other_builds/six-python2/armeabi-v7a/six
[INFO]: -> running python.host setup.py install -O2
Exception in thread background thread for pid 23419:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 754, in run
self.__target(*self.__args, **self.__kwargs)
File "/home/kivy/.local/lib/python2.7/site-packages/sh.py", line 2170, in background_thread
handle_exit_code(exit_code)
File "/home/kivy/.local/lib/python2.7/site-packages/sh.py", line 1929, in fn
return self.command.handle_command_exit_code(exit_code)
File "/home/kivy/.local/lib/python2.7/site-packages/sh.py", line 672, in handle_command_exit_code
raise exc
ErrorReturnCode_1:
RAN: /home/kivy/Repos/Apps/kivy-speedtest/.buildozer/android/platform/build/build/python-installs/camiweb.com/bin/python.host setup.py install -O2
STDOUT:
Could not find platform independent libraries <prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
ImportError: No module named site
STDERR:
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/home/kivy/Repos/Apps/kivy-speedtest/.buildozer/android/platform/python-for-android-master/pythonforandroid/toolchain.py", line 909, in <module>
main()
File "/home/kivy/Repos/Apps/kivy-speedtest/.buildozer/android/platform/python-for-android-master/pythonforandroid/toolchain.py", line 906, in main
ToolchainCL()
File "/home/kivy/Repos/Apps/kivy-speedtest/.buildozer/android/platform/python-for-android-master/pythonforandroid/toolchain.py", line 512, in __init__
getattr(self, args.subparser_name.replace('-', '_'))(args)
File "/home/kivy/Repos/Apps/kivy-speedtest/.buildozer/android/platform/python-for-android-master/pythonforandroid/toolchain.py", line 147, in wrapper_func
build_dist_from_args(ctx, dist, args)
File "/home/kivy/Repos/Apps/kivy-speedtest/.buildozer/android/platform/python-for-android-master/pythonforandroid/toolchain.py", line 190, in build_dist_from_args
build_recipes(build_order, python_modules, ctx)
File "pythonforandroid/build.py", line 572, in build_recipes
File "pythonforandroid/recipe.py", line 806, in build_arch
File "pythonforandroid/recipe.py", line 846, in install_python_package
File "pythonforandroid/logger.py", line 175, in shprint
File "/home/kivy/.local/lib/python2.7/site-packages/sh.py", line 720, in next
self.wait()
File "/home/kivy/.local/lib/python2.7/site-packages/sh.py", line 651, in wait
self.handle_command_exit_code(exit_code)
File "/home/kivy/.local/lib/python2.7/site-packages/sh.py", line 672, in handle_command_exit_code
raise exc
sh.ErrorReturnCode_1:
RAN: /home/kivy/Repos/Apps/kivy-speedtest/.buildozer/android/platform/build/build/python-installs/camiweb.com/bin/python.host setup.py install -O2
STDOUT:
Could not find platform independent libraries <prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
ImportError: No module named site
STDERR:
# Command failed: /usr/bin/python -m pythonforandroid.toolchain create --dist_name=camiweb.com --bootstrap=sdl2 --requirements=python2,sqlite3,kivy==1.10.0 --arch armeabi-v7a --copy-libs --color=always --storage-dir=/home/kivy/Repos/Apps/kivy-speedtest/.buildozer/android/platform/build
#
# 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
kivy@kivy-complete:~/Repos/Apps/kivy-speedtest$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment