kivy / buildozer

Generic Python packager for Android and iOS
https://buildozer.readthedocs.io
MIT License
1.73k stars 498 forks source link

But then a lot more issues, deep in the weeds now. #858

Closed kcrossen closed 5 years ago

kcrossen commented 5 years ago

I never did get buildozer.spec to successfully build an OSX app. I wound up studying how the code worked and then did all the same operations by hand. It took a tiny fraction of the time I had already invested in tracing down bugs in the buildozer scripts. By hand worked.

I'll post my method at https://github.com/kcrossen/CloudWatch_Remote_Monitor/tree/master/Source_Code

Versions

As in many previously posted issues, no changes.

Description

// REPLACE ME: What are you trying to get done, what has happened, what went wrong, and what did you expect?

Code and Logs

kenneths-mbp:CW_Remote_APK Ken$ buildozer -v android release
# Check configuration tokens
# Ensure build layout
# Check configuration tokens
# Preparing build
# Check requirements for android
# Search for Git (git)
#  -> found at /usr/local/Cellar/git/2.21.0/bin/git
# Search for Cython (cython)
#  -> found at /Library/Frameworks/Python.framework/Versions/2.7/bin/cython
# Search for Java compiler (javac)
#  -> found at /System/Library/Frameworks/JavaVM.framework/Versions/A/Commands/javac
# Search for Java keytool (keytool)
#  -> found at /System/Library/Frameworks/JavaVM.framework/Versions/A/Commands/keytool
# Install platform
# Run '/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -m pip install -q --user \'appdirs\' \'colorama>=0.3.3\' \'jinja2\' \'six\' \'enum34; python_version<"3.4"\' \'sh>=1.10; sys_platform!="nt"\''
# Cwd None
# ENVIRONMENT:
#     NVM_CD_FLAGS = ''
#     TERM_PROGRAM_VERSION = '3.0.5'
#     LOGNAME = 'Ken'
#     NVM_NODEJS_ORG_MIRROR = 'https://nodejs.org/dist'
#     NVM_DIR = '/Users/Ken/.nvm'
#     PATH = '/Users/Ken/.buildozer/android/platform/apache-ant-1.9.4/bin:/Users/Ken/.nvm/versions/node/v11.10.1/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin'
#     HOME = '/Users/Ken'
#     NVM_IOJS_ORG_MIRROR = 'https://iojs.org/dist'
#     TERM_PROGRAM = 'iTerm.app'
#     LANG = 'en_US.UTF-8'
#     TERM = 'xterm-256color'
#     SHELL = '/bin/bash'
#     COLORFGBG = '0;15'
#     SHLVL = '1'
#     XPC_FLAGS = '0x0'
#     NVM_BIN = '/Users/Ken/.nvm/versions/node/v11.10.1/bin'
#     ITERM_SESSION_ID = 'w0t1p1:45F21B18-6782-4DC5-AF9F-B331DF1AEFF0'
#     _ = '/Library/Frameworks/Python.framework/Versions/2.7/bin/buildozer'
#     MANPATH = '/Users/Ken/.nvm/versions/node/v11.10.1/share/man:/Library/Frameworks/Python.framework/Versions/2.7/share/man:/usr/local/share/man:/usr/share/man:/Applications/Xcode.app/Contents/Developer/usr/share/man:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/share/man'
#     TERM_SESSION_ID = 'w0t1p1:45F21B18-6782-4DC5-AF9F-B331DF1AEFF0'
#     XPC_SERVICE_NAME = '0'
#     SSH_AUTH_SOCK = '/private/tmp/com.apple.launchd.ta9a1rajnZ/Listeners'
#     Apple_PubSub_Socket_Render = '/private/tmp/com.apple.launchd.35M1ZLE7nL/Render'
#     ITERM_PROFILE = 'Default'
#     TMPDIR = '/var/folders/c1/50q2b_7906z19dfgp_hym01m0000gn/T/'
#     OLDPWD = '/Users/Ken'
#     __CF_USER_TEXT_ENCODING = '0x1F5:0x0:0x0'
#     PWD = '/Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK'
#     USER = 'Ken'
You are using pip version 18.1, however version 19.0.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
# Apache ANT found at /Users/Ken/.buildozer/android/platform/apache-ant-1.9.4
# Android SDK found at /Users/Ken/.buildozer/android/platform/android-sdk
# Android NDK found at /Users/Ken/.buildozer/android/platform/android-ndk-r17c
# Check application requirements
# Check garden requirements
# Compile platform
# Run '/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -m pythonforandroid.toolchain create --dist_name=cwremote --bootstrap=sdl2 --requirements=python2,kivy,urllib3,botocore,boto3 --arch armeabi-v7a --copy-libs --color=always --storage-dir="/Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/build" --ndk-api=27'
# Cwd /Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android
# ENVIRONMENT:
#     NVM_CD_FLAGS = ''
#     TERM_PROGRAM_VERSION = '3.0.5'
#     LOGNAME = 'Ken'
#     NVM_NODEJS_ORG_MIRROR = 'https://nodejs.org/dist'
#     NVM_DIR = '/Users/Ken/.nvm'
#     PATH = '/Users/Ken/.buildozer/android/platform/apache-ant-1.9.4/bin:/Users/Ken/.nvm/versions/node/v11.10.1/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin'
#     HOME = '/Users/Ken'
#     NVM_IOJS_ORG_MIRROR = 'https://iojs.org/dist'
#     TERM_PROGRAM = 'iTerm.app'
#     LANG = 'en_US.UTF-8'
#     TERM = 'xterm-256color'
#     SHELL = '/bin/bash'
#     COLORFGBG = '0;15'
#     PACKAGES_PATH = '/Users/Ken/.buildozer/android/packages'
#     SHLVL = '1'
#     XPC_FLAGS = '0x0'
#     NVM_BIN = '/Users/Ken/.nvm/versions/node/v11.10.1/bin'
#     ITERM_SESSION_ID = 'w0t1p1:45F21B18-6782-4DC5-AF9F-B331DF1AEFF0'
#     _ = '/Library/Frameworks/Python.framework/Versions/2.7/bin/buildozer'
#     MANPATH = '/Users/Ken/.nvm/versions/node/v11.10.1/share/man:/Library/Frameworks/Python.framework/Versions/2.7/share/man:/usr/local/share/man:/usr/share/man:/Applications/Xcode.app/Contents/Developer/usr/share/man:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/share/man'
#     TERM_SESSION_ID = 'w0t1p1:45F21B18-6782-4DC5-AF9F-B331DF1AEFF0'
#     XPC_SERVICE_NAME = '0'
#     SSH_AUTH_SOCK = '/private/tmp/com.apple.launchd.ta9a1rajnZ/Listeners'
#     ANDROIDSDK = '/Users/Ken/.buildozer/android/platform/android-sdk'
#     Apple_PubSub_Socket_Render = '/private/tmp/com.apple.launchd.35M1ZLE7nL/Render'
#     ITERM_PROFILE = 'Default'
#     ANDROIDMINAPI = '27'
#     TMPDIR = '/var/folders/c1/50q2b_7906z19dfgp_hym01m0000gn/T/'
#     OLDPWD = '/Users/Ken'
#     ANDROIDNDK = '/Users/Ken/.buildozer/android/platform/android-ndk-r17c'
#     __CF_USER_TEXT_ENCODING = '0x1F5:0x0:0x0'
#     PWD = '/Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK'
#     ANDROIDAPI = '27'
#     USER = 'Ken'
[INFO]:    Will compile for the following archs: armeabi-v7a
[INFO]:    Found Android API target in $ANDROIDAPI: 27
[INFO]:    Available Android APIs are (27)
[INFO]:    Requested API target 27 is available, continuing.
[INFO]:    Found NDK dir in $ANDROIDNDK: /Users/Ken/.buildozer/android/platform/android-ndk-r17c
[INFO]:    Found NDK revision 17.2.4988734
[INFO]:    Getting NDK API version (i.e. minimum supported API) from user argument
[INFO]:    Found virtualenv at /Library/Frameworks/Python.framework/Versions/2.7/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
[WARNING]: Missing executable: autoconf is not installed
[WARNING]: Missing executable: automake is not installed
[WARNING]: Missing executable: libtoolize is not installed
[INFO]:    No existing dists meet the given requirements!
[INFO]:    No dist exists that meets your requirements, so one will be built.
/Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/sdl2/__init__.py:1: RuntimeWarning: Parent module 'pythonforandroid.recipes' not found while handling absolute import
  from pythonforandroid.recipe import BootstrapNDKRecipe
/Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/sdl2/__init__.py:2: RuntimeWarning: Parent module 'pythonforandroid.recipes' not found while handling absolute import
  from pythonforandroid.toolchain import current_directory, shprint
/Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/sdl2/__init__.py:3: RuntimeWarning: Parent module 'pythonforandroid.recipes' not found while handling absolute import
  import sh
/Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/kivy/__init__.py:1: RuntimeWarning: Parent module 'pythonforandroid.recipes' not found while handling absolute import
  from pythonforandroid.recipe import CythonRecipe
/Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/kivy/__init__.py:2: RuntimeWarning: Parent module 'pythonforandroid.recipes' not found while handling absolute import
  from pythonforandroid.toolchain import current_directory, shprint
/Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/kivy/__init__.py:3: RuntimeWarning: Parent module 'pythonforandroid.recipes' not found while handling absolute import
  from os.path import exists, join, basename
/Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/kivy/__init__.py:4: RuntimeWarning: Parent module 'pythonforandroid.recipes' not found while handling absolute import
  import sh
/Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/kivy/__init__.py:5: RuntimeWarning: Parent module 'pythonforandroid.recipes' not found while handling absolute import
  import glob
/Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/android/__init__.py:1: RuntimeWarning: Parent module 'pythonforandroid.recipes' not found while handling absolute import
  from __future__ import unicode_literals
/Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/android/__init__.py:2: RuntimeWarning: Parent module 'pythonforandroid.recipes' not found while handling absolute import
  from pythonforandroid.recipe import CythonRecipe, IncludedFilesBehaviour
/Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/android/__init__.py:3: RuntimeWarning: Parent module 'pythonforandroid.recipes' not found while handling absolute import
  from pythonforandroid.util import current_directory
/Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/android/__init__.py:4: RuntimeWarning: Parent module 'pythonforandroid.recipes' not found while handling absolute import
  from pythonforandroid.patching import will_build
/Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/android/__init__.py:5: RuntimeWarning: Parent module 'pythonforandroid.recipes' not found while handling absolute import
  from pythonforandroid import logger
/Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/android/__init__.py:7: RuntimeWarning: Parent module 'pythonforandroid.recipes' not found while handling absolute import
  from os.path import join
/Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/python2/__init__.py:1: RuntimeWarning: Parent module 'pythonforandroid.recipes' not found while handling absolute import
  from os.path import join, exists
/Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/python2/__init__.py:2: RuntimeWarning: Parent module 'pythonforandroid.recipes' not found while handling absolute import
  from pythonforandroid.recipe import Recipe
/Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/python2/__init__.py:3: RuntimeWarning: Parent module 'pythonforandroid.recipes' not found while handling absolute import
  from pythonforandroid.python import GuestPythonRecipe
/Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/python2/__init__.py:4: RuntimeWarning: Parent module 'pythonforandroid.recipes' not found while handling absolute import
  from pythonforandroid.logger import shprint
/Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/python2/__init__.py:5: RuntimeWarning: Parent module 'pythonforandroid.recipes' not found while handling absolute import
  import sh
/Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/sdl2_image/__init__.py:1: RuntimeWarning: Parent module 'pythonforandroid.recipes' not found while handling absolute import
  from pythonforandroid.recipe import BootstrapNDKRecipe
/Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/sdl2_mixer/__init__.py:1: RuntimeWarning: Parent module 'pythonforandroid.recipes' not found while handling absolute import
  from pythonforandroid.recipe import BootstrapNDKRecipe
/Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/sdl2_ttf/__init__.py:1: RuntimeWarning: Parent module 'pythonforandroid.recipes' not found while handling absolute import
  from pythonforandroid.recipe import BootstrapNDKRecipe
/Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/pyjnius/__init__.py:1: RuntimeWarning: Parent module 'pythonforandroid.recipes' not found while handling absolute import
  from pythonforandroid.recipe import CythonRecipe
/Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/pyjnius/__init__.py:2: RuntimeWarning: Parent module 'pythonforandroid.recipes' not found while handling absolute import
  from pythonforandroid.toolchain import shprint, current_directory, info
/Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/pyjnius/__init__.py:3: RuntimeWarning: Parent module 'pythonforandroid.recipes' not found while handling absolute import
  from pythonforandroid.patching import will_build
/Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/pyjnius/__init__.py:4: RuntimeWarning: Parent module 'pythonforandroid.recipes' not found while handling absolute import
  import sh
/Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/pyjnius/__init__.py:5: RuntimeWarning: Parent module 'pythonforandroid.recipes' not found while handling absolute import
  from os.path import join
/Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/hostpython2/__init__.py:1: RuntimeWarning: Parent module 'pythonforandroid.recipes' not found while handling absolute import
  from pythonforandroid.python import HostPythonRecipe
/Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/six/__init__.py:2: RuntimeWarning: Parent module 'pythonforandroid.recipes' not found while handling absolute import
  from pythonforandroid.recipe import PythonRecipe
/Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/python2legacy/__init__.py:1: RuntimeWarning: Parent module 'pythonforandroid.recipes' not found while handling absolute import
  from pythonforandroid.recipe import TargetPythonRecipe, Recipe
/Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/python2legacy/__init__.py:2: RuntimeWarning: Parent module 'pythonforandroid.recipes' not found while handling absolute import
  from pythonforandroid.toolchain import shprint, current_directory, info
/Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/python2legacy/__init__.py:3: RuntimeWarning: Parent module 'pythonforandroid.recipes' not found while handling absolute import
  from pythonforandroid.patching import (is_darwin, is_api_gt,
/Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/python2legacy/__init__.py:5: RuntimeWarning: Parent module 'pythonforandroid.recipes' not found while handling absolute import
  from multiprocessing import cpu_count
/Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/python2legacy/__init__.py:6: RuntimeWarning: Parent module 'pythonforandroid.recipes' not found while handling absolute import
  from os.path import exists, join, realpath
/Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/python2legacy/__init__.py:7: RuntimeWarning: Parent module 'pythonforandroid.recipes' not found while handling absolute import
  from os import walk
/Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/python2legacy/__init__.py:8: RuntimeWarning: Parent module 'pythonforandroid.recipes' not found while handling absolute import
  import glob
/Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/python2legacy/__init__.py:9: RuntimeWarning: Parent module 'pythonforandroid.recipes' not found while handling absolute import
  import sh
/Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/sdl/__init__.py:1: RuntimeWarning: Parent module 'pythonforandroid.recipes' not found while handling absolute import
  from pythonforandroid.recipe import BootstrapNDKRecipe
/Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/sdl/__init__.py:2: RuntimeWarning: Parent module 'pythonforandroid.recipes' not found while handling absolute import
  from pythonforandroid.toolchain import current_directory, info, shprint
/Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/sdl/__init__.py:3: RuntimeWarning: Parent module 'pythonforandroid.recipes' not found while handling absolute import
  from os.path import exists, join
/Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/sdl/__init__.py:4: RuntimeWarning: Parent module 'pythonforandroid.recipes' not found while handling absolute import
  import sh
/Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/genericndkbuild/__init__.py:1: RuntimeWarning: Parent module 'pythonforandroid.recipes' not found while handling absolute import
  from pythonforandroid.recipe import BootstrapNDKRecipe
/Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/genericndkbuild/__init__.py:2: RuntimeWarning: Parent module 'pythonforandroid.recipes' not found while handling absolute import
  from pythonforandroid.toolchain import current_directory, shprint
/Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/genericndkbuild/__init__.py:3: RuntimeWarning: Parent module 'pythonforandroid.recipes' not found while handling absolute import
  import sh
/Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/python3/__init__.py:1: RuntimeWarning: Parent module 'pythonforandroid.recipes' not found while handling absolute import
  from pythonforandroid.python import GuestPythonRecipe
/Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/python3/__init__.py:2: RuntimeWarning: Parent module 'pythonforandroid.recipes' not found while handling absolute import
  from pythonforandroid.recipe import Recipe
/Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/python3crystax/__init__.py:2: RuntimeWarning: Parent module 'pythonforandroid.recipes' not found while handling absolute import
  from pythonforandroid.recipe import TargetPythonRecipe
/Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/python3crystax/__init__.py:3: RuntimeWarning: Parent module 'pythonforandroid.recipes' not found while handling absolute import
  from pythonforandroid.toolchain import shprint
/Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/python3crystax/__init__.py:4: RuntimeWarning: Parent module 'pythonforandroid.recipes' not found while handling absolute import
  from pythonforandroid.logger import info, error
/Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/python3crystax/__init__.py:5: RuntimeWarning: Parent module 'pythonforandroid.recipes' not found while handling absolute import
  from pythonforandroid.util import ensure_dir, temp_directory
/Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/python3crystax/__init__.py:6: RuntimeWarning: Parent module 'pythonforandroid.recipes' not found while handling absolute import
  from os.path import exists, join
/Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/python3crystax/__init__.py:7: RuntimeWarning: Parent module 'pythonforandroid.recipes' not found while handling absolute import
  import sh
/Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/pygame/__init__.py:2: RuntimeWarning: Parent module 'pythonforandroid.recipes' not found while handling absolute import
  from pythonforandroid.recipe import Recipe
/Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/pygame/__init__.py:3: RuntimeWarning: Parent module 'pythonforandroid.recipes' not found while handling absolute import
  from pythonforandroid.util import current_directory, ensure_dir
/Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/pygame/__init__.py:4: RuntimeWarning: Parent module 'pythonforandroid.recipes' not found while handling absolute import
  from pythonforandroid.logger import debug, shprint, info, warning
/Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/pygame/__init__.py:5: RuntimeWarning: Parent module 'pythonforandroid.recipes' not found while handling absolute import
  from os.path import join
/Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/pygame/__init__.py:6: RuntimeWarning: Parent module 'pythonforandroid.recipes' not found while handling absolute import
  import sh
/Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/pygame/__init__.py:7: RuntimeWarning: Parent module 'pythonforandroid.recipes' not found while handling absolute import
  import glob
/Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/hostpython2legacy/__init__.py:1: RuntimeWarning: Parent module 'pythonforandroid.recipes' not found while handling absolute import
  import os
/Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/hostpython2legacy/__init__.py:2: RuntimeWarning: Parent module 'pythonforandroid.recipes' not found while handling absolute import
  import sh
/Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/hostpython2legacy/__init__.py:3: RuntimeWarning: Parent module 'pythonforandroid.recipes' not found while handling absolute import
  from os.path import join, exists
/Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/hostpython2legacy/__init__.py:5: RuntimeWarning: Parent module 'pythonforandroid.recipes' not found while handling absolute import
  from pythonforandroid.recipe import Recipe
/Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/hostpython2legacy/__init__.py:6: RuntimeWarning: Parent module 'pythonforandroid.recipes' not found while handling absolute import
  from pythonforandroid.logger import info, warning, shprint
/Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/hostpython2legacy/__init__.py:7: RuntimeWarning: Parent module 'pythonforandroid.recipes' not found while handling absolute import
  from pythonforandroid.util import current_directory
/Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/hostpython3/__init__.py:1: RuntimeWarning: Parent module 'pythonforandroid.recipes' not found while handling absolute import
  from pythonforandroid.python import HostPythonRecipe
/Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/sqlite3/__init__.py:1: RuntimeWarning: Parent module 'pythonforandroid.recipes' not found while handling absolute import
  from pythonforandroid.recipe import NDKRecipe
/Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/sqlite3/__init__.py:2: RuntimeWarning: Parent module 'pythonforandroid.recipes' not found while handling absolute import
  from pythonforandroid.toolchain import shutil
/Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/sqlite3/__init__.py:3: RuntimeWarning: Parent module 'pythonforandroid.recipes' not found while handling absolute import
  from os.path import join
/Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/sqlite3/__init__.py:4: RuntimeWarning: Parent module 'pythonforandroid.recipes' not found while handling absolute import
  import sh
/Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/openssl/__init__.py:1: RuntimeWarning: Parent module 'pythonforandroid.recipes' not found while handling absolute import
  from os.path import join
/Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/openssl/__init__.py:3: RuntimeWarning: Parent module 'pythonforandroid.recipes' not found while handling absolute import
  from pythonforandroid.toolchain import Recipe, shprint, current_directory
/Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/openssl/__init__.py:4: RuntimeWarning: Parent module 'pythonforandroid.recipes' not found while handling absolute import
  import sh
/Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/libffi/__init__.py:1: RuntimeWarning: Parent module 'pythonforandroid.recipes' not found while handling absolute import
  from os.path import exists, join
/Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/libffi/__init__.py:2: RuntimeWarning: Parent module 'pythonforandroid.recipes' not found while handling absolute import
  from pythonforandroid.recipe import Recipe
/Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/libffi/__init__.py:3: RuntimeWarning: Parent module 'pythonforandroid.recipes' not found while handling absolute import
  from pythonforandroid.logger import info, shprint
/Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/libffi/__init__.py:4: RuntimeWarning: Parent module 'pythonforandroid.recipes' not found while handling absolute import
  from pythonforandroid.util import current_directory, ensure_dir
/Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/libffi/__init__.py:5: RuntimeWarning: Parent module 'pythonforandroid.recipes' not found while handling absolute import
  from glob import glob
/Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/libffi/__init__.py:6: RuntimeWarning: Parent module 'pythonforandroid.recipes' not found while handling absolute import
  import sh
/Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/hostpython3crystax/__init__.py:1: RuntimeWarning: Parent module 'pythonforandroid.recipes' not found while handling absolute import
  from pythonforandroid.toolchain import Recipe, shprint
/Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/hostpython3crystax/__init__.py:2: RuntimeWarning: Parent module 'pythonforandroid.recipes' not found while handling absolute import
  from os.path import join
/Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/hostpython3crystax/__init__.py:3: RuntimeWarning: Parent module 'pythonforandroid.recipes' not found while handling absolute import
  import sh
[INFO]:    Found a single valid recipe set: [u'boto3', u'botocore', 'hostpython2', 'sdl2_image', 'sdl2_mixer', 'sdl2_ttf', u'urllib3', 'python2', 'sdl2', 'six', 'pyjnius', 'android', u'kivy']
[INFO]:    The selected bootstrap is sdl2
[INFO]:    # Creating dist with sdl2 bootstrap
[INFO]:    Dist will have name cwremote and requirements (python2, kivy, urllib3, botocore, boto3)
[INFO]:    Dist contains the following requirements as recipes: ['hostpython2', 'sdl2_image', 'sdl2_mixer', 'sdl2_ttf', 'python2', 'sdl2', 'six', 'pyjnius', 'android', u'kivy']
[INFO]:    Dist will also contain modules (boto3, botocore, urllib3) installed from pip
[INFO]:    -> directory context /Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python2
[INFO]:    <- directory context /Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android
[INFO]:    Recipe build order is ['hostpython2', 'sdl2_image', 'sdl2_mixer', 'sdl2_ttf', 'python2', 'sdl2', 'six', 'pyjnius', 'android', u'kivy']
[INFO]:    The requirements (boto3, botocore, urllib3) were not found as recipes, they will be installed with pip.
[INFO]:    # Downloading recipes
[INFO]:    Downloading hostpython2
[INFO]:    -> running mkdir -p /Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/build/packages/hostpython2
[INFO]:    -> directory context /Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/build/packages/hostpython2
[INFO]:    -> running basename https://www.python.org/ftp/python/2.7.15/Python-2.7.15.tgz
[INFO]:    hostpython2 download already cached, skipping
[INFO]:    <- directory context /Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android
[INFO]:    Downloading sdl2_image
[INFO]:    -> running mkdir -p /Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/build/packages/sdl2_image
[INFO]:    -> directory context /Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/build/packages/sdl2_image
[INFO]:    -> running basename https://www.libsdl.org/projects/SDL_image/release/SDL2_image-2.0.4.tar.gz
[INFO]:    sdl2_image download already cached, skipping
[INFO]:    <- directory context /Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android
[INFO]:    Downloading sdl2_mixer
[INFO]:    -> running mkdir -p /Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/build/packages/sdl2_mixer
[INFO]:    -> directory context /Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/build/packages/sdl2_mixer
[INFO]:    -> running basename https://www.libsdl.org/projects/SDL_mixer/release/SDL2_mixer-2.0.1.tar.gz
[INFO]:    sdl2_mixer download already cached, skipping
[INFO]:    <- directory context /Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android
[INFO]:    Downloading sdl2_ttf
[INFO]:    -> running mkdir -p /Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/build/packages/sdl2_ttf
[INFO]:    -> directory context /Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/build/packages/sdl2_ttf
[INFO]:    -> running basename https://www.libsdl.org/projects/SDL_ttf/release/SDL2_ttf-2.0.14.tar.gz
[INFO]:    sdl2_ttf download already cached, skipping
[INFO]:    <- directory context /Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android
[INFO]:    Downloading python2
[INFO]:    -> running mkdir -p /Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/build/packages/python2
[INFO]:    -> directory context /Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/build/packages/python2
[INFO]:    -> running basename https://www.python.org/ftp/python/2.7.15/Python-2.7.15.tgz
[INFO]:    python2 download already cached, skipping
[INFO]:    <- directory context /Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android
[INFO]:    Downloading sdl2
[INFO]:    -> running mkdir -p /Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/build/packages/sdl2
[INFO]:    -> directory context /Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/build/packages/sdl2
[INFO]:    -> running basename https://www.libsdl.org/release/SDL2-2.0.9.tar.gz
[INFO]:    sdl2 download already cached, skipping
[INFO]:    <- directory context /Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android
[INFO]:    Downloading six
[INFO]:    -> running mkdir -p /Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/build/packages/six
[INFO]:    -> directory context /Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/build/packages/six
[INFO]:    -> running basename https://pypi.python.org/packages/source/s/six/six-1.9.0.tar.gz
[INFO]:    six download already cached, skipping
[INFO]:    <- directory context /Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android
[INFO]:    Downloading pyjnius
[INFO]:    -> running mkdir -p /Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/build/packages/pyjnius
[INFO]:    -> directory context /Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/build/packages/pyjnius
[INFO]:    -> running basename https://github.com/kivy/pyjnius/archive/6553ad4.zip
[INFO]:    pyjnius download already cached, skipping
[INFO]:    <- directory context /Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android
[INFO]:    Downloading android
[INFO]:    Skipping android download as no URL is set
[INFO]:    Downloading kivy
[INFO]:    -> running mkdir -p /Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/build/packages/kivy
[INFO]:    -> directory context /Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/build/packages/kivy
[INFO]:    -> running basename https://github.com/kivy/kivy/archive/a95d67f.zip
[INFO]:    kivy download already cached, skipping
[INFO]:    <- directory context /Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android
[INFO]:    # Building all recipes for arch armeabi-v7a
[INFO]:    # Unpacking recipes
[INFO]:    Unpacking hostpython2 for armeabi-v7a
[INFO]:    -> running basename https://www.python.org/ftp/python/2.7.15/Python-2.7.15.tgz
[INFO]:    -> directory context /Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/build/build/other_builds/hostpython2/desktop
[INFO]:    hostpython2 is already unpacked, skipping
[INFO]:    <- directory context /Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android
[INFO]:    Unpacking sdl2_image for armeabi-v7a
[INFO]:    -> running basename https://www.libsdl.org/projects/SDL_image/release/SDL2_image-2.0.4.tar.gz
[INFO]:    -> directory context /Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python2/jni
[INFO]:    sdl2_image is already unpacked, skipping
[INFO]:    <- directory context /Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android
[INFO]:    Unpacking sdl2_mixer for armeabi-v7a
[INFO]:    -> running basename https://www.libsdl.org/projects/SDL_mixer/release/SDL2_mixer-2.0.1.tar.gz
[INFO]:    -> directory context /Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python2/jni
[INFO]:    sdl2_mixer is already unpacked, skipping
[INFO]:    <- directory context /Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android
[INFO]:    Unpacking sdl2_ttf for armeabi-v7a
[INFO]:    -> running basename https://www.libsdl.org/projects/SDL_ttf/release/SDL2_ttf-2.0.14.tar.gz
[INFO]:    -> directory context /Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python2/jni
[INFO]:    sdl2_ttf is already unpacked, skipping
[INFO]:    <- directory context /Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android
[INFO]:    Unpacking python2 for armeabi-v7a
[INFO]:    -> running basename https://www.python.org/ftp/python/2.7.15/Python-2.7.15.tgz
[INFO]:    -> directory context /Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/build/build/other_builds/python2/armeabi-v7a__ndk_target_27
[INFO]:    python2 is already unpacked, skipping
[INFO]:    <- directory context /Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android
[INFO]:    Unpacking sdl2 for armeabi-v7a
[INFO]:    -> running basename https://www.libsdl.org/release/SDL2-2.0.9.tar.gz
[INFO]:    -> directory context /Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python2/jni
[INFO]:    sdl2 is already unpacked, skipping
[INFO]:    <- directory context /Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android
[INFO]:    Unpacking six for armeabi-v7a
[INFO]:    -> running basename https://pypi.python.org/packages/source/s/six/six-1.9.0.tar.gz
[INFO]:    -> directory context /Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/build/build/other_builds/six-python2/armeabi-v7a__ndk_target_27
[INFO]:    six is already unpacked, skipping
[INFO]:    <- directory context /Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android
[INFO]:    Unpacking pyjnius for armeabi-v7a
[INFO]:    -> running basename https://github.com/kivy/pyjnius/archive/6553ad4.zip
[INFO]:    -> directory context /Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/build/build/other_builds/pyjnius-python2-sdl2/armeabi-v7a__ndk_target_27
[INFO]:    pyjnius is already unpacked, skipping
[INFO]:    <- directory context /Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android
[INFO]:    -> running rm -rf /Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/build/build/other_builds/android-python2-sdl2/armeabi-v7a__ndk_target_27/android
[INFO]:    -> running cp -a /Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/android/src /Users/Ken/...(and 149 more)
[INFO]:    Unpacking kivy for armeabi-v7a
[INFO]:    -> running basename https://github.com/kivy/kivy/archive/a95d67f.zip
[INFO]:    -> directory context /Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/build/build/other_builds/kivy-python2-sdl2/armeabi-v7a__ndk_target_27
[INFO]:    kivy is already unpacked, skipping
[INFO]:    <- directory context /Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android
[INFO]:    # Prebuilding recipes
[INFO]:    Prebuilding hostpython2 for armeabi-v7a
[INFO]:    hostpython2 has no prebuild_armeabi_v7a, skipping
[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 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]:    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 android for armeabi-v7a
[INFO]:    android has no prebuild_armeabi_v7a, skipping
[INFO]:    -> directory context /Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/build/build/other_builds/android-python2-sdl2/armeabi-v7a__ndk_target_27/android
[INFO]:    <- directory context /Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android
[INFO]:    Prebuilding kivy for armeabi-v7a
[INFO]:    kivy has no prebuild_armeabi_v7a, skipping
[INFO]:    # Building recipes
[INFO]:    Building hostpython2 for armeabi-v7a
[INFO]:    Skipping hostpython2 (2.7.15) build, as it has already been completed
[INFO]:    Building sdl2_image for armeabi-v7a
[INFO]:    Building sdl2_mixer for armeabi-v7a
[INFO]:    Building sdl2_ttf for armeabi-v7a
[INFO]:    Building python2 for armeabi-v7a
[INFO]:    -> directory context /Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/build/build/other_builds/python2/armeabi-v7a__ndk_target_27/python2/android-build
[WARNING]: Doing some hacky stuff to link properly
[INFO]:    -> running cp /Users/Ken/.buildozer/android/platform/android-ndk-r17c/platforms/android-27/arch-arm/usr/lib/crtbegin_so.o ./
[INFO]:    -> running cp /Users/Ken/.buildozer/android/platform/android-ndk-r17c/platforms/android-27/arch-arm/usr/lib/crtend_so.o ./
[INFO]:    <- directory context /Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android
[INFO]:    Building sdl2 for armeabi-v7a
[INFO]:    -> directory context /Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python2/jni
[INFO]:    -> running ndk-build V=1
[INFO]:    <- directory context /Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android
[INFO]:    Building six for armeabi-v7a
[INFO]:    six apparently isn't already in site-packages
[INFO]:    Installing six into site-packages
[INFO]:    -> directory context /Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/build/build/other_builds/six-python2/armeabi-v7a__ndk_target_27/six
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 174, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 1081, in <module>
    main()
  File "/Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 1075, in main
    ToolchainCL()
  File "/Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 577, in __init__
    getattr(self, args.subparser_name.replace('-', '_'))(args)
  File "/Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 151, in wrapper_func
    build_dist_from_args(ctx, dist, args)
  File "/Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 200, in build_dist_from_args
    build_recipes(build_order, python_modules, ctx)
  File "pythonforandroid/build.py", line 562, in build_recipes
  File "pythonforandroid/recipe.py", line 834, in build_arch
  File "pythonforandroid/recipe.py", line 848, in install_python_package
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/sh.py", line 1202, in __init__
    raise CommandNotFound(path)
sh.CommandNotFound: /Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/build/build/other_builds/hostpython2/desktop/hostpython2/native-build/python
# Command failed: /Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -m pythonforandroid.toolchain create --dist_name=cwremote --bootstrap=sdl2 --requirements=python2,kivy,urllib3,botocore,boto3 --arch armeabi-v7a --copy-libs --color=always --storage-dir="/Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK/.buildozer/android/platform/build" --ndk-api=27
# ENVIRONMENT:
#     NVM_CD_FLAGS = ''
#     TERM_PROGRAM_VERSION = '3.0.5'
#     LOGNAME = 'Ken'
#     NVM_NODEJS_ORG_MIRROR = 'https://nodejs.org/dist'
#     NVM_DIR = '/Users/Ken/.nvm'
#     PATH = '/Users/Ken/.buildozer/android/platform/apache-ant-1.9.4/bin:/Users/Ken/.nvm/versions/node/v11.10.1/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin'
#     HOME = '/Users/Ken'
#     NVM_IOJS_ORG_MIRROR = 'https://iojs.org/dist'
#     TERM_PROGRAM = 'iTerm.app'
#     LANG = 'en_US.UTF-8'
#     TERM = 'xterm-256color'
#     SHELL = '/bin/bash'
#     COLORFGBG = '0;15'
#     PACKAGES_PATH = '/Users/Ken/.buildozer/android/packages'
#     SHLVL = '1'
#     XPC_FLAGS = '0x0'
#     NVM_BIN = '/Users/Ken/.nvm/versions/node/v11.10.1/bin'
#     ITERM_SESSION_ID = 'w0t1p1:45F21B18-6782-4DC5-AF9F-B331DF1AEFF0'
#     _ = '/Library/Frameworks/Python.framework/Versions/2.7/bin/buildozer'
#     MANPATH = '/Users/Ken/.nvm/versions/node/v11.10.1/share/man:/Library/Frameworks/Python.framework/Versions/2.7/share/man:/usr/local/share/man:/usr/share/man:/Applications/Xcode.app/Contents/Developer/usr/share/man:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/share/man'
#     TERM_SESSION_ID = 'w0t1p1:45F21B18-6782-4DC5-AF9F-B331DF1AEFF0'
#     XPC_SERVICE_NAME = '0'
#     SSH_AUTH_SOCK = '/private/tmp/com.apple.launchd.ta9a1rajnZ/Listeners'
#     ANDROIDSDK = '/Users/Ken/.buildozer/android/platform/android-sdk'
#     Apple_PubSub_Socket_Render = '/private/tmp/com.apple.launchd.35M1ZLE7nL/Render'
#     ITERM_PROFILE = 'Default'
#     ANDROIDMINAPI = '27'
#     TMPDIR = '/var/folders/c1/50q2b_7906z19dfgp_hym01m0000gn/T/'
#     OLDPWD = '/Users/Ken'
#     ANDROIDNDK = '/Users/Ken/.buildozer/android/platform/android-ndk-r17c'
#     __CF_USER_TEXT_ENCODING = '0x1F5:0x0:0x0'
#     PWD = '/Users/Ken/Documents/PyCharm_Projects/CW_Remote_APK'
#     ANDROIDAPI = '27'
#     USER = 'Ken'
#
# 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
tito commented 5 years ago

Hi, just before transfering, this is not a Kivy issue itself, but more about python-for-android. You have warning in your backlog that you should take care of (libtoolize, pkg-config, autoconf/make, etc). Also, as per your previous issue that you manually copied some stuff and say it's working, then later reopen an issue about that it's not, please avoid :)

It would be best to first discuss about it on support channel before opening anything.

kcrossen commented 5 years ago

The instructions on: https://kivy.org/doc/stable/guide/packaging-osx.html and on: https://kivy.org/doc/stable/guide/android.html were followed to the letter, double checked, followed again.

The problem I am experiencing is that the posted instructions don't work on OSX 10.11.6 w/ Python 2.7.16. They fail sequentially, repeatedly. They fail w/ 1.9.1 @ https://kivy.org/downloads/, referenced from https://kivy.org/doc/stable/installation/installation-osx.html. They fail w/ Kivy-1.10.1_osx10.13.5_builtin_python2_r1.dmg.

Intuit (QuickBooks) became a giant by rounding up secretaries and people off the street to test each new release. The analog in Kivy's case is to test your build scripts on virgin machines and if it doesn't work, it's not releasable. This correctly models the problems of all new Kivy recruits.

How does it matter about "You have warning in your backlog that you should take care of (libtoolize, pkg-config, autoconf/make, etc)." How can this even apply to your VirtualBox VMs, which have many of the same failures, and should work absolutely out of the box as per instructions.

How would someone just stumbling across Kivy have any idea where to post what? How would anyone who is not an insider know that this all comes down python-for-android? You know because that's where you live. I'm not a newbie, I'm just new to Kivy, and if you think about it that's where most of your experts started.

IMHO, of course, Ken

kcrossen commented 5 years ago

The actual topic of all my "issues" is that procedures that could have failed in testing, instead failed for me, and according to StackExchange and your own issues board has failed for many others in exactly the same way. It's actually less work for the community as a whole, and probably for the volunteers as well, to get it right before release.

It has only just become clear where that kind of discussion happens.

See ya on the flip side.

akshayaurora commented 5 years ago

@kcrossen your issue does not seem coherent to me.

On one hand you talk about packaging osx app with kivy/buildozer and open the issue on kivy/kivy.

Your log is of python-for-android which is while using linux to build a android apk.

You see we didn't ask you not to post a issue, just post a issue in the correct place, and without mixing up logs.

With the issue the way it is it's difficult to figure out what the issue is about specifically?

Is it a issue with Buildozer? then we should move it to http://github.com/kivy/buildozer Is it a issue with python-for-android? If so then it should be posted in http://kivy/python-for-android

You are new to kivy so we asked you to take help from support channel for figuring out the different projects and where to report your issue.

Basically to help us help you better.

kcrossen commented 5 years ago
You are new to kivy so we asked you to take help from support channel for figuring out the different projects and where to report your issue.

Basically to help us help you better.

Point well taken and well stated. Where is the discoverable guidance on your point? Here? https://kivy.org/doc/stable/contact.html, no. Here? https://kivy.org/#support, no. Here? https://github.com/kivy/kivy, no. Here? https://github.com/kivy/kivy, no.

Put yourself in the position of someone who has built several large, mission-critical Qt4/Qt5/C++ applications over the years. Who has participated in developing widgets for Qt. And couldn't find any guidance on the excellent points you mention. You, of course, know where nearly any relevant topic should be posted because you live here, it's your condo.

So I will state my problem (as I see it) by quoting you: Please "help us help you better."

(also posted in #general)

BTW, this all happened using naked buildozer on OSX 10.11.6, absolute latest of everything else, Python 2.7.16, Kivy 1.10, etc.

This is a lose-lose recipe for severely increasing support issues, see below.

kcrossen commented 5 years ago

(copied from #general) Another eample of toxic mix of DOC and SUPPORT, a dev philosophy issue where Kivy is shooting at its own feet (or rather the volunteer devs' feet)

 File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ssl.py", line 828, in do_handshake
    self._sslobj.do_handshake()
IOError: [Errno socket error] [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:727)

Ugly temporary fix in ssl.py starting at line 590:

            # create the SSL object
            try:
                self._context.check_hostname = False
                self._context.verify_mode = CERT_NONE
                self._sslobj = self._context._wrap_socket(self._sock, server_side,
                                                          server_hostname, ssl_sock=self)
                if do_handshake_on_connect:

What happened here (and similar) happens over and over again., issue closed and reopened. When naked buildozer wakes up it has no idea of it's environment. When it's tested by Kivy devs, it's hardly a virgin machine, so it probably works...mostly. Promoting raw buildozer installs looks like a sure loser to me. Docker / VMs, on the other hand, should work identically on virgin machines and on dev machines, and dev testing will be universally applicable.

akshayaurora commented 5 years ago

@kcrossen are you here to just make several incoherent links to absolutely unrelated logs/code? or to raise a actual issue? to get some help to try help solve a possible issue?

What is the issue? <- Give us actual log of the actual problem you retrying to solve.

For some one supposed to be so experienced I would assume you would be able to follow a simple issue template.

Issues are not for rants.

Please open a issue following the issue template if there is a support issue.