Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Runs empty directory instead of binary (android_new) #357

Closed
redfast00 opened this issue May 18, 2016 · 1 comment
Closed

Runs empty directory instead of binary (android_new) #357

redfast00 opened this issue May 18, 2016 · 1 comment

Comments

@redfast00
Copy link

redfast00 commented May 18, 2016

I ran this just after I distclean'd

dev@debian-dev:~/Documents/thesis$ buildozer android_new debug
# Check configuration tokens
# Ensure build layout
# Create directory /home/dev/.buildozer
# Create directory /home/dev/.buildozer/cache
# Create directory /home/dev/.buildozer/android/platform/android/platform
# Check configuration tokens
# Preparing build
# Check requirements for android
# Run 'dpkg --version'
# Cwd None
Debian `dpkg' package management program version 1.17.26 (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
# Android ANT is missing, downloading
# Downloading http://archive.apache.org/dist/ant/binaries/apache-ant-1.9.4-bin.tar.gz
# Run 'tar xzf apache-ant-1.9.4-bin.tar.gz'
# Cwd /home/dev/.buildozer/android/platform
# Apache ANT installation done.
# Android SDK is missing, downloading
# Downloading http://dl.google.com/android/android-sdk_r20-linux.tgz
# Unpacking Android SDK
# Run 'tar xzf android-sdk_r20-linux.tgz'
# Cwd /home/dev/.buildozer/android/platform
# Rename /home/dev/.buildozer/android/platform/android-sdk-linux to /home/dev/.buildozer/android/platform/android-sdk-20
# Android SDK installation done.
# Android NDK is missing, downloading
# Downloading http://dl.google.com/android/ndk/android-ndk-r9c-linux-x86_64.tar.bz2
# Unpacking Android NDK
# Run 'tar xjf android-ndk-r9c-linux-x86_64.tar.bz2'
# Cwd /home/dev/.buildozer/android/platform
# Rename /home/dev/.buildozer/android/platform/android-ndk-r9c to /home/dev/.buildozer/android/platform/android-ndk-r9c
# Android NDK installation done.
# Check application requirements
# Check garden requirements
# Compile platform
# Using custom source dirs:
    P4A_plyer_DIR = /home/dev/opt/plyer
    P4A_kivy_DIR = /home/dev/opt/kivy
# Run 'python -m pythonforandroid.toolchain --color=always --storage-dir=/home/dev/Documents/thesis/.buildozer/android/platform/build create --dist_name=thesis --bootstrap=sdl2 --requirements=kivy,plyer --arch armeabi-v7a --copy-libs'
# Cwd /home/dev/Documents/thesis/.buildozer/android/platform/python-for-android-master
[INFO]:    This python-for-android revamp is an experimental alpha release!
[INFO]:    It should work (mostly), but you may experience missing features or bugs.
[INFO]:    Will compile for the following archs: armeabi-v7a
[INFO]:    Found Android API target in $ANDROIDAPI
[INFO]:    Available Android APIs are ()
[WARNING]: Requested API target 19 is not available, install it with the SDK android tool.
[WARNING]: Exiting.
# Command failed: python -m pythonforandroid.toolchain --color=always --storage-dir=/home/dev/Documents/thesis/.buildozer/android/platform/build create --dist_name=thesis --bootstrap=sdl2 --requirements=kivy,plyer --arch armeabi-v7a --copy-libs
# 
# 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

So I ran the ~/.buildozer/android/platform/android-sdk-20/tools/android and installed everything (android sdk tools update from 20 to 22.6.2). This gave:

dev@debian-dev:~/Documents/thesis$ buildozer android_new 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.26 (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/dev/.buildozer/android/platform/apache-ant-1.9.4
# Android SDK found at /home/dev/.buildozer/android/platform/android-sdk-20
# Android NDK found at /home/dev/.buildozer/android/platform/android-ndk-r9c
# Check application requirements
# Check garden requirements
# Compile platform
# Using custom source dirs:
    P4A_plyer_DIR = /home/dev/opt/plyer
    P4A_kivy_DIR = /home/dev/opt/kivy
# Run 'python -m pythonforandroid.toolchain --color=always --storage-dir=/home/dev/Documents/thesis/.buildozer/android/platform/build create --dist_name=thesis --bootstrap=sdl2 --requirements=kivy,plyer --arch armeabi-v7a --copy-libs'
# Cwd /home/dev/Documents/thesis/.buildozer/android/platform/python-for-android-master
[INFO]:    This python-for-android revamp is an experimental alpha release!
[INFO]:    It should work (mostly), but you may experience missing features or bugs.
[INFO]:    Will compile for the following archs: armeabi-v7a
[INFO]:    Found Android API target in $ANDROIDAPI
[INFO]:    Available Android APIs are ()
[WARNING]: Requested API target 19 is not available, install it with the SDK android tool.
[WARNING]: Exiting.
# Command failed: python -m pythonforandroid.toolchain --color=always --storage-dir=/home/dev/Documents/thesis/.buildozer/android/platform/build create --dist_name=thesis --bootstrap=sdl2 --requirements=kivy,plyer --arch armeabi-v7a --copy-libs
# 
# 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

I then installed sdk platform api 19. That gave:

# 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.26 (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/dev/.buildozer/android/platform/apache-ant-1.9.4
# Android SDK found at /home/dev/.buildozer/android/platform/android-sdk-20
# Android NDK found at /home/dev/.buildozer/android/platform/android-ndk-r9c
# Check application requirements
# Check garden requirements
# Compile platform
# Using custom source dirs:
    P4A_plyer_DIR = /home/dev/opt/plyer
    P4A_kivy_DIR = /home/dev/opt/kivy
# Run 'python -m pythonforandroid.toolchain --color=always --storage-dir=/home/dev/Documents/thesis/.buildozer/android/platform/build create --dist_name=thesis --bootstrap=sdl2 --requirements=kivy,plyer --arch armeabi-v7a --copy-libs'
# Cwd /home/dev/Documents/thesis/.buildozer/android/platform/python-for-android-master
[INFO]:    This python-for-android revamp is an experimental alpha release!
[INFO]:    It should work (mostly), but you may experience missing features or bugs.
[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 /home/dev/.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
[WARNING]: Missing executable: libtoolize is not installed
[INFO]:    Of the existing distributions, the following meet the given requirements:
[INFO]:         thesis: includes recipes (hostpython2, python2, sdl2_image, sdl2_mixer, sdl2_ttf, sdl2, six, pyjnius, kivy, plyer), built for archs (armeabi-v7a)
[INFO]:    thesis has compatible recipes, using this one
# Build the application #39
# Copy application source from /home/dev/Documents/thesis
# Create directory /home/dev/Documents/thesis/.buildozer/android/app
# Copy /home/dev/Documents/thesis/main.py
# Create directory /home/dev/Documents/thesis/.buildozer/android/app/data
# Copy /home/dev/Documents/thesis/data/imageAtlas-3.png
# Copy /home/dev/Documents/thesis/data/icon.png
# Copy /home/dev/Documents/thesis/data/imageAtlas-0.png
# Copy /home/dev/Documents/thesis/data/imageAtlas-2.png
# Copy /home/dev/Documents/thesis/data/imageAtlas.atlas
# Copy /home/dev/Documents/thesis/data/presplash.png
# Copy /home/dev/Documents/thesis/data/imageAtlas-1.png
# Create directory /home/dev/Documents/thesis/.buildozer/android/app/thesis
# Copy /home/dev/Documents/thesis/thesis/treasure.py
# Copy /home/dev/Documents/thesis/thesis/info.py
# Copy /home/dev/Documents/thesis/thesis/common.py
# Copy /home/dev/Documents/thesis/thesis/__init__.py
# Copy /home/dev/Documents/thesis/thesis/problemsolver.py
# Copy /home/dev/Documents/thesis/thesis/clovercalendar.py
# Copy /home/dev/Documents/thesis/thesis/clover.py
# Create directory /home/dev/Documents/thesis/.buildozer/android/app/thesis/calendar
# Copy /home/dev/Documents/thesis/thesis/calendar/calendar_ui.py
# Copy /home/dev/Documents/thesis/thesis/calendar/__init__.py
# Copy /home/dev/Documents/thesis/thesis/calendar/calendar_data.py
# Create directory /home/dev/Documents/thesis/.buildozer/android/app/templates
# Copy /home/dev/Documents/thesis/templates/problemsolver.kv
# Copy /home/dev/Documents/thesis/templates/clovercalendar.kv
# Copy /home/dev/Documents/thesis/templates/info.kv
# Copy /home/dev/Documents/thesis/templates/clover.kv
# Copy /home/dev/Documents/thesis/templates/common.kv
# Copy /home/dev/Documents/thesis/templates/treasure.kv
# Copy /home/dev/Documents/thesis/templates/mainMenu.kv
# Package the application
# Run "python -m pythonforandroid.toolchain --color=always --storage-dir=/home/dev/Documents/thesis/.buildozer/android/platform/build apk --bootstrap=sdl2 --dist_name thesis --name 'My Solution' --version 0.2 --package com.chickenkiller.survive.thesis --android_api 19 --minsdk 9 --private /home/dev/Documents/thesis/.buildozer/android/app --permission INTERNET --permission WRITE_EXTERNAL_STORAGE --permission READ_EXTERNAL_STORAGE --permission CAMERA --presplash /home/dev/Documents/thesis/./data/presplash.png --icon /home/dev/Documents/thesis/./data/icon.png --orientation portrait --copy-libs"
# Cwd /home/dev/Documents/thesis/.buildozer/android/platform/python-for-android-master
[INFO]:    This python-for-android revamp is an experimental alpha release!
[INFO]:    It should work (mostly), but you may experience missing features or bugs.
[INFO]:    Will compile for the following archs: armeabi
[INFO]:    Getting Android API version from user argument
[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 /home/dev/.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
[WARNING]: Missing executable: libtoolize is not installed
[INFO]:    Of the existing distributions, the following meet the given requirements:
[INFO]:         thesis: includes recipes (hostpython2, python2, sdl2_image, sdl2_mixer, sdl2_ttf, sdl2, six, pyjnius, kivy, plyer), built for archs (armeabi-v7a)
[INFO]:    thesis has compatible recipes, using this one
[INFO]:    Of the existing distributions, the following meet the given requirements:
[INFO]:         thesis: includes recipes (hostpython2, python2, sdl2_image, sdl2_mixer, sdl2_ttf, sdl2, six, pyjnius, kivy, plyer), built for archs (armeabi-v7a)
[INFO]:    thesis has compatible recipes, using this one
[INFO]:    -> directory context /home/dev/Documents/thesis/.buildozer/android/platform/build/dists/thesis
[INFO]:    -> running ant debug
           working: OSError: [Errno 13] Permission denied                              [INFO]:    STDOUT (last 20 lines of 23):                                                  
          File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/home/dev/Documents/thesis/.buildozer/android/platform/python-for-android-master/pythonforandroid/toolchain.py", line 755, in <module>
    main()
  File "/home/dev/Documents/thesis/.buildozer/android/platform/python-for-android-master/pythonforandroid/toolchain.py", line 752, in main
    ToolchainCL()
  File "/home/dev/Documents/thesis/.buildozer/android/platform/python-for-android-master/pythonforandroid/toolchain.py", line 341, in __init__
    getattr(self, args.command)(unknown)
  File "/home/dev/Documents/thesis/.buildozer/android/platform/python-for-android-master/pythonforandroid/toolchain.py", line 94, in wrapper_func
    func(self, args)
  File "/home/dev/Documents/thesis/.buildozer/android/platform/python-for-android-master/pythonforandroid/toolchain.py", line 588, in apk
    output = shprint(sh.ant, apk_args.build_mode, _tail=20, _critical=True, _env=env)
  File "pythonforandroid/logger.py", line 172, in shprint
  File "/usr/lib/python2.7/dist-packages/sh.py", line 769, in __call__
    return RunningCommand(cmd, call_args, stdin, stdout, stderr)
  File "/usr/lib/python2.7/dist-packages/sh.py", line 327, in __init__
    self.call_args, pipe=pipe)
  File "/usr/lib/python2.7/dist-packages/sh.py", line 893, in __init__
    os.execve(cmd[0], cmd, self.call_args["env"])
OSError: [Errno 13] Permission denied
[INFO]:    STDERR:

[INFO]:    COMMAND:
cd /home/dev/Documents/thesis/.buildozer/android/platform/build/dists/thesis && /home/dev/.buildozer/android/platform/android-sdk-20/tools/ant debug

[WARNING]: ERROR: /home/dev/.buildozer/android/platform/android-sdk-20/tools/ant failed!
# Command failed: python -m pythonforandroid.toolchain --color=always --storage-dir=/home/dev/Documents/thesis/.buildozer/android/platform/build apk --bootstrap=sdl2 --dist_name thesis --name 'My Solution' --version 0.2 --package com.chickenkiller.survive.thesis --android_api 19 --minsdk 9 --private /home/dev/Documents/thesis/.buildozer/android/app --permission INTERNET --permission WRITE_EXTERNAL_STORAGE --permission READ_EXTERNAL_STORAGE --permission CAMERA --presplash /home/dev/Documents/thesis/./data/presplash.png --icon /home/dev/Documents/thesis/./data/icon.png --orientation portrait --copy-libs
# 
# 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

I checked and /home/dev/.buildozer/android/platform/android-sdk-20/tools/ant is a directory containing build.xml NOTICE.txt uibuild.xml.

@redfast00
Copy link
Author

Nevermind, I had an old version of python-sh (1.09). The update to 1.11 fixed it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant