-
Notifications
You must be signed in to change notification settings - Fork 2k
Why an error occurs 'python-for-android cannot continue; aborting'? #1266
Copy link
Copy link
Closed
Description
Installed python-for-android using the instructions:
pip install git+https://github.com/kivy/python-for-android.gitI am trying to build a project - https://github.com/inclement/Pyonic-interpreter
Here is the code from Pyonic-interprete/sertup.py (pointed only his way to crystax-ndk):
from setuptools import setup, find_packages
from distutils.extension import Extension
from Cython.Distutils import build_ext
from os.path import join, dirname
packages = find_packages()
with open(join(dirname(__file__), 'version.txt'), 'r') as fileh:
version = fileh.read().strip()
options = {'apk': {'window': None,
'requirements': 'sdl2,kivy,python2,pygments,jedi',
'android-api': 19,
'ndk-dir': '/home/zavulon/Opt/crystax-ndk-10.3.2',
'dist-name': 'pyonic_python2',
'ndk-version': '10.3.2',
'package': 'net.inclem.pyonicinterpreter',
'permission': 'INTERNET',
'service': 'interpreter:interpreter_subprocess/interpreter.py',
# 'service': 'pip:interpreter_subprocess/interpreter.py',
# 'services': 'pip:interpreter_subprocess/interpreter.py;interpreter:interpreter_subprocess/interpreter.py',
'arch': 'armeabi-v7a',
'icon': 'build_assets/icon_py2-96.png',
'presplash': 'build_assets/presplash.png',
'whitelist': 'build_assets/whitelist.txt',
'local-recipes': './p4a_recipes',
# 'release': None,
# 'debug': None,
}}
setup(
name='Pyonic Python 2 interpreter',
version=version,
description='A Python mobile IDE experiment',
author='Alexander Taylor',
author_email='alexanderjohntaylor@gmail.com',
packages=packages,
options=options,
package_data={'pyonic': ['*.py', '*.kv'],
'pyonic/interpreter_subprocess': ['*.py'],
'pyonic/assets': ['*.ttf', '*.txt']}
)Run build:
python setup.py apkGet error:
Including pyonic/pipinterface.py
Including pyonic/interpreterwrapper.py
Including pyonic/interpreter.py
Including pyonic/__init__.py
Including pyonic/utils.py
Including pyonic/editor.py
Including pyonic/menu.py
Including pyonic/main.py
Including pyonic/settings.py
Including pyonic/android_runnable.py
Including pyonic/widgets.py
Including pyonic/jediinterface.py
Including pyonic/main.kv
Including pyonic/interpreter.kv
Including pyonic/pipinterface.kv
Including pyonic/menu.kv
Including pyonic/editor.kv
Including pyonic/settings.kv
Including pyonic/interpreter_subprocess/interpreter.py
Including pyonic/assets/fontello.ttf
Including pyonic/assets/LICENSE.txt
[INFO]: Will compile for the following archs: armeabi-v7a
[INFO]: Found possible SDK dirs in buildozer dir: android-sdk-23
[INFO]: Will attempt to use SDK at /home/zavulon/.buildozer/android/platform/android-sdk-23
[WARNING]: This SDK lookup is intended for debug only, if you use python-for-android much you should probably maintain your own SDK download.
[INFO]: Getting Android API version from user argument
[INFO]: Available Android APIs are (9, 19, 23)
[INFO]: Requested API target 19 is available, continuing.
[INFO]: Getting NDK dir from from user argument
[INFO]: Got NDK version from from user argument
[INFO]: Using Crystax NDK 10.3.2
[INFO]: Found virtualenv at /usr/local/bin/virtualenv
[INFO]: ccache is missing, the build will not be optimized in the future.
[WARNING]: include directory doesn't exist: /home/zavulon/Opt/crystax-ndk-10.3.2/sysroot/usr/include/arm-linux-androideabi
[INFO]: Found the following toolchain versions: ['4.9', '5', 'clang3.6', 'clang3.7']
[INFO]: Picking the latest gcc toolchain, here 5
[ERROR]: python-for-android cannot continue; abortingWhat is the problem?
Using Python 2.7
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels