Unable to get buildozer to work on both linux Ubuntu 18.04 and Mac OS

226 views
Skip to first unread message

br...@brianarbuckle.com

unread,
Apr 1, 2019, 11:27:49 AM4/1/19
to Kivy users support
On the Ubuntu 18.04 build I get the following after running buildozer android debug

Command failed: chmod ug+x /home/barbuckle/.buildozer/android/platform/android-sdk-20/tools/android

There is no "android" inside of ../android-sdk-20/tools/

not sure if I should run: tools/android update sdk --no-ui, as I followed the install to a T from https://buildozer.readthedocs.io/en/latest/installation.html


I have a different fail on the mac os build:

 Command failed: /Users/brianarbuckle/.buildozer/android/platform/android-sdk-20/tools/android list sdk -u -e
The is followed by a JAVA window opening saying the JAVA needs to be installed, though it is. I suspect a larger can of worms, which is why I moved to the Ubuntu server, on Linode.

Thanks!



Robert Flatt

unread,
Apr 2, 2019, 4:57:51 PM4/2/19
to Kivy users support
Following the instructions is important, but know that they are mostly woefully obsolete, so some flexibility rather than to a T !

1) If you have a problem it is best to post the whole log file, there is probably something further up that will give a hint.

2) I notice you are using SDK 20, Google recommends using the latest, that is SDK 28

3) You should also use NDK r17c which works with SDK 28, p4a, and so on....

br...@brianarbuckle.com

unread,
Apr 2, 2019, 8:28:43 PM4/2/19
to Kivy users support
Hi Robert,

Here is the log:

small_script$ 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.19.0.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-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 "/usr/bin/python3 -m pip install -q --user 'appdirs' 'colorama>=0.3.3' 'jinja2' 'six'"

# Cwd None

# Apache ANT found at /home/barbuckle/.buildozer/android/platform/apache-ant-1.9.4

# Android SDK found at /home/barbuckle/.buildozer/android/platform/android-sdk-20

# Android NDK found at /home/barbuckle/.buildozer/android/platform/android-ndk-r9c

# Run 'chmod ug+x /home/barbuckle/.buildozer/android/platform/android-sdk-20/tools/android'

# Cwd None

chmod: cannot access '/home/barbuckle/.buildozer/android/platform/android-sdk-20/tools/android': No such file or directory

# Command failed: chmod ug+x /home/barbuckle/.buildozer/android/platform/android-sdk-20/tools/android

# 

# 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








br...@brianarbuckle.com

unread,
Apr 2, 2019, 8:30:30 PM4/2/19
to Kivy users support
Also, I tried the recipe you made from here: https://groups.google.com/forum/#!topic/kivy-users/Lf4zlYmLVPo and get the following error log still workign through this one though:

[INFO]:    Reading .p4a configuration
[WARNING]: --ndk-version is deprecated and no longer necessary, the value you passed is ignored
[INFO]:    Will compile for the following archs: armeabi-v7a
[INFO]:    Getting Android API version from user argument: 28
[INFO]:    Available Android APIs are (28)
[INFO]:    Requested API target 28 is available, continuing.
[INFO]:    Getting NDK dir from from user argument
[INFO]:    Found NDK revision 17.2.4988734
[INFO]:    Getting NDK API version (i.e. minimum supported API) from user argument
[INFO]:    Found virtualenv at /usr/bin/virtualenv
[INFO]:    ccache is missing, the build will not be optimized in the future.
[INFO]:    Found the following toolchain versions: ['4.9']
[INFO]:    Picking the latest gcc toolchain, here 4.9
[WARNING]: Missing executable: pkg-config is not installed
[INFO]:    Of the existing distributions, the following meet the given requirements:
[INFO]:    small_script: min API 21, includes recipes (hostpython3, libffi, openssl, sdl2_image, sdl2_mixer, sdl2_ttf, sqlite3, python3, sdl2, six, pyjnius, android, kivy), built for archs (armeabi-v7a)
[INFO]:    small_script has compatible recipes, using this one
[INFO]:    Of the existing distributions, the following meet the given requirements:
[INFO]:    small_script: min API 21, includes recipes (hostpython3, libffi, openssl, sdl2_image, sdl2_mixer, sdl2_ttf, sqlite3, python3, sdl2, six, pyjnius, android, kivy), built for archs (armeabi-v7a)
[INFO]:    small_script has compatible recipes, using this one
[INFO]:    -> directory context /root/.local/share/python-for-android/dists/small_script
WARNING: Received a --sdk argument, but this argument is deprecated and does nothing.
No compiled python is present to zip, skipping.
Listing '/tmp/p4a-extra-env-b6ns3vxe'...
Listing '/home/small_script'...
Listing '/home/small_script/.git'...
Listing '/home/small_script/.git/branches'...
Listing '/home/small_script/.git/hooks'...
Listing '/home/small_script/.git/info'...
Listing '/home/small_script/.git/logs'...
Listing '/home/small_script/.git/logs/refs'...
Listing '/home/small_script/.git/logs/refs/heads'...
Listing '/home/small_script/.git/logs/refs/remotes'...
Listing '/home/small_script/.git/logs/refs/remotes/origin'...
Listing '/home/small_script/.git/objects'...
Listing '/home/small_script/.git/objects/20'...
Listing '/home/small_script/.git/objects/43'...
Listing '/home/small_script/.git/objects/49'...
Listing '/home/small_script/.git/objects/4a'...
Listing '/home/small_script/.git/objects/53'...
Listing '/home/small_script/.git/objects/58'...
Listing '/home/small_script/.git/objects/70'...
Listing '/home/small_script/.git/objects/73'...
Listing '/home/small_script/.git/objects/77'...
Listing '/home/small_script/.git/objects/7e'...
Listing '/home/small_script/.git/objects/85'...
Listing '/home/small_script/.git/objects/b5'...
Listing '/home/small_script/.git/objects/dc'...
Listing '/home/small_script/.git/objects/ec'...
Listing '/home/small_script/.git/objects/info'...
Listing '/home/small_script/.git/objects/pack'...
Listing '/home/small_script/.git/refs'...
Listing '/home/small_script/.git/refs/heads'...
Listing '/home/small_script/.git/refs/remotes'...
Listing '/home/small_script/.git/refs/remotes/origin'...
Listing '/home/small_script/.git/refs/tags'...
Compiling '/home/small_script/main.py'...
Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle'...
Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle'...
Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/modules'...
Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages'...
Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/android'...
Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/jnius'...
Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/jnius/src'...
Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/jnius/src/org'...
Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/jnius/src/org/jnius'...
Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/kivy'...
Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/kivy/core'...
Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/kivy/core/audio'...
Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/kivy/core/camera'...
Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/kivy/core/clipboard'...
Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/kivy/core/gl'...
Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/kivy/core/image'...
Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/kivy/core/spelling'...
Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/kivy/core/text'...
Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/kivy/core/video'...
Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/kivy/core/window'...
Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/kivy/data'...
Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/kivy/data/fonts'...
Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/kivy/data/glsl'...
Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/kivy/data/images'...
Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/kivy/data/keyboards'...
Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/kivy/data/logo'...
Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/kivy/deps'...
Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/kivy/effects'...
Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/kivy/extras'...
Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/kivy/garden'...
Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/kivy/graphics'...
Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/kivy/graphics/cgl_backend'...
Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/kivy/include'...
Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/kivy/input'...
Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/kivy/input/postproc'...
Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/kivy/input/providers'...
Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/kivy/lang'...
Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/kivy/lib'...
Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/kivy/lib/gstplayer'...
Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/kivy/lib/vidcore_lite'...
Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/kivy/modules'...
Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/kivy/network'...
Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/kivy/storage'...
Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/kivy/tools'...
Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/kivy/tools/gles_compat'...
Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/kivy/tools/highlight'...
Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/kivy/tools/packaging'...
Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/kivy/tools/packaging/pyinstaller_hooks'...
Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/kivy/tools/pep8checker'...
Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/kivy/tools/theming'...
Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/kivy/tools/theming/defaulttheme'...
Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/kivy/uix'...
Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/kivy/uix/behaviors'...
Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/kivy/uix/recycleview'...
Traceback (most recent call last):
  File "/usr/local/bin/p4a", line 11, in <module>
    load_entry_point('python-for-android==0.7.1', 'console_scripts', 'p4a')()
  File "/usr/local/lib/python3.6/dist-packages/pythonforandroid/toolchain.py", line 1075, in main
    ToolchainCL()
  File "/usr/local/lib/python3.6/dist-packages/pythonforandroid/toolchain.py", line 577, in __init__
    getattr(self, args.subparser_name.replace('-', '_'))(args)
  File "/usr/local/lib/python3.6/dist-packages/pythonforandroid/toolchain.py", line 152, in wrapper_func
    func(self, args)
  File "/usr/local/lib/python3.6/dist-packages/pythonforandroid/toolchain.py", line 839, in apk
    build_args = build.parse_args(args.unknown_args)
  File "/root/.local/share/python-for-android/dists/small_script/build.py", line 789, in parse_args
    make_package(args)
  File "/root/.local/share/python-for-android/dists/small_script/build.py", line 372, in make_package
    version_code += int(i)
ValueError: invalid literal for int() with base 10: '<0'
root@localhost:/home/small_script# [INFO]:    Reading .p4a configuration
dl2_mixer, sdl2_ttf, sqlite3, python3, sdl2, six, pyjnius, android, kivy), built for archs (armeabi-v7a)
[INFO]:    small_script has compatible recipes, using this one
[INFO]:    Of the existing distributions, the following meet the given requirements:
[INFO]:    small_script: min API 21, includes recipes (hostpython3, libffi, openssl, sdl2_image, sdl2_mixer, sdl2_ttf, sqlite3, python3, sdl2, six, pyjnius, android, kivy), built for archs (armeabi-v7a)
[INFO]:    small_script has compatible recipes, using this one
[INFO]:    -> directory context /root/.local/share/python-for-android/dists/small_script
WARNING: Received a --sdk argument, but this argument is deprecated and does nothing.
No compiled python is present to zip, skipping.
Listing '/tmp/p4a-extra-env-b6ns3vxe'...
Listing '/home/small_script'...
Listing '/home/small_script/.git'...
Listing '/home/small_script/.git/branches'...
Listing '/home/small_script/.git/hooks'...
Listing '/home/small_script/.git/info'...
Listing '/home/small_script/.git/logs'...
Listing '/home/small_script/.git/logs/refs'...
Listing '/home/small_script/.git/logs/refs/heads'...
Listing '/home/small_script/.git/logs/refs/remotes'...
Listing '/home/small_script/.git/logs/refs/remotes/origin'...
Listing '/home/small_script/.git/objects'...
Listing '/home/small_script/.git/objects/20'...
Listing '/home/small_script/.git/objects/43'...
Listing '/home/small_script/.git/objects/49'...
Listing '/home/small_script/.git/objects/4a'...
Listing '/home/small_script/.git/objects/53'...
Listing '/home/small_script/.git/objects/58'...
Listing '/home/small_script/.git/objects/70'...
Listing '/home/small_script/.git/objects/73'...
Listing '/home/small_script/.git/objects/77'...
Listing '/home/small_script/.git/objects/7e'...
Listing '/home/small_script/.git/objects/85'...
Listing '/home/small_script/.git/objects/b5'...
Listing '/home/small_script/.git/objects/dc'...
Listing '/home/small_script/.git/objects/ec'...
Listing '/home/small_script/.git/objects/info'...
Listing '/home/small_script/.git/o[INFO]:: command not found
root@localhost:/home/small_script# [WARNING]: --ndk-version is deprecated and no longer necessary, the value you passed is ignored
[WARNING]:: command not found
root@localhost:/home/small_script# [INFO]:    Will compile for the following archs: armeabi-v7a
bjects/pack'...
Listing '/home/small_script/.git/refs'...
Listing '/home/small_script/.git/refs/heads'...
Listing '/home/small_script/.git/refs/remotes'...
Listing '/home/small_script/.git/refs/remotes/origin'...
Listing '/home/small_script/.git/refs/tags'...
Compiling '/home/small_script/main.py'...
Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle'...
Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle'...
Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/modules'...
Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages'...
Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/android'...
Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/jnius'...
Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/jnius/src'...
Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/jnius/src/org'...
Listing '/root/.local[INFO]:: command not found
root@localhost:/home/small_script# [INFO]:    Getting Android API version from user argument: 28
[INFO]:: command not found
root@localhost:/home/small_script# [INFO]:    Available Android APIs are (28)
-bash: syntax error near unexpected token `('
root@localhost:/home/small_script# [INFO]:    Requested API target 28 is available, continuing.
[INFO]:: command not found
root@localhost:/home/small_script# [INFO]:    Getting NDK dir from from user argument
[INFO]:: command not found
root@localhost:/home/small_script# [INFO]:    Found NDK revision 17.2.4988734
[INFO]:: command not found
root@localhost:/home/small_script# [INFO]:    Getting NDK API version (i.e. minimum supported API) from user argument
-bash: syntax error near unexpected token `('
root@localhost:/home/small_script# [INFO]:    Found virtualenv at /usr/bin/virtualenv
[INFO]:: command not found
root@localhost:/home/small_script# [INFO]:    ccache is missing, the build will not be optimized in the future.
[INFO]:: command not found
root@localhost:/home/small_script# [INFO]:    Found the following toolchain versions: ['4.9']
[INFO]:: command not found
root@localhost:/home/small_script# [INFO]:    Picking the latest gcc toolchain, here 4.9
[INFO]:: command not found
root@localhost:/home/small_script# [WARNING]: Missing executable: pkg-config is not installed
[WARNING]:: command not found
root@localhost:/home/small_script# [INFO]:    Of the existing distributions, the following meet the given requirements:
[INFO]:: command not found
root@localhost:/home/small_script# [INFO]:    small_script: min API 21, includes recipes (hostpython3, libffi, openssl, sdl2_image, sdl2_mixer, sdl2_ttf, sqlite3, python3, sdl2, six, pyjnius, android, kivy), built for archs (armeabi-v7a)
-bash: syntax error near unexpected token `('
root@localhost:/home/small_script# [INFO]:    small_script has compatible recipes, using this one
[INFO]:: command not found
root@localhost:/home/small_script# [INFO]:    Of the existing distributions, the following meet the given requirements:
[INFO]:: command not found
root@localhost:/home/small_script# [INFO]:    small_script: min API 21, includes recipes (hostpython3, libffi, openssl, sdl2_image, sdl2_mixer, sdl2_ttf, sqlite3, python3, sdl2, six, pyjnius, android, kivy), built for archs (armeabi-v7a)
-bash: syntax error near unexpected token `('
root@localhost:/home/small_script# [INFO]:    small_script has compatible recipes, using this one
[INFO]:: command not found
root@localhost:/home/small_script# [INFO]:    -> directory context /root/.local/share/python-for-android/dists/small_script
[INFO]:: command not found
root@localhost:/home/small_script# WARNING: Received a --sdk argument, but this argument is deprecated and does nothing.
WARNING:: command not found
root@localhost:/home/small_script# No compiled python is present to zip, skipping.
No: command not found
root@localhost:/home/small_script# Listing '/tmp/p4a-extra-env-b6ns3vxe'...
Listing: command not found
root@localhost:/home/small_script# Listing '/home/small_script'...
Listing: command not found
root@localhost:/home/small_script# Listing '/home/small_script/.git'...
Listing: command not found
root@localhost:/home/small_script# Listing '/home/small_script/.git/branches'...
Listing: command not found
root@localhost:/home/small_script# Listing '/home/small_script/.git/hooks'...
Listing: command not found
root@localhost:/home/small_script# Listing '/home/small_script/.git/info'...
Listing: command not found
root@localhost:/home/small_script# Listing '/home/small_script/.git/logs'...
Listing: command not found
root@localhost:/home/small_script# Listing '/home/small_script/.git/logs/refs'...
Listing: command not found
root@localhost:/home/small_script# Listing '/home/small_script/.git/logs/refs/heads'...
Listing: command not found
root@localhost:/home/small_script# Listing '/home/small_script/.git/logs/refs/remotes'...
Listing: command not found
root@localhost:/home/small_script# Listing '/home/small_script/.git/logs/refs/remotes/origin'...
Listing: command not found
root@localhost:/home/small_script# Listing '/home/small_script/.git/objects'...
Listing: command not found
root@localhost:/home/small_script# Listing '/home/small_script/.git/objects/20'...
Listing: command not found
root@localhost:/home/small_script# Listing '/home/small_script/.git/objects/43'...
Listing: command not found
root@localhost:/home/small_script# Listing '/home/small_script/.git/objects/49'...
Listing: command not found
root@localhost:/home/small_script# Listing '/home/small_script/.git/objects/4a'...
Listing: command not found
root@localhost:/home/small_script# Listing '/home/small_script/.git/objects/53'...
Listing: command not found
root@localhost:/home/small_script# Listing '/home/small_script/.git/objects/58'...
Listing: command not found
root@localhost:/home/small_script# Listing '/home/small_script/.git/objects/70'...
Listing: command not found
root@localhost:/home/small_script# Listing '/home/small_script/.git/objects/73'...
Listing: command not found
root@localhost:/home/small_script# Listing '/home/small_script/.git/objects/77'...
Listing: command not found
root@localhost:/home/small_script# Listing '/home/small_script/.git/objects/7e'...
Listing: command not found
root@localhost:/home/small_script# Listing '/home/small_script/.git/objects/85'...
Listing: command not found
root@localhost:/home/small_script# Listing '/home/small_script/.git/objects/b5'...
Listing: command not found
root@localhost:/home/small_script# Listing '/home/small_script/.git/objects/dc'...
Listing: command not found
root@localhost:/home/small_script# Listing '/home/small_script/.git/objects/ec'...
Listing: command not found
root@localhost:/home/small_script# Listing '/home/small_script/.git/objects/info'...
Listing: command not found
root@localhost:/home/small_script# Listing '/home/small_script/.git/objects/pack'...
Listing: command not found
root@localhost:/home/small_script# Listing '/home/small_script/.git/refs'...
Listing: command not found
root@localhost:/home/small_script# Listing '/home/small_script/.git/refs/heads'...
Listing: command not found
root@localhost:/home/small_script# Listing '/home/small_script/.git/refs/remotes'...
Listing: command not found
root@localhost:/home/small_script# Listing '/home/small_script/.git/refs/remotes/origin'...
Listing: command not found
root@localhost:/home/small_script# Listing '/home/small_script/.git/refs/tags'...
Listing: command not found
root@localhost:/home/small_script# Compiling '/home/small_script/main.py'...
Compiling: command not found
root@localhost:/home/small_script# Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle'...
Listing: command not found
root@localhost:/home/small_script# Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle'...
Listing: command not found
root@localhost:/home/small_script# Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/modules'...
Listing: command not found
root@localhost:/home/small_script# Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages'...
Listing: command not found
root@localhost:/home/small_script# Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/android'...
Listing: command not found
root@localhost:/home/small_script# Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/jnius'...
Listing: command not found
root@localhost:/home/small_script# Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/jnius/src'...
Listing: command not found
root@localhost:/home/small_script# Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/jnius/src/org'...
Listing: command not found
root@localhost:/home/small_script# Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/jnius/src/org/jnius'...
Listing: command not found
root@localhost:/home/small_script# Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/kivy'...
Listing: command not found
root@localhost:/home/small_script# Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/kivy/core'...
Listing: command not found
root@localhost:/home/small_script# Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/kivy/core/audio'...
Listing: command not found
root@localhost:/home/small_script# Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/kivy/core/camera'...
Listing: command not found
root@localhost:/home/small_script# Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/kivy/core/clipboard'...
Listing: command not found
root@localhost:/home/small_script# Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/kivy/core/gl'...
Listing: command not found
root@localhost:/home/small_script# Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/kivy/core/image'...
Listing: command not found
root@localhost:/home/small_script# Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/kivy/core/spelling'...
Listing: command not found
root@localhost:/home/small_script# Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/kivy/core/text'...
Listing: command not found
root@localhost:/home/small_script# Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/kivy/core/video'...
Listing: command not found
root@localhost:/home/small_script# Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/kivy/core/window'...
Listing: command not found
root@localhost:/home/small_script# Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/kivy/data'...
Listing: command not found
root@localhost:/home/small_script# Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/kivy/data/fonts'...
Listing: command not found
root@localhost:/home/small_script# Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/kivy/data/glsl'...
Listing: command not found
root@localhost:/home/small_script# Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/kivy/data/images'...
Listing: command not found
root@localhost:/home/small_script# Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/kivy/data/keyboards'...
Listing: command not found
root@localhost:/home/small_script# Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/kivy/data/logo'...
Listing: command not found
root@localhost:/home/small_script# Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/kivy/deps'...
Listing: command not found
root@localhost:/home/small_script# Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/kivy/effects'...
Listing: command not found
root@localhost:/home/small_script# Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/kivy/extras'...
Listing: command not found
root@localhost:/home/small_script# Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/kivy/garden'...
Listing: command not found
root@localhost:/home/small_script# Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/kivy/graphics'...
Listing: command not found
root@localhost:/home/small_script# Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/kivy/graphics/cgl_backend'...
Listing: command not found
root@localhost:/home/small_script# Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/kivy/include'...
Listing: command not found
root@localhost:/home/small_script# Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/kivy/input'...
Listing: command not found
root@localhost:/home/small_script# Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/kivy/input/postproc'...
Listing: command not found
root@localhost:/home/small_script# Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/kivy/input/providers'...
Listing: command not found
root@localhost:/home/small_script# Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/kivy/lang'...
Listing: command not found
root@localhost:/home/small_script# Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/kivy/lib'...
Listing: command not found
root@localhost:/home/small_script# Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/kivy/lib/gstplayer'...
Listing: command not found
root@localhost:/home/small_script# Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/kivy/lib/vidcore_lite'...
Listing: command not found
root@localhost:/home/small_script# Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/kivy/modules'...
Listing: command not found
root@localhost:/home/small_script# Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/kivy/network'...
Listing: command not found
root@localhost:/home/small_script# Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/kivy/storage'...
Listing: command not found
root@localhost:/home/small_script# Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/kivy/tools'...
Listing: command not found
root@localhost:/home/small_script# Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/kivy/tools/gles_compat'...
Listing: command not found
root@localhost:/home/small_script# Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/kivy/tools/highlight'...
Listing: command not found
root@localhost:/home/small_script# Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/kivy/tools/packaging'...
Listing: command not found
root@localhost:/home/small_script# Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/kivy/tools/packaging/pyinstaller_hooks'...
Listing: command not found
root@localhost:/home/small_script# Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/kivy/tools/pep8checker'...
Listing: command not found
root@localhost:/home/small_script# Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/kivy/tools/theming'...
Listing: command not found
root@localhost:/home/small_script# Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/kivy/tools/theming/defaulttheme'...
Listing: command not found
root@localhost:/home/small_script# Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/kivy/uix'...
Listing: command not found
root@localhost:/home/small_script# Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/kivy/uix/behaviors'...
Listing: command not found
root@localhost:/home/small_script# Listing '/root/.local/share/python-for-android/dists/small_script/_python_bundle/_python_bundle/site-packages/kivy/uix/recycleview'...
Listing: command not found
root@localhost:/home/small_script# Traceback (most recent call last):
-bash: syntax error near unexpected token `most'
root@localhost:/home/small_script#   File "/usr/local/bin/p4a", line 11, in <module>
-bash: syntax error near unexpected token `newline'
root@localhost:/home/small_script#     load_entry_point('python-for-android==0.7.1', 'console_scripts', 'p4a')()-bash: syntax error near unexpected token `'python-for-android==0.7.1','
root@localhost:/home/small_script#   File "/usr/local/lib/python3.6/dist-packages/pythonforandroid/toolchain.py", line 1075, in main

Command 'File' not found, did you mean:

  command 'zile' from deb zile
  command 'file' from deb file
  command 'vile' from deb vile
  command 'kile' from deb kile

Try: apt install <deb name>

root@localhost:/home/small_script#     ToolchainCL()
>   File "/usr/local/lib/python3.6/dist-packages/pythonforandroid/toolchain.py", line 577, in __init__
-bash: syntax error near unexpected token `File'
root@localhost:/home/small_script#     getattr(self, args.subparser_name.replace('-', '_'))(args)
-bash: syntax error near unexpected token `self,'
root@localhost:/home/small_script#   File "/usr/local/lib/python3.6/dist-packages/pythonforandroid/toolchain.py", line 152, in wrapper_func

Command 'File' not found, did you mean:

  command 'zile' from deb zile
  command 'kile' from deb kile
  command 'vile' from deb vile
  command 'file' from deb file

Try: apt install <deb name>

root@localhost:/home/small_script#     func(self, args)
-bash: syntax error near unexpected token `self,'
root@localhost:/home/small_script#   File "/usr/local/lib/python3.6/dist-packages/pythonforandroid/toolchain.py", line 839, in apk

Command 'File' not found, did you mean:

  command 'file' from deb file
  command 'kile' from deb kile
  command 'zile' from deb zile
  command 'vile' from deb vile

Try: apt install <deb name>

root@localhost:/home/small_script#     build_args = build.parse_args(args.unknown_args)
-bash: syntax error near unexpected token `('
root@localhost:/home/small_script#   File "/root/.local/share/python-for-android/dists/small_script/build.py", line 789, in parse_args

Command 'File' not found, did you mean:

  command 'vile' from deb vile
  command 'kile' from deb kile
  command 'file' from deb file
  command 'zile' from deb zile

Try: apt install <deb name>

root@localhost:/home/small_script#     make_package(args)
-bash: syntax error near unexpected token `args'
root@localhost:/home/small_script#   File "/root/.local/share/python-for-android/dists/small_script/build.py", line 372, in make_package

Command 'File' not found, did you mean:

  command 'zile' from deb zile
  command 'vile' from deb vile
  command 'kile' from deb kile
  command 'file' from deb file

Try: apt install <deb name>

root@localhost:/home/small_script#     version_code += int(i)
-bash: syntax error near unexpected token `('
root@localhost:/home/small_script# ValueError: invalid literal for int() with base 10: '<0'
-bash: syntax error near unexpected token `('
root@localhost:/home/small_script# root@localhost:/home/small_script# 
-bash: root@localhost:/home/small_script#: No such file or directory
root@localhost:/home/small_script# 

 

Robert Flatt

unread,
Apr 2, 2019, 9:36:23 PM4/2/19
to Kivy users support
The buildozer log still uses the ancient SDK and NDK .....

ValueError: invalid literal for int() with base 10: '<0'

Is there a '<' in the .p4a ?

Robert Flatt

unread,
Apr 2, 2019, 9:51:09 PM4/2/19
to Kivy users support
This may also be an issue:

[WARNING]: Missing executable: pkg-config is not installed

The trick is to try and figure out what each line of the log file might mean,
pay particular attention to : error, warning and traceback.

The rest is just a learning curve.

br...@brianarbuckle.com

unread,
Apr 2, 2019, 11:20:55 PM4/2/19
to Kivy users support
Well that is embarrassing.  Good news is that it worked on the simple script! Bad new, it is hanging up on my main project.   I will dig deeper before I post. (it is something about ctype, though I can't pip install,  because of the wrong version) 
Thank you!
Reply all
Reply to author
Forward
0 new messages