kivy / python-for-android

Turn your Python application into an Android APK
https://python-for-android.readthedocs.io
MIT License
8.34k stars 1.85k forks source link

Ndk19c compiled numpy problems #1923

Closed Liujiangy1 closed 5 years ago

Liujiangy1 commented 5 years ago

Versions

Description

I use clang to compile, no problem with adding numpy, once the numpy is added, the following problem occurs.

Command

p4a apk --version 0.1 --bootstrap=sdl2 --requirements=python3,android,numpy --arch=armeabi-v7a --ndk-dir=/home/liu/android-ndk-r19c

Logs

  libraries  not found in ['/usr/local/lib', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
  NOT AVAILABLE

/root/.local/share/python-for-android/build/other_builds/numpy-python3/armeabi-v7a__ndk_target_27/numpy/numpy/distutils/system_info.py:625: UserWarning: 
    Lapack (http://www.netlib.org/lapack/) libraries not found.
    Directories to search for the libraries can be specified in the
    numpy/distutils/site.cfg file (section [lapack]) or by setting
    the LAPACK environment variable.
  self.calc_info()
lapack_src_info:
  NOT AVAILABLE

/root/.local/share/python-for-android/build/other_builds/numpy-python3/armeabi-v7a__ndk_target_27/numpy/numpy/distutils/system_info.py:625: UserWarning: 
    Lapack (http://www.netlib.org/lapack/) sources not found.
    Directories to search for the sources can be specified in the
    numpy/distutils/site.cfg file (section [lapack_src]) or by setting
    the LAPACK_SRC environment variable.
  self.calc_info()
  NOT AVAILABLE

/root/.local/share/python-for-android/build/other_builds/hostpython3/desktop/hostpython3/Lib/distutils/dist.py:274: UserWarning: Unknown distribution option: 'test_suite'
  warnings.warn(msg)
/root/.local/share/python-for-android/build/other_builds/hostpython3/desktop/hostpython3/Lib/distutils/dist.py:274: UserWarning: Unknown distribution option: 'python_requires'
  warnings.warn(msg)
/root/.local/share/python-for-android/build/other_builds/hostpython3/desktop/hostpython3/Lib/distutils/dist.py:274: UserWarning: Unknown distribution option: 'zip_safe'
  warnings.warn(msg)
/root/.local/share/python-for-android/build/other_builds/hostpython3/desktop/hostpython3/Lib/distutils/dist.py:274: UserWarning: Unknown distribution option: 'define_macros'
  warnings.warn(msg)
running build_ext
running build_src
build_src
building py_modules sources
building library "npymath" sources
get_default_fcompiler: matching types: '['gnu95', 'intel', 'lahey', 'pg', 'absoft', 'nag', 'vast', 'compaq', 'intele', 'intelem', 'gnu', 'g95', 'pathf95', 'nagfor']'
customize Gnu95FCompiler
Found executable /usr/bin/gfortran
Could not locate executable /usr/bin/ccache /home/liu/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -DANDROID -fomit-frame-pointer -D__ANDROID_API__=27 -target armv7a-none-linux-androideabi -gcc-toolchain /home/liu/android-ndk-r19c/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64 -isystem /home/liu/android-ndk-r19c/sysroot/usr/include/arm-linux-androideabi -I/home/liu/android-ndk-r19c/sysroot/usr/include/arm-linux-androideabi -isysroot /home/liu/android-ndk-r19c/sysroot -I/root/.local/share/python-for-android/build/python-installs/unnamed_dist_11/include/python3.7 -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions 
Could not locate executable arm-linux-androideabi-ld -L/home/liu/android-ndk-r19c/platforms/android-27/arch-arm/usr/lib --sysroot=/home/liu/android-ndk-r19c/platforms/android-27/arch-arm -I/root/.local/share/python-for-android/build/other_builds/python3-libffi-openssl-sqlite3/armeabi-v7a__ndk_target_27/python3/Include -L/root/.local/share/python-for-android/build/other_builds/python3-libffi-openssl-sqlite3/armeabi-v7a__ndk_target_27/python3/android-build -lpython3.7m -shared
Found executable /home/liu/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/arm-linux-androideabi-ar
Found executable /home/liu/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/arm-linux-androideabi-ranlib
customize Gnu95FCompiler
customize Gnu95FCompiler using config
C compiler: /usr/bin/ccache /home/liu/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -DANDROID -fomit-frame-pointer -D__ANDROID_API__=27 -target armv7a-none-linux-androideabi -gcc-toolchain /home/liu/android-ndk-r19c/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64 -isystem /home/liu/android-ndk-r19c/sysroot/usr/include/arm-linux-androideabi -I/home/liu/android-ndk-r19c/sysroot/usr/include/arm-linux-androideabi -isysroot /home/liu/android-ndk-r19c/sysroot -I/root/.local/share/python-for-android/build/python-installs/unnamed_dist_11/include/python3.7 -L/home/liu/android-ndk-r19c/platforms/android-27/arch-arm/usr/lib --sysroot=/home/liu/android-ndk-r19c/platforms/android-27/arch-arm -I/root/.local/share/python-for-android/build/other_builds/python3-libffi-openssl-sqlite3/armeabi-v7a__ndk_target_27/python3/Include -L/root/.local/share/python-for-android/build/other_builds/python3-libffi-openssl-sqlite3/armeabi-v7a__ndk_target_27/python3/android-build -lpython3.7m -DNDEBUG -g -fwrapv -O3 -Wall -DANDROID -fomit-frame-pointer -D__ANDROID_API__=27 -target armv7a-none-linux-androideabi -gcc-toolchain /home/liu/android-ndk-r19c/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64 -isystem /home/liu/android-ndk-r19c/sysroot/usr/include/arm-linux-androideabi -I/home/liu/android-ndk-r19c/sysroot/usr/include/arm-linux-androideabi -isysroot /home/liu/android-ndk-r19c/sysroot -I/root/.local/share/python-for-android/build/python-installs/unnamed_dist_11/include/python3.7 -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -mthumb -I/root/.local/share/python-for-android/build/other_builds/python3-libffi-openssl-sqlite3/armeabi-v7a__ndk_target_27/python3/Include -fPIC

compile options: '-Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/root/.local/share/python-for-android/build/other_builds/hostpython3/desktop/hostpython3/Include -I/root/.local/share/python-for-android/build/other_builds/hostpython3/desktop/hostpython3/native-build -c -DANDROID -fomit-frame-pointer -D__ANDROID_API__=27 -target armv7a-none-linux-androideabi -gcc-toolchain /home/liu/android-ndk-r19c/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64 -isystem /home/liu/android-ndk-r19c/sysroot/usr/include/arm-linux-androideabi -I/home/liu/android-ndk-r19c/sysroot/usr/include/arm-linux-androideabi -isysroot /home/liu/android-ndk-r19c/sysroot -I/root/.local/share/python-for-android/build/python-installs/unnamed_dist_11/include/python3.7 -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -mthumb -I/root/.local/share/python-for-android/build/other_builds/python3-libffi-openssl-sqlite3/armeabi-v7a__ndk_target_27/python3/Include'
ccache: _configtest.c
clang: warning: -lpython3.7m: 'linker' input unused [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-L/home/liu/android-ndk-r19c/platforms/android-27/arch-arm/usr/lib' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-L/root/.local/share/python-for-android/build/other_builds/python3-libffi-openssl-sqlite3/armeabi-v7a__ndk_target_27/python3/android-build' [-Wunused-command-line-argument]
clang: warning: -lpython3.7m: 'linker' input unused [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-isystem /home/liu/android-ndk-r19c/sysroot/usr/include/arm-linux-androideabi' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-I /home/liu/android-ndk-r19c/sysroot/usr/include/arm-linux-androideabi' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-isysroot /home/liu/android-ndk-r19c/sysroot' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-I /root/.local/share/python-for-android/build/python-installs/unnamed_dist_5/include/python3.7' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-L/home/liu/android-ndk-r19c/platforms/android-27/arch-arm/usr/lib' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-I /root/.local/share/python-for-android/build/other_builds/python3-libffi-openssl-sqlite3/armeabi-v7a__ndk_target_27/python3/Include' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-L/root/.local/share/python-for-android/build/other_builds/python3-libffi-openssl-sqlite3/armeabi-v7a__ndk_target_27/python3/android-build' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-isystem /home/liu/android-ndk-r19c/sysroot/usr/include/arm-linux-androideabi' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-I /home/liu/android-ndk-r19c/sysroot/usr/include/arm-linux-androideabi' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-isysroot /home/liu/android-ndk-r19c/sysroot' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-I /root/.local/share/python-for-android/build/python-installs/unnamed_dist_5/include/python3.7' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-I numpy/core/src/private' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-I numpy/core/src' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-I numpy/core' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-I numpy/core/src/npymath' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-I numpy/core/src/multiarray' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-I numpy/core/src/umath' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-I numpy/core/src/npysort' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-I /root/.local/share/python-for-android/build/other_builds/hostpython3/desktop/hostpython3/Include' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-I /root/.local/share/python-for-android/build/other_builds/hostpython3/desktop/hostpython3/native-build' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-isystem /home/liu/android-ndk-r19c/sysroot/usr/include/arm-linux-androideabi' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-I /home/liu/android-ndk-r19c/sysroot/usr/include/arm-linux-androideabi' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-isysroot /home/liu/android-ndk-r19c/sysroot' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-I /root/.local/share/python-for-android/build/python-installs/unnamed_dist_5/include/python3.7' [-Wunused-command-line-argument]
/usr/bin/ccache /home/liu/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -DANDROID -fomit-frame-pointer -D__ANDROID_API__=27 -target armv7a-none-linux-androideabi -gcc-toolchain /home/liu/android-ndk-r19c/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64 -isystem /home/liu/android-ndk-r19c/sysroot/usr/include/arm-linux-androideabi -I/home/liu/android-ndk-r19c/sysroot/usr/include/arm-linux-androideabi -isysroot /home/liu/android-ndk-r19c/sysroot -I/root/.local/share/python-for-android/build/python-installs/unnamed_dist_11/include/python3.7 -L/home/liu/android-ndk-r19c/platforms/android-27/arch-arm/usr/lib --sysroot=/home/liu/android-ndk-r19c/platforms/android-27/arch-arm -I/root/.local/share/python-for-android/build/other_builds/python3-libffi-openssl-sqlite3/armeabi-v7a__ndk_target_27/python3/Include -L/root/.local/share/python-for-android/build/other_builds/python3-libffi-openssl-sqlite3/armeabi-v7a__ndk_target_27/python3/android-build -lpython3.7m _configtest.o -o _configtest
success!
removing: _configtest.c _configtest.o _configtest.o.d _configtest
C compiler: /usr/bin/ccache /home/liu/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -DANDROID -fomit-frame-pointer -D__ANDROID_API__=27 -target armv7a-none-linux-androideabi -gcc-toolchain /home/liu/android-ndk-r19c/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64 -isystem /home/liu/android-ndk-r19c/sysroot/usr/include/arm-linux-androideabi -I/home/liu/android-ndk-r19c/sysroot/usr/include/arm-linux-androideabi -isysroot /home/liu/android-ndk-r19c/sysroot -I/root/.local/share/python-for-android/build/python-installs/unnamed_dist_11/include/python3.7 -L/home/liu/android-ndk-r19c/platforms/android-27/arch-arm/usr/lib --sysroot=/home/liu/android-ndk-r19c/platforms/android-27/arch-arm -I/root/.local/share/python-for-android/build/other_builds/python3-libffi-openssl-sqlite3/armeabi-v7a__ndk_target_27/python3/Include -L/root/.local/share/python-for-android/build/other_builds/python3-libffi-openssl-sqlite3/armeabi-v7a__ndk_target_27/python3/android-build -lpython3.7m -DNDEBUG -g -fwrapv -O3 -Wall -DANDROID -fomit-frame-pointer -D__ANDROID_API__=27 -target armv7a-none-linux-androideabi -gcc-toolchain /home/liu/android-ndk-r19c/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64 -isystem /home/liu/android-ndk-r19c/sysroot/usr/include/arm-linux-androideabi -I/home/liu/android-ndk-r19c/sysroot/usr/include/arm-linux-androideabi -isysroot /home/liu/android-ndk-r19c/sysroot -I/root/.local/share/python-for-android/build/python-installs/unnamed_dist_11/include/python3.7 -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -mthumb -I/root/.local/share/python-for-android/build/other_builds/python3-libffi-openssl-sqlite3/armeabi-v7a__ndk_target_27/python3/Include -fPIC

compile options: '-Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/root/.local/share/python-for-android/build/other_builds/hostpython3/desktop/hostpython3/Include -I/root/.local/share/python-for-android/build/other_builds/hostpython3/desktop/hostpython3/native-build -c -DANDROID -fomit-frame-pointer -D__ANDROID_API__=27 -target armv7a-none-linux-androideabi -gcc-toolchain /home/liu/android-ndk-r19c/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64 -isystem /home/liu/android-ndk-r19c/sysroot/usr/include/arm-linux-androideabi -I/home/liu/android-ndk-r19c/sysroot/usr/include/arm-linux-androideabi -isysroot /home/liu/android-ndk-r19c/sysroot -I/root/.local/share/python-for-android/build/python-installs/unnamed_dist_11/include/python3.7 -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -mthumb -I/root/.local/share/python-for-android/build/other_builds/python3-libffi-openssl-sqlite3/armeabi-v7a__ndk_target_27/python3/Include'
ccache: _configtest.c
clang: warning: -lpython3.7m: 'linker' input unused [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-L/home/liu/android-ndk-r19c/platforms/android-27/arch-arm/usr/lib' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-L/root/.local/share/python-for-android/build/other_builds/python3-libffi-openssl-sqlite3/armeabi-v7a__ndk_target_27/python3/android-build' [-Wunused-command-line-argument]
clang: warning: -lpython3.7m: 'linker' input unused [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-isystem /home/liu/android-ndk-r19c/sysroot/usr/include/arm-linux-androideabi' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-I /home/liu/android-ndk-r19c/sysroot/usr/include/arm-linux-androideabi' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-isysroot /home/liu/android-ndk-r19c/sysroot' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-I /root/.local/share/python-for-android/build/python-installs/unnamed_dist_5/include/python3.7' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-L/home/liu/android-ndk-r19c/platforms/android-27/arch-arm/usr/lib' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-I /root/.local/share/python-for-android/build/other_builds/python3-libffi-openssl-sqlite3/armeabi-v7a__ndk_target_27/python3/Include' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-L/root/.local/share/python-for-android/build/other_builds/python3-libffi-openssl-sqlite3/armeabi-v7a__ndk_target_27/python3/android-build' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-isystem /home/liu/android-ndk-r19c/sysroot/usr/include/arm-linux-androideabi' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-I /home/liu/android-ndk-r19c/sysroot/usr/include/arm-linux-androideabi' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-isysroot /home/liu/android-ndk-r19c/sysroot' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-I /root/.local/share/python-for-android/build/python-installs/unnamed_dist_5/include/python3.7' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-I numpy/core/src/private' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-I numpy/core/src' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-I numpy/core' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-I numpy/core/src/npymath' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-I numpy/core/src/multiarray' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-I numpy/core/src/umath' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-I numpy/core/src/npysort' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-I /root/.local/share/python-for-android/build/other_builds/hostpython3/desktop/hostpython3/Include' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-I /root/.local/share/python-for-android/build/other_builds/hostpython3/desktop/hostpython3/native-build' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-isystem /home/liu/android-ndk-r19c/sysroot/usr/include/arm-linux-androideabi' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-I /home/liu/android-ndk-r19c/sysroot/usr/include/arm-linux-androideabi' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-isysroot /home/liu/android-ndk-r19c/sysroot' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-I /root/.local/share/python-for-android/build/python-installs/unnamed_dist_5/include/python3.7' [-Wunused-command-line-argument]
_configtest.c:1:5: warning: incompatible redeclaration of library function 'exp' [-Wincompatible-library-redeclaration]
int exp (void);
    ^
_configtest.c:1:5: note: 'exp' is a builtin with type 'double (double)'
1 warning generated.
/usr/bin/ccache /home/liu/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -DANDROID -fomit-frame-pointer -D__ANDROID_API__=27 -target armv7a-none-linux-androideabi -gcc-toolchain /home/liu/android-ndk-r19c/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64 -isystem /home/liu/android-ndk-r19c/sysroot/usr/include/arm-linux-androideabi -I/home/liu/android-ndk-r19c/sysroot/usr/include/arm-linux-androideabi -isysroot /home/liu/android-ndk-r19c/sysroot -I/root/.local/share/python-for-android/build/python-installs/unnamed_dist_11/include/python3.7 -L/home/liu/android-ndk-r19c/platforms/android-27/arch-arm/usr/lib --sysroot=/home/liu/android-ndk-r19c/platforms/android-27/arch-arm -I/root/.local/share/python-for-android/build/other_builds/python3-libffi-openssl-sqlite3/armeabi-v7a__ndk_target_27/python3/Include -L/root/.local/share/python-for-android/build/other_builds/python3-libffi-openssl-sqlite3/armeabi-v7a__ndk_target_27/python3/android-build -lpython3.7m _configtest.o -o _configtest
_configtest.c:6: error: undefined reference to 'exp'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
_configtest.c:6: error: undefined reference to 'exp'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
failure.
removing: _configtest.c _configtest.o _configtest.o.d
C compiler: /usr/bin/ccache /home/liu/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -DANDROID -fomit-frame-pointer -D__ANDROID_API__=27 -target armv7a-none-linux-androideabi -gcc-toolchain /home/liu/android-ndk-r19c/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64 -isystem /home/liu/android-ndk-r19c/sysroot/usr/include/arm-linux-androideabi -I/home/liu/android-ndk-r19c/sysroot/usr/include/arm-linux-androideabi -isysroot /home/liu/android-ndk-r19c/sysroot -I/root/.local/share/python-for-android/build/python-installs/unnamed_dist_11/include/python3.7 -L/home/liu/android-ndk-r19c/platforms/android-27/arch-arm/usr/lib --sysroot=/home/liu/android-ndk-r19c/platforms/android-27/arch-arm -I/root/.local/share/python-for-android/build/other_builds/python3-libffi-openssl-sqlite3/armeabi-v7a__ndk_target_27/python3/Include -L/root/.local/share/python-for-android/build/other_builds/python3-libffi-openssl-sqlite3/armeabi-v7a__ndk_target_27/python3/android-build -lpython3.7m -DNDEBUG -g -fwrapv -O3 -Wall -DANDROID -fomit-frame-pointer -D__ANDROID_API__=27 -target armv7a-none-linux-androideabi -gcc-toolchain /home/liu/android-ndk-r19c/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64 -isystem /home/liu/android-ndk-r19c/sysroot/usr/include/arm-linux-androideabi -I/home/liu/android-ndk-r19c/sysroot/usr/include/arm-linux-androideabi -isysroot /home/liu/android-ndk-r19c/sysroot -I/root/.local/share/python-for-android/build/python-installs/unnamed_dist_11/include/python3.7 -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -mthumb -I/root/.local/share/python-for-android/build/other_builds/python3-libffi-openssl-sqlite3/armeabi-v7a__ndk_target_27/python3/Include -fPIC

compile options: '-Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/root/.local/share/python-for-android/build/other_builds/hostpython3/desktop/hostpython3/Include -I/root/.local/share/python-for-android/build/other_builds/hostpython3/desktop/hostpython3/native-build -c -DANDROID -fomit-frame-pointer -D__ANDROID_API__=27 -target armv7a-none-linux-androideabi -gcc-toolchain /home/liu/android-ndk-r19c/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64 -isystem /home/liu/android-ndk-r19c/sysroot/usr/include/arm-linux-androideabi -I/home/liu/android-ndk-r19c/sysroot/usr/include/arm-linux-androideabi -isysroot /home/liu/android-ndk-r19c/sysroot -I/root/.local/share/python-for-android/build/python-installs/unnamed_dist_11/include/python3.7 -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -mthumb -I/root/.local/share/python-for-android/build/other_builds/python3-libffi-openssl-sqlite3/armeabi-v7a__ndk_target_27/python3/Include'
ccache: _configtest.c
clang: warning: -lpython3.7m: 'linker' input unused [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-L/home/liu/android-ndk-r19c/platforms/android-27/arch-arm/usr/lib' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-L/root/.local/share/python-for-android/build/other_builds/python3-libffi-openssl-sqlite3/armeabi-v7a__ndk_target_27/python3/android-build' [-Wunused-command-line-argument]
clang: warning: -lpython3.7m: 'linker' input unused [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-isystem /home/liu/android-ndk-r19c/sysroot/usr/include/arm-linux-androideabi' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-I /home/liu/android-ndk-r19c/sysroot/usr/include/arm-linux-androideabi' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-isysroot /home/liu/android-ndk-r19c/sysroot' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-I /root/.local/share/python-for-android/build/python-installs/unnamed_dist_5/include/python3.7' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-L/home/liu/android-ndk-r19c/platforms/android-27/arch-arm/usr/lib' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-I /root/.local/share/python-for-android/build/other_builds/python3-libffi-openssl-sqlite3/armeabi-v7a__ndk_target_27/python3/Include' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-L/root/.local/share/python-for-android/build/other_builds/python3-libffi-openssl-sqlite3/armeabi-v7a__ndk_target_27/python3/android-build' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-isystem /home/liu/android-ndk-r19c/sysroot/usr/include/arm-linux-androideabi' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-I /home/liu/android-ndk-r19c/sysroot/usr/include/arm-linux-androideabi' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-isysroot /home/liu/android-ndk-r19c/sysroot' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-I /root/.local/share/python-for-android/build/python-installs/unnamed_dist_5/include/python3.7' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-I numpy/core/src/private' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-I numpy/core/src' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-I numpy/core' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-I numpy/core/src/npymath' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-I numpy/core/src/multiarray' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-I numpy/core/src/umath' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-I numpy/core/src/npysort' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-I /root/.local/share/python-for-android/build/other_builds/hostpython3/desktop/hostpython3/Include' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-I /root/.local/share/python-for-android/build/other_builds/hostpython3/desktop/hostpython3/native-build' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-isystem /home/liu/android-ndk-r19c/sysroot/usr/include/arm-linux-androideabi' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-I /home/liu/android-ndk-r19c/sysroot/usr/include/arm-linux-androideabi' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-isysroot /home/liu/android-ndk-r19c/sysroot' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-I /root/.local/share/python-for-android/build/python-installs/unnamed_dist_5/include/python3.7' [-Wunused-command-line-argument]
_configtest.c:1:5: warning: incompatible redeclaration of library function 'exp' [-Wincompatible-library-redeclaration]
int exp (void);
    ^
_configtest.c:1:5: note: 'exp' is a builtin with type 'double (double)'
1 warning generated.
/usr/bin/ccache /home/liu/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -DANDROID -fomit-frame-pointer -D__ANDROID_API__=27 -target armv7a-none-linux-androideabi -gcc-toolchain /home/liu/android-ndk-r19c/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64 -isystem /home/liu/android-ndk-r19c/sysroot/usr/include/arm-linux-androideabi -I/home/liu/android-ndk-r19c/sysroot/usr/include/arm-linux-androideabi -isysroot /home/liu/android-ndk-r19c/sysroot -I/root/.local/share/python-for-android/build/python-installs/unnamed_dist_11/include/python3.7 -L/home/liu/android-ndk-r19c/platforms/android-27/arch-arm/usr/lib --sysroot=/home/liu/android-ndk-r19c/platforms/android-27/arch-arm -I/root/.local/share/python-for-android/build/other_builds/python3-libffi-openssl-sqlite3/armeabi-v7a__ndk_target_27/python3/Include -L/root/.local/share/python-for-android/build/other_builds/python3-libffi-openssl-sqlite3/armeabi-v7a__ndk_target_27/python3/android-build -lpython3.7m _configtest.o -lm -o _configtest
success!
removing: _configtest.c _configtest.o _configtest.o.d _configtest
  adding 'build/src.linux-x86_64-3.7/numpy/core/src/npymath' to include_dirs.
None - nothing done with h_files = ['build/src.linux-x86_64-3.7/numpy/core/src/npymath/npy_math_internal.h']
building library "npysort" sources
  adding 'build/src.linux-x86_64-3.7/numpy/core/src/private' to include_dirs.
None - nothing done with h_files = ['build/src.linux-x86_64-3.7/numpy/core/src/private/npy_partition.h', 'build/src.linux-x86_64-3.7/numpy/core/src/private/npy_binsearch.h']
building extension "numpy.core._dummy" sources
Generating build/src.linux-x86_64-3.7/numpy/core/include/numpy/config.h
C compiler: /usr/bin/ccache /home/liu/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -DANDROID -fomit-frame-pointer -D__ANDROID_API__=27 -target armv7a-none-linux-androideabi -gcc-toolchain /home/liu/android-ndk-r19c/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64 -isystem /home/liu/android-ndk-r19c/sysroot/usr/include/arm-linux-androideabi -I/home/liu/android-ndk-r19c/sysroot/usr/include/arm-linux-androideabi -isysroot /home/liu/android-ndk-r19c/sysroot -I/root/.local/share/python-for-android/build/python-installs/unnamed_dist_11/include/python3.7 -L/home/liu/android-ndk-r19c/platforms/android-27/arch-arm/usr/lib --sysroot=/home/liu/android-ndk-r19c/platforms/android-27/arch-arm -I/root/.local/share/python-for-android/build/other_builds/python3-libffi-openssl-sqlite3/armeabi-v7a__ndk_target_27/python3/Include -L/root/.local/share/python-for-android/build/other_builds/python3-libffi-openssl-sqlite3/armeabi-v7a__ndk_target_27/python3/android-build -lpython3.7m -DNDEBUG -g -fwrapv -O3 -Wall -DANDROID -fomit-frame-pointer -D__ANDROID_API__=27 -target armv7a-none-linux-androideabi -gcc-toolchain /home/liu/android-ndk-r19c/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64 -isystem /home/liu/android-ndk-r19c/sysroot/usr/include/arm-linux-androideabi -I/home/liu/android-ndk-r19c/sysroot/usr/include/arm-linux-androideabi -isysroot /home/liu/android-ndk-r19c/sysroot -I/root/.local/share/python-for-android/build/python-installs/unnamed_dist_11/include/python3.7 -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -mthumb -I/root/.local/share/python-for-android/build/other_builds/python3-libffi-openssl-sqlite3/armeabi-v7a__ndk_target_27/python3/Include -fPIC

compile options: '-Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/root/.local/share/python-for-android/build/other_builds/hostpython3/desktop/hostpython3/Include -I/root/.local/share/python-for-android/build/other_builds/hostpython3/desktop/hostpython3/native-build -c -DANDROID -fomit-frame-pointer -D__ANDROID_API__=27 -target armv7a-none-linux-androideabi -gcc-toolchain /home/liu/android-ndk-r19c/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64 -isystem /home/liu/android-ndk-r19c/sysroot/usr/include/arm-linux-androideabi -I/home/liu/android-ndk-r19c/sysroot/usr/include/arm-linux-androideabi -isysroot /home/liu/android-ndk-r19c/sysroot -I/root/.local/share/python-for-android/build/python-installs/unnamed_dist_11/include/python3.7 -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -mthumb -I/root/.local/share/python-for-android/build/other_builds/python3-libffi-openssl-sqlite3/armeabi-v7a__ndk_target_27/python3/Include'
ccache: _configtest.c
clang: warning: -lpython3.7m: 'linker' input unused [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-L/home/liu/android-ndk-r19c/platforms/android-27/arch-arm/usr/lib' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-L/root/.local/share/python-for-android/build/other_builds/python3-libffi-openssl-sqlite3/armeabi-v7a__ndk_target_27/python3/android-build' [-Wunused-command-line-argument]
In file included from _configtest.c:1:
/root/.local/share/python-for-android/build/other_builds/python3-libffi-openssl-sqlite3/armeabi-v7a__ndk_target_27/python3/Include/Python.h:25:10: fatal error: 'stdio.h' file not found
#include <stdio.h>
         ^~~~~~~~~
1 error generated.
clang: warning: -lpython3.7m: 'linker' input unused [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-L/home/liu/android-ndk-r19c/platforms/android-27/arch-arm/usr/lib' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-L/root/.local/share/python-for-android/build/other_builds/python3-libffi-openssl-sqlite3/armeabi-v7a__ndk_target_27/python3/android-build' [-Wunused-command-line-argument]
In file included from _configtest.c:1:
/root/.local/share/python-for-android/build/other_builds/python3-libffi-openssl-sqlite3/armeabi-v7a__ndk_target_27/python3/Include/Python.h:25:10: fatal error: 'stdio.h' file not found
#include <stdio.h>
         ^~~~~~~~~
1 error generated.
failure.
removing: _configtest.c _configtest.o
Traceback (most recent call last):
  File "setup.py", line 402, in <module>
    setup_package()
  File "setup.py", line 394, in setup_package
    setup(**metadata)
  File "/root/.local/share/python-for-android/build/other_builds/numpy-python3/armeabi-v7a__ndk_target_27/numpy/numpy/distutils/core.py", line 169, in setup
    return old_setup(**new_attr)
  File "/root/.local/share/python-for-android/build/other_builds/hostpython3/desktop/hostpython3/Lib/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/root/.local/share/python-for-android/build/other_builds/hostpython3/desktop/hostpython3/Lib/distutils/dist.py", line 966, in run_commands
    self.run_command(cmd)
  File "/root/.local/share/python-for-android/build/other_builds/hostpython3/desktop/hostpython3/Lib/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "/root/.local/share/python-for-android/build/other_builds/numpy-python3/armeabi-v7a__ndk_target_27/numpy/numpy/distutils/command/build_ext.py", line 80, in run
    self.run_command('build_src')
  File "/root/.local/share/python-for-android/build/other_builds/hostpython3/desktop/hostpython3/Lib/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/root/.local/share/python-for-android/build/other_builds/hostpython3/desktop/hostpython3/Lib/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "/root/.local/share/python-for-android/build/other_builds/numpy-python3/armeabi-v7a__ndk_target_27/numpy/numpy/distutils/command/build_src.py", line 148, in run
    self.build_sources()
  File "/root/.local/share/python-for-android/build/other_builds/numpy-python3/armeabi-v7a__ndk_target_27/numpy/numpy/distutils/command/build_src.py", line 165, in build_sources
    self.build_extension_sources(ext)
  File "/root/.local/share/python-for-android/build/other_builds/numpy-python3/armeabi-v7a__ndk_target_27/numpy/numpy/distutils/command/build_src.py", line 324, in build_extension_sources
    sources = self.generate_sources(sources, ext)
  File "/root/.local/share/python-for-android/build/other_builds/numpy-python3/armeabi-v7a__ndk_target_27/numpy/numpy/distutils/command/build_src.py", line 377, in generate_sources
    source = func(extension, build_dir)
  File "numpy/core/setup.py", line 422, in generate_config_h
    moredefs, ignored = cocache.check_types(config_cmd, ext, build_dir)
  File "numpy/core/setup.py", line 48, in check_types
    out = check_types(*a, **kw)
  File "numpy/core/setup.py", line 281, in check_types
    "install {0}-dev|{0}-devel.".format(python))
SystemError: Cannot compile 'Python.h'. Perhaps you need to install python-dev|python-devel.
Liujiangy1 commented 5 years ago

I replaced numpy with pillow, and the same problem will occur. I changed ndk19 to ndk17, the same problem. I guess, is the reason I use clang

imijanur commented 5 years ago

I am also facing same problem . I am using Ubuntu 17.04 TLS

here is my logcat

==========================================================

db logcat *:S python:D'

Cwd /home/imijanur/.buildozer/android/platform

--------- beginning of crash --------- beginning of system --------- beginning of main 07-17 14:27:57.833 25394 25647 I python : Initializing Python for Android 07-17 14:27:57.833 25394 25647 I python : Setting additional env vars from p4a_env_vars.txt 07-17 14:27:57.833 25394 25647 I python : Changing directory to the one provided by ANDROID_ARGUMENT 07-17 14:27:57.833 25394 25647 I python : /data/user/0/org.mytest.mytestapp/files/app 07-17 14:27:57.840 25394 25647 I python : Preparing to initialize python 07-17 14:27:57.840 25394 25647 I python : _python_bundle dir exists 07-17 14:27:57.840 25394 25647 I python : calculated paths to be... 07-17 14:27:57.840 25394 25647 I python : /data/user/0/org.mytest.mytestapp/files/app/_python_bundle/stdlib.zip:/data/user/0/org.mytest.mytestapp/files/app/_python_bundle/modules 07-17 14:27:57.853 25394 25647 I python : set wchar paths... 07-17 14:27:57.939 25394 25647 I python : Initialized python 07-17 14:27:57.939 25394 25647 I python : AND: Init threads 07-17 14:27:57.941 25394 25647 I python : testing python print redirection 07-17 14:27:57.943 25394 25647 I python : Android path ['.', '/data/user/0/org.mytest.mytestapp/files/app/_python_bundle/stdlib.zip', '/data/user/0/org.mytest.mytestapp/files/app/_python_bundle/modules', '/data/user/0/org.mytest.mytestapp/files/app/_python_bundle/site-packages'] 07-17 14:27:57.944 25394 25647 I python : os.environ is environ({'PATH': '/sbin:/system/sbin:/system/bin:/system/xbin:/odm/bin:/vendor/bin:/vendor/xbin', 'DOWNLOAD_CACHE': '/data/cache', 'ANDROID_BOOTLOGO': '1', 'ANDROID_ROOT': '/system', 'ANDROID_ASSETS': '/system/app', 'ANDROID_DATA': '/data', 'ANDROID_STORAGE': '/storage', 'EXTERNAL_STORAGE': '/sdcard', 'ASEC_MOUNTPOINT': '/mnt/asec', 'BOOTCLASSPATH': '/system/framework/qtiNetworkLib.jar:/system/framework/qcom.fmradio.jar:/system/framework/com.qualcomm.qti.camera.jar:/system/framework/QPerformance.jar:/system/framework/UxPerformance.jar:/system/framework/core-oj.jar:/system/framework/core-libart.jar:/system/framework/conscrypt.jar:/system/framework/okhttp.jar:/system/framework/bouncycastle.jar:/system/framework/apache-xml.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/telephony-common.jar:/system/framework/voip-common.jar:/system/framework/ims-common.jar:/system/framework/android.hidl.base-V1.0-java.jar:/system/framework/android.hidl.manager-V1.0-java.jar:/system/framework/framework-oahl-backward-compatibility.jar:/system/framework/android.test.base.jar:/system/framework/tcmiface.jar:/system/framework/WfdCommon.jar:/system/framework/oem-services.jar:/system/framework/telephony-ext.jar:/system/app/miui/miui.apk:/system/app/miuisystem/miuisystem.apk', 'SYSTEMSERVERCLASSPATH': '/system/framework/services.jar:/system/framework/ethernet-service.jar:/system/framework/wifi-service.jar:/system/framework/com.android.location.provider.jar', 'ANDROID_SOCKET_zygote_secondary': '13', 'ANDROID_ENTRYPOINT': 'main.pyc', 'ANDROID_ARGUMENT': '/data/user/0/org.mytest.mytestapp/files/app', 'ANDROID_APP_PATH': '/data/user/0/org.mytest.mytestapp/files/app', 'ANDROID_PRIVATE': '/data/user/0/org.mytest.mytestapp/files', 'ANDROID_UNPACK': '/data/user/0/org.mytest.mytestapp/files/app', 'PYTHONHOME': '/data/user/0/org.mytest.mytestapp/files/app', 'PYTHONPATH': '/data/user/0/org.mytest.mytestapp/files/app:/data/user/0/org.mytest.mytestapp/files/app/lib', 'PYTHONOPTIMIZE': '2', 'P4A_BOOTSTRAP': 'SDL2', 'PYTHON_NAME': 'python', 'P4A_IS_WINDOWED': 'True', 'P4A_ORIENTATION': 'portrait', 'P4A_NUMERIC_VERSION': 'None', 'P4A_MINSDK': '21', 'LC_CTYPE': 'C.UTF-8'}) 07-17 14:27:57.944 25394 25647 I python : Android kivy bootstrap done. name is main 07-17 14:27:57.944 25394 25647 I python : AND: Ran string 07-17 14:27:57.944 25394 25647 I python : Run user program, change dir and execute entrypoint 07-17 14:27:58.241 25394 25647 I python : [WARNING] [Config ] Older configuration version detected (0 instead of 21) 07-17 14:27:58.242 25394 25647 I python : [WARNING] [Config ] Upgrading configuration in progress. 07-17 14:27:58.271 25394 25647 I python : [INFO ] [Logger ] Record log in /data/user/0/org.mytest.mytestapp/files/app/.kivy/logs/kivy_19-07-17_0.txt 07-17 14:27:58.272 25394 25647 I python : [INFO ] [Kivy ] v1.11.0 07-17 14:27:58.273 25394 25647 I python : [INFO ] [Kivy ] Installed at "/data/user/0/org.mytest.mytestapp/files/app/_python_bundle/site-packages/kivy/init.pyc" 07-17 14:27:58.273 25394 25647 I python : [INFO ] [Python ] v3.7.1 (default, Jul 17 2019, 13:17:29) 07-17 14:27:58.273 25394 25647 I python : [Clang 6.0.2 (https://android.googlesource.com/toolchain/clang 183abd29fc496f55 07-17 14:27:58.275 25394 25647 I python : [INFO ] [Python ] Interpreter at "android_python" 07-17 14:28:00.103 25394 25647 I python : [INFO ] [Factory ] 184 symbols loaded 07-17 14:28:00.956 25394 25647 I python : [INFO ] [Image ] Providers: img_tex, img_dds, img_sdl2, img_gif (img_pil, img_ffpyplayer ignored) 07-17 14:28:01.086 25394 25647 I python : [INFO ] [Text ] Provider: sdl2 07-17 14:28:02.075 25394 25647 I python : Traceback (most recent call last): 07-17 14:28:02.076 25394 25647 I python : File "/home/imijanur/Desktop/kivy/mt/.buildozer/android/app/main.py", line 18, in 07-17 14:28:02.078 25394 25647 I python : File "/home/imijanur/Desktop/kivy/mt/.buildozer/android/platform/build/build/python-installs/mytestapp/nsepy/init.py", line 1, in 07-17 14:28:02.079 25394 25647 I python : File "/home/imijanur/Desktop/kivy/mt/.buildozer/android/platform/build/build/python-installs/mytestapp/nsepy/history.py", line 13, in 07-17 14:28:02.080 25394 25647 I python : ModuleNotFoundError: No module named 'bs4' 07-17 14:28:02.080 25394 25647 I python : Python for android ended. 07-17 14:32:25.323 29025 29384 I python : Initializing Python for Android 07-17 14:32:25.323 29025 29384 I python : Setting additional env vars from p4a_env_vars.txt 07-17 14:32:25.323 29025 29384 I python : Changing directory to the one provided by ANDROID_ARGUMENT 07-17 14:32:25.324 29025 29384 I python : /data/user/0/org.mytest.mytestapp/files/app 07-17 14:32:25.327 29025 29384 I python : Preparing to initialize python 07-17 14:32:25.327 29025 29384 I python : _python_bundle dir exists 07-17 14:32:25.334 29025 29384 I python : calculated paths to be... 07-17 14:32:25.334 29025 29384 I python : /data/user/0/org.mytest.mytestapp/files/app/_python_bundle/stdlib.zip:/data/user/0/org.mytest.mytestapp/files/app/_python_bundle/modules 07-17 14:32:25.341 29025 29384 I python : set wchar paths... 07-17 14:32:25.425 29025 29384 I python : Initialized python 07-17 14:32:25.425 29025 29384 I python : AND: Init threads 07-17 14:32:25.427 29025 29384 I python : testing python print redirection 07-17 14:32:25.429 29025 29384 I python : Android path ['.', '/data/user/0/org.mytest.mytestapp/files/app/_python_bundle/stdlib.zip', '/data/user/0/org.mytest.mytestapp/files/app/_python_bundle/modules', '/data/user/0/org.mytest.mytestapp/files/app/_python_bundle/site-packages'] 07-17 14:32:25.430 29025 29384 I python : os.environ is environ({'PATH': '/sbin:/system/sbin:/system/bin:/system/xbin:/odm/bin:/vendor/bin:/vendor/xbin', 'DOWNLOAD_CACHE': '/data/cache', 'ANDROID_BOOTLOGO': '1', 'ANDROID_ROOT': '/system', 'ANDROID_ASSETS': '/system/app', 'ANDROID_DATA': '/data', 'ANDROID_STORAGE': '/storage', 'EXTERNAL_STORAGE': '/sdcard', 'ASEC_MOUNTPOINT': '/mnt/asec', 'BOOTCLASSPATH': '/system/framework/qtiNetworkLib.jar:/system/framework/qcom.fmradio.jar:/system/framework/com.qualcomm.qti.camera.jar:/system/framework/QPerformance.jar:/system/framework/UxPerformance.jar:/system/framework/core-oj.jar:/system/framework/core-libart.jar:/system/framework/conscrypt.jar:/system/framework/okhttp.jar:/system/framework/bouncycastle.jar:/system/framework/apache-xml.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/telephony-common.jar:/system/framework/voip-common.jar:/system/framework/ims-common.jar:/system/framework/android.hidl.base-V1.0-java.jar:/system/framework/android.hidl.manager-V1.0-java.jar:/system/framework/framework-oahl-backward-compatibility.jar:/system/framework/android.test.base.jar:/system/framework/tcmiface.jar:/system/framework/WfdCommon.jar:/system/framework/oem-services.jar:/system/framework/telephony-ext.jar:/system/app/miui/miui.apk:/system/app/miuisystem/miuisystem.apk', 'SYSTEMSERVERCLASSPATH': '/system/framework/services.jar:/system/framework/ethernet-service.jar:/system/framework/wifi-service.jar:/system/framework/com.android.location.provider.jar', 'ANDROID_SOCKET_zygote_secondary': '13', 'ANDROID_ENTRYPOINT': 'main.pyc', 'ANDROID_ARGUMENT': '/data/user/0/org.mytest.mytestapp/files/app', 'ANDROID_APP_PATH': '/data/user/0/org.mytest.mytestapp/files/app', 'ANDROID_PRIVATE': '/data/user/0/org.mytest.mytestapp/files', 'ANDROID_UNPACK': '/data/user/0/org.mytest.mytestapp/files/app', 'PYTHONHOME': '/data/user/0/org.mytest.mytestapp/files/app', 'PYTHONPATH': '/data/user/0/org.mytest.mytestapp/files/app:/data/user/0/org.mytest.mytestapp/files/app/lib', 'PYTHONOPTIMIZE': '2', 'P4A_BOOTSTRAP': 'SDL2', 'PYTHON_NAME': 'python', 'P4A_IS_WINDOWED': 'True', 'P4A_ORIENTATION': 'portrait', 'P4A_NUMERIC_VERSION': 'None', 'P4A_MINSDK': '21', 'LC_CTYPE': 'C.UTF-8'}) 07-17 14:32:25.430 29025 29384 I python : Android kivy bootstrap done. name is main 07-17 14:32:25.430 29025 29384 I python : AND: Ran string 07-17 14:32:25.430 29025 29384 I python : Run user program, change dir and execute entrypoint 07-17 14:32:25.719 29025 29384 I python : [WARNING] [Config ] Older configuration version detected (0 instead of 21) 07-17 14:32:25.720 29025 29384 I python : [WARNING] [Config ] Upgrading configuration in progress. 07-17 14:32:25.730 29025 29384 I python : [INFO ] [Logger ] Record log in /data/user/0/org.mytest.mytestapp/files/app/.kivy/logs/kivy_19-07-17_0.txt 07-17 14:32:25.730 29025 29384 I python : [INFO ] [Kivy ] v1.11.0 07-17 14:32:25.731 29025 29384 I python : [INFO ] [Kivy ] Installed at "/data/user/0/org.mytest.mytestapp/files/app/_python_bundle/site-packages/kivy/init.pyc" 07-17 14:32:25.731 29025 29384 I python : [INFO ] [Python ] v3.7.1 (default, Jul 17 2019, 13:17:29) 07-17 14:32:25.732 29025 29384 I python : [Clang 6.0.2 (https://android.googlesource.com/toolchain/clang 183abd29fc496f55 07-17 14:32:25.732 29025 29384 I python : [INFO ] [Python ] Interpreter at "android_python" 07-17 14:32:27.518 29025 29384 I python : [INFO ] [Factory ] 184 symbols loaded 07-17 14:32:28.419 29025 29384 I python : [INFO ] [Image ] Providers: img_tex, img_dds, img_sdl2, img_gif (img_pil, img_ffpyplayer ignored) 07-17 14:32:28.563 29025 29384 I python : [INFO ] [Text ] Provider: sdl2 07-17 14:32:29.554 29025 29384 I python : /data/user/0/org.mytest.mytestapp/files/app/_python_bundle/site-packages/bs4/element.py:16: UserWarning: The soupsieve package is not installed. CSS selectors cannot be used. 07-17 14:32:29.628 29025 29384 I python : Traceback (most recent call last): 07-17 14:32:29.628 29025 29384 I python : File "/home/imijanur/Desktop/kivy/mt/.buildozer/android/app/main.py", line 18, in 07-17 14:32:29.629 29025 29384 I python : File "/home/imijanur/Desktop/kivy/mt/.buildozer/android/platform/build/build/python-installs/mytestapp/nsepy/init.py", line 1, in 07-17 14:32:29.630 29025 29384 I python : File "/home/imijanur/Desktop/kivy/mt/.buildozer/android/platform/build/build/python-installs/mytestapp/nsepy/history.py", line 14, in 07-17 14:32:29.631 29025 29384 I python : ModuleNotFoundError: No module named 'pandas' 07-17 14:32:29.631 29025 29384 I python : Python for android ended. 07-17 14:36:25.649 31317 31648 I python : Initializing Python for Android 07-17 14:36:25.649 31317 31648 I python : Setting additional env vars from p4a_env_vars.txt 07-17 14:36:25.651 31317 31648 I python : Changing directory to the one provided by ANDROID_ARGUMENT 07-17 14:36:25.651 31317 31648 I python : /data/user/0/org.mytest.mytestapp/files/app 07-17 14:36:25.662 31317 31648 I python : Preparing to initialize python 07-17 14:36:25.662 31317 31648 I python : _python_bundle dir exists 07-17 14:36:25.662 31317 31648 I python : calculated paths to be... 07-17 14:36:25.662 31317 31648 I python : /data/user/0/org.mytest.mytestapp/files/app/_python_bundle/stdlib.zip:/data/user/0/org.mytest.mytestapp/files/app/_python_bundle/modules 07-17 14:36:25.663 31317 31648 I python : set wchar paths... 07-17 14:36:25.766 31317 31648 I python : Initialized python 07-17 14:36:25.766 31317 31648 I python : AND: Init threads 07-17 14:36:25.768 31317 31648 I python : testing python print redirection 07-17 14:36:25.770 31317 31648 I python : Android path ['.', '/data/user/0/org.mytest.mytestapp/files/app/_python_bundle/stdlib.zip', '/data/user/0/org.mytest.mytestapp/files/app/_python_bundle/modules', '/data/user/0/org.mytest.mytestapp/files/app/_python_bundle/site-packages'] 07-17 14:36:25.771 31317 31648 I python : os.environ is environ({'PATH': '/sbin:/system/sbin:/system/bin:/system/xbin:/odm/bin:/vendor/bin:/vendor/xbin', 'DOWNLOAD_CACHE': '/data/cache', 'ANDROID_BOOTLOGO': '1', 'ANDROID_ROOT': '/system', 'ANDROID_ASSETS': '/system/app', 'ANDROID_DATA': '/data', 'ANDROID_STORAGE': '/storage', 'EXTERNAL_STORAGE': '/sdcard', 'ASEC_MOUNTPOINT': '/mnt/asec', 'BOOTCLASSPATH': '/system/framework/qtiNetworkLib.jar:/system/framework/qcom.fmradio.jar:/system/framework/com.qualcomm.qti.camera.jar:/system/framework/QPerformance.jar:/system/framework/UxPerformance.jar:/system/framework/core-oj.jar:/system/framework/core-libart.jar:/system/framework/conscrypt.jar:/system/framework/okhttp.jar:/system/framework/bouncycastle.jar:/system/framework/apache-xml.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/telephony-common.jar:/system/framework/voip-common.jar:/system/framework/ims-common.jar:/system/framework/android.hidl.base-V1.0-java.jar:/system/framework/android.hidl.manager-V1.0-java.jar:/system/framework/framework-oahl-backward-compatibility.jar:/system/framework/android.test.base.jar:/system/framework/tcmiface.jar:/system/framework/WfdCommon.jar:/system/framework/oem-services.jar:/system/framework/telephony-ext.jar:/system/app/miui/miui.apk:/system/app/miuisystem/miuisystem.apk', 'SYSTEMSERVERCLASSPATH': '/system/framework/services.jar:/system/framework/ethernet-service.jar:/system/framework/wifi-service.jar:/system/framework/com.android.location.provider.jar', 'ANDROID_SOCKET_zygote_secondary': '13', 'ANDROID_ENTRYPOINT': 'main.pyc', 'ANDROID_ARGUMENT': '/data/user/0/org.mytest.mytestapp/files/app', 'ANDROID_APP_PATH': '/data/user/0/org.mytest.mytestapp/files/app', 'ANDROID_PRIVATE': '/data/user/0/org.mytest.mytestapp/files', 'ANDROID_UNPACK': '/data/user/0/org.mytest.mytestapp/files/app', 'PYTHONHOME': '/data/user/0/org.mytest.mytestapp/files/app', 'PYTHONPATH': '/data/user/0/org.mytest.mytestapp/files/app:/data/user/0/org.mytest.mytestapp/files/app/lib', 'PYTHONOPTIMIZE': '2', 'P4A_BOOTSTRAP': 'SDL2', 'PYTHON_NAME': 'python', 'P4A_IS_WINDOWED': 'True', 'P4A_ORIENTATION': 'portrait', 'P4A_NUMERIC_VERSION': 'None', 'P4A_MINSDK': '21', 'LC_CTYPE': 'C.UTF-8'}) 07-17 14:36:25.771 31317 31648 I python : Android kivy bootstrap done. name is main 07-17 14:36:25.771 31317 31648 I python : AND: Ran string 07-17 14:36:25.771 31317 31648 I python : Run user program, change dir and execute entrypoint 07-17 14:36:26.057 31317 31648 I python : [WARNING] [Config ] Older configuration version detected (0 instead of 21) 07-17 14:36:26.057 31317 31648 I python : [WARNING] [Config ] Upgrading configuration in progress. 07-17 14:36:26.075 31317 31648 I python : [INFO ] [Logger ] Record log in /data/user/0/org.mytest.mytestapp/files/app/.kivy/logs/kivy_19-07-17_0.txt 07-17 14:36:26.075 31317 31648 I python : [INFO ] [Kivy ] v1.11.0 07-17 14:36:26.076 31317 31648 I python : [INFO ] [Kivy ] Installed at "/data/user/0/org.mytest.mytestapp/files/app/_python_bundle/site-packages/kivy/init.pyc" 07-17 14:36:26.076 31317 31648 I python : [INFO ] [Python ] v3.7.1 (default, Jul 17 2019, 13:17:29) 07-17 14:36:26.076 31317 31648 I python : [Clang 6.0.2 (https://android.googlesource.com/toolchain/clang 183abd29fc496f55 07-17 14:36:26.077 31317 31648 I python : [INFO ] [Python ] Interpreter at "android_python" 07-17 14:36:27.751 31317 31648 I python : [INFO ] [Factory ] 184 symbols loaded 07-17 14:36:28.570 31317 31648 I python : [INFO ] [Image ] Providers: img_tex, img_dds, img_sdl2, img_gif (img_pil, img_ffpyplayer ignored) 07-17 14:36:28.687 31317 31648 I python : [INFO ] [Text ] Provider: sdl2 07-17 14:36:29.828 31317 31648 I python : /data/user/0/org.mytest.mytestapp/files/app/_python_bundle/site-packages/bs4/element.py:16: UserWarning: The soupsieve package is not installed. CSS selectors cannot be used. 07-17 14:36:29.900 31317 31648 I python : Traceback (most recent call last): 07-17 14:36:29.900 31317 31648 I python : File "/home/imijanur/Desktop/kivy/mt/.buildozer/android/app/main.py", line 18, in 07-17 14:36:29.901 31317 31648 I python : File "/home/imijanur/Desktop/kivy/mt/.buildozer/android/platform/build/build/python-installs/mytestapp/nsepy/init.py", line 1, in 07-17 14:36:29.902 31317 31648 I python : File "/home/imijanur/Desktop/kivy/mt/.buildozer/android/platform/build/build/python-installs/mytestapp/nsepy/history.py", line 14, in 07-17 14:36:29.903 31317 31648 I python : File "/home/imijanur/Desktop/kivy/mt/.buildozer/android/platform/build/build/python-installs/mytestapp/pandas/init.py", line 19, in 07-17 14:36:29.904 31317 31648 I python : ImportError: Missing required dependencies ['pytz'] 07-17 14:36:29.904 31317 31648 I python : Python for android ended. 07-17 14:39:34.214 32754 1200 I python : Initializing Python for Android 07-17 14:39:34.214 32754 1200 I python : Setting additional env vars from p4a_env_vars.txt 07-17 14:39:34.214 32754 1200 I python : Changing directory to the one provided by ANDROID_ARGUMENT 07-17 14:39:34.214 32754 1200 I python : /data/user/0/org.mytest.mytestapp/files/app 07-17 14:39:34.214 32754 1200 I python : Preparing to initialize python 07-17 14:39:34.214 32754 1200 I python : _python_bundle dir exists 07-17 14:39:34.214 32754 1200 I python : calculated paths to be... 07-17 14:39:34.214 32754 1200 I python : /data/user/0/org.mytest.mytestapp/files/app/_python_bundle/stdlib.zip:/data/user/0/org.mytest.mytestapp/files/app/_python_bundle/modules 07-17 14:39:34.215 32754 1200 I python : set wchar paths... 07-17 14:39:34.335 32754 1200 I python : Initialized python 07-17 14:39:34.335 32754 1200 I python : AND: Init threads 07-17 14:39:34.337 32754 1200 I python : testing python print redirection 07-17 14:39:34.338 32754 1200 I python : Android path ['.', '/data/user/0/org.mytest.mytestapp/files/app/_python_bundle/stdlib.zip', '/data/user/0/org.mytest.mytestapp/files/app/_python_bundle/modules', '/data/user/0/org.mytest.mytestapp/files/app/_python_bundle/site-packages'] 07-17 14:39:34.339 32754 1200 I python : os.environ is environ({'PATH': '/sbin:/system/sbin:/system/bin:/system/xbin:/odm/bin:/vendor/bin:/vendor/xbin', 'DOWNLOAD_CACHE': '/data/cache', 'ANDROID_BOOTLOGO': '1', 'ANDROID_ROOT': '/system', 'ANDROID_ASSETS': '/system/app', 'ANDROID_DATA': '/data', 'ANDROID_STORAGE': '/storage', 'EXTERNAL_STORAGE': '/sdcard', 'ASEC_MOUNTPOINT': '/mnt/asec', 'BOOTCLASSPATH': '/system/framework/qtiNetworkLib.jar:/system/framework/qcom.fmradio.jar:/system/framework/com.qualcomm.qti.camera.jar:/system/framework/QPerformance.jar:/system/framework/UxPerformance.jar:/system/framework/core-oj.jar:/system/framework/core-libart.jar:/system/framework/conscrypt.jar:/system/framework/okhttp.jar:/system/framework/bouncycastle.jar:/system/framework/apache-xml.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/telephony-common.jar:/system/framework/voip-common.jar:/system/framework/ims-common.jar:/system/framework/android.hidl.base-V1.0-java.jar:/system/framework/android.hidl.manager-V1.0-java.jar:/system/framework/framework-oahl-backward-compatibility.jar:/system/framework/android.test.base.jar:/system/framework/tcmiface.jar:/system/framework/WfdCommon.jar:/system/framework/oem-services.jar:/system/framework/telephony-ext.jar:/system/app/miui/miui.apk:/system/app/miuisystem/miuisystem.apk', 'SYSTEMSERVERCLASSPATH': '/system/framework/services.jar:/system/framework/ethernet-service.jar:/system/framework/wifi-service.jar:/system/framework/com.android.location.provider.jar', 'ANDROID_SOCKET_zygote_secondary': '13', 'ANDROID_ENTRYPOINT': 'main.pyc', 'ANDROID_ARGUMENT': '/data/user/0/org.mytest.mytestapp/files/app', 'ANDROID_APP_PATH': '/data/user/0/org.mytest.mytestapp/files/app', 'ANDROID_PRIVATE': '/data/user/0/org.mytest.mytestapp/files', 'ANDROID_UNPACK': '/data/user/0/org.mytest.mytestapp/files/app', 'PYTHONHOME': '/data/user/0/org.mytest.mytestapp/files/app', 'PYTHONPATH': '/data/user/0/org.mytest.mytestapp/files/app:/data/user/0/org.mytest.mytestapp/files/app/lib', 'PYTHONOPTIMIZE': '2', 'P4A_BOOTSTRAP': 'SDL2', 'PYTHON_NAME': 'python', 'P4A_IS_WINDOWED': 'True', 'P4A_ORIENTATION': 'portrait', 'P4A_NUMERIC_VERSION': 'None', 'P4A_MINSDK': '21', 'LC_CTYPE': 'C.UTF-8'}) 07-17 14:39:34.339 32754 1200 I python : Android kivy bootstrap done. name is main 07-17 14:39:34.339 32754 1200 I python : AND: Ran string 07-17 14:39:34.339 32754 1200 I python : Run user program, change dir and execute entrypoint 07-17 14:39:34.619 32754 1200 I python : [WARNING] [Config ] Older configuration version detected (0 instead of 21) 07-17 14:39:34.619 32754 1200 I python : [WARNING] [Config ] Upgrading configuration in progress. 07-17 14:39:34.629 32754 1200 I python : [INFO ] [Logger ] Record log in /data/user/0/org.mytest.mytestapp/files/app/.kivy/logs/kivy_19-07-17_0.txt 07-17 14:39:34.630 32754 1200 I python : [INFO ] [Kivy ] v1.11.0 07-17 14:39:34.630 32754 1200 I python : [INFO ] [Kivy ] Installed at "/data/user/0/org.mytest.mytestapp/files/app/_python_bundle/site-packages/kivy/init.pyc" 07-17 14:39:34.631 32754 1200 I python : [INFO ] [Python ] v3.7.1 (default, Jul 17 2019, 13:17:29) 07-17 14:39:34.631 32754 1200 I python : [Clang 6.0.2 (https://android.googlesource.com/toolchain/clang 183abd29fc496f55 07-17 14:39:34.631 32754 1200 I python : [INFO ] [Python ] Interpreter at "android_python" 07-17 14:39:36.318 32754 1200 I python : [INFO ] [Factory ] 184 symbols loaded 07-17 14:39:37.164 32754 1200 I python : [INFO ] [Image ] Providers: img_tex, img_dds, img_sdl2, img_gif (img_pil, img_ffpyplayer ignored) 07-17 14:39:37.291 32754 1200 I python : [INFO ] [Text ] Provider: sdl2 07-17 14:39:38.819 32754 1200 I python : /data/user/0/org.mytest.mytestapp/files/app/_python_bundle/site-packages/bs4/element.py:16: UserWarning: The soupsieve package is not installed. CSS selectors cannot be used. 07-17 14:39:39.097 32754 1200 I python : Traceback (most recent call last): 07-17 14:39:39.098 32754 1200 I python : File "/home/imijanur/Desktop/kivy/mt/.buildozer/android/platform/build/build/python-installs/mytestapp/pandas/init.py", line 26, in 07-17 14:39:39.099 32754 1200 I python : File "/home/imijanur/Desktop/kivy/mt/.buildozer/android/platform/build/build/python-installs/mytestapp/pandas/_libs/init.py", line 4, in 07-17 14:39:39.100 32754 1200 I python : File "/home/imijanur/Desktop/kivy/mt/.buildozer/android/platform/build/build/python-installs/mytestapp/pandas/_libs/tslibs/init.py", line 4, in 07-17 14:39:39.101 32754 1200 I python : ImportError: dlopen failed: "/data/data/org.mytest.mytestapp/files/app/_python_bundle/site-packages/pandas/_libs/tslibs/conversion.so" is 64-bit instead of 32-bit 07-17 14:39:39.101 32754 1200 I python :
07-17 14:39:39.102 32754 1200 I python : During handling of the above exception, another exception occurred: 07-17 14:39:39.102 32754 1200 I python :
07-17 14:39:39.102 32754 1200 I python : Traceback (most recent call last): 07-17 14:39:39.103 32754 1200 I python : File "/home/imijanur/Desktop/kivy/mt/.buildozer/android/app/main.py", line 18, in 07-17 14:39:39.104 32754 1200 I python : File "/home/imijanur/Desktop/kivy/mt/.buildozer/android/platform/build/build/python-installs/mytestapp/nsepy/init.py", line 1, in 07-17 14:39:39.105 32754 1200 I python : File "/home/imijanur/Desktop/kivy/mt/.buildozer/android/platform/build/build/python-installs/mytestapp/nsepy/history.py", line 14, in 07-17 14:39:39.106 32754 1200 I python : File "/home/imijanur/Desktop/kivy/mt/.buildozer/android/platform/build/build/python-installs/mytestapp/pandas/init.py", line 35, in 07-17 14:39:39.107 32754 1200 I python : ImportError: C extension: dlopen failed: "/data/data/org.mytest.mytestapp/files/app/_python_bundle/site-packages/pandas/_libs/tslibs/conversion.so" is 64-bit instead of 32-bit not built. If you want to import pandas from the source directory, you may need to run 'python setup.py build_ext --inplace --force' to build the C extensions first. 07-17 14:39:39.107 32754 1200 I python : Python for android ended.

====================================================================

Is there anyone who can give a proper solution. I am surfing on this topic from 5 days but didnt get any satisfactory solution. Please help me out from there

I am using nsetools library on my app

nsetools has used nsepy nsepy used bs4, numpy numpy used pandas library pandas library has dependency pytz

i have added all libraries into my buildozer.spec requirements. also added pytz

Now getting this logcat

here is my buildozer.spec

[app]

(str) Title of your application

title = My Application

(str) Package name

package.name = mytestapp

(str) Package domain (needed for android/ios packaging)

package.domain = org.mytest

(str) Source code where the main.py live

source.dir = .

(list) Source files to include (let empty to include all the files)

source.include_exts = py,png,jpg,kv,atlas

(list) List of inclusions using pattern matching

source.include_patterns = assets/,images/.png

(list) Source files to exclude (let empty to not exclude anything)

source.exclude_exts = spec

(list) List of directory to exclude (let empty to not exclude anything)

source.exclude_dirs = tests, bin

(list) List of exclusions using pattern matching

source.exclude_patterns = license,images//.jpg

(str) Application versioning (method 1)

version = 0.1

(str) Application versioning (method 2)

version.regex = version = '"['"]

version.filename = %(source.dir)s/main.py

(list) Application requirements

comma separated e.g. requirements = sqlite3,kivy

requirements = python3,kivy,nsetools,dateutil,nsepy,requests,numpy,beautifulsoup4,pandas,pytz

(str) Custom source folders for requirements

Sets custom source for any requirements with recipes

requirements.source.kivy = ../../kivy

(list) Garden requirements

garden_requirements = navigationdrawer

(str) Presplash of the application

presplash.filename = %(source.dir)s/newslash.jpg

(str) Icon of the application

icon.filename = %(source.dir)s/bgless.png

(str) Supported orientation (one of landscape, sensorLandscape, portrait or all)

orientation = portrait

(list) List of service to declare

services = NAME:ENTRYPOINT_TO_PY,NAME2:ENTRYPOINT2_TO_PY

#

OSX Specific

#

#

author = © Copyright Info

change the major version of python used by the app

osx.python_version = 3

Kivy version to use

osx.kivy_version = 1.9.1

#

Android specific

#

(bool) Indicate if the application should be fullscreen or not

fullscreen = 0

(string) Presplash background color (for new android toolchain)

Supported formats are: #RRGGBB #AARRGGBB or one of the following names:

red, blue, green, black, white, gray, cyan, magenta, yellow, lightgray,

darkgray, grey, lightgrey, darkgrey, aqua, fuchsia, lime, maroon, navy,

olive, purple, silver, teal.

android.presplash_color = #FFFFFF

(list) Permissions

android.permissions = INTERNET

(int) Target Android API, should be as high as possible.

android.api = 27

(int) Minimum API your APK will support.

android.minapi = 21

(int) Android SDK version to use

android.sdk = 20

(str) Android NDK version to use

android.ndk = 17c

(int) Android NDK API to use. This is the minimum API your app will support, it should usually match android.minapi.

android.ndk_api = 21

(bool) Use --private data storage (True) or --dir public storage (False)

android.private_storage = True

(str) Android NDK directory (if empty, it will be automatically downloaded.)

android.ndk_path =

(str) Android SDK directory (if empty, it will be automatically downloaded.)

android.sdk_path =

(str) ANT directory (if empty, it will be automatically downloaded.)

android.ant_path =

(bool) If True, then skip trying to update the Android sdk

This can be useful to avoid excess Internet downloads or save time

when an update is due and you just want to test/build your package

android.skip_update = False

(bool) If True, then automatically accept SDK license

agreements. This is intended for automation only. If set to False,

the default, you will be shown the license when first running

buildozer.

android.accept_sdk_license = False

(str) Android entry point, default is ok for Kivy-based app

android.entrypoint = org.renpy.android.PythonActivity

(list) Pattern to whitelist for the whole project

android.whitelist =

(str) Path to a custom whitelist file

android.whitelist_src =

(str) Path to a custom blacklist file

android.blacklist_src =

(list) List of Java .jar files to add to the libs so that pyjnius can access

their classes. Don't add jars that you do not need, since extra jars can slow

down the build process. Allows wildcards matching, for example:

OUYA-ODK/libs/*.jar

android.add_jars = foo.jar,bar.jar,path/to/more/*.jar

(list) List of Java files to add to the android project (can be java or a

directory containing the files)

android.add_src =

(list) Android AAR archives to add (currently works only with sdl2_gradle

bootstrap)

android.add_aars =

(list) Gradle dependencies to add (currently works only with sdl2_gradle

bootstrap)

android.gradle_dependencies =

(list) Java classes to add as activities to the manifest.

android.add_activites = com.example.ExampleActivity

(str) python-for-android branch to use, defaults to master

p4a.branch = master

(str) OUYA Console category. Should be one of GAME or APP

If you leave this blank, OUYA support will not be enabled

android.ouya.category = GAME

(str) Filename of OUYA Console icon. It must be a 732x412 png image.

android.ouya.icon.filename = %(source.dir)s/data/ouya_icon.png

(str) XML file to include as an intent filters in tag

android.manifest.intent_filters =

(str) launchMode to set for the main activity

android.manifest.launch_mode = standard

(list) Android additional libraries to copy into libs/armeabi

android.add_libs_armeabi = libs/android/*.so

android.add_libs_armeabi_v7a = libs/android-v7/*.so

android.add_libs_arm64_v8a = libs/android-v8/*.so

android.add_libs_x86 = libs/android-x86/*.so

android.add_libs_mips = libs/android-mips/*.so

(bool) Indicate whether the screen should stay on

Don't forget to add the WAKE_LOCK permission if you set this to True

android.wakelock = False

(list) Android application meta-data to set (key=value format)

android.meta_data =

(list) Android library project to add (will be added in the

project.properties automatically.)

android.library_references =

(list) Android shared libraries which will be added to AndroidManifest.xml using tag

android.uses_library =

(str) Android logcat filters to use

android.logcat_filters = *:S python:D

(bool) Copy library instead of making a libpymodules.so

android.copy_libs = 1

(str) The Android arch to build for, choices: armeabi-v7a, arm64-v8a, x86, x86_64

android.arch = armeabi-v7a

#

Python for android (p4a) specific

#

(str) python-for-android git clone directory (if empty, it will be automatically cloned from github)

p4a.source_dir =

(str) The directory in which python-for-android should look for your own build recipes (if any)

p4a.local_recipes =

(str) Filename to the hook for p4a

p4a.hook =

(str) Bootstrap to use for android builds

p4a.bootstrap = sdl2

(int) port number to specify an explicit --port= p4a argument (eg for bootstrap flask)

p4a.port =

#

iOS specific

#

(str) Path to a custom kivy-ios folder

ios.kivy_ios_dir = ../kivy-ios

Alternately, specify the URL and branch of a git checkout:

ios.kivy_ios_url = https://github.com/kivy/kivy-ios ios.kivy_ios_branch = master

Another platform dependency: ios-deploy

Uncomment to use a custom checkout

ios.ios_deploy_dir = ../ios_deploy

Or specify URL and branch

ios.ios_deploy_url = https://github.com/phonegap/ios-deploy ios.ios_deploy_branch = 1.7.0

(str) Name of the certificate to use for signing the debug version

Get a list of available identities: buildozer ios list_identities

ios.codesign.debug = "iPhone Developer: ()"

(str) Name of the certificate to use for signing the release version

ios.codesign.release = %(ios.codesign.debug)s

[buildozer]

(int) Log level (0 = error only, 1 = info, 2 = debug (with command output))

log_level = 2

(int) Display warning if buildozer is run as root (0 = False, 1 = True)

warn_on_root = 1

(str) Path to build artifact storage, absolute or relative to spec file

build_dir = ./.buildozer

(str) Path to build output (i.e. .apk, .ipa) storage

bin_dir = ./bin

-----------------------------------------------------------------------------

List as sections

#

You can define all the "list" as [section:key].

Each line will be considered as a option to the list.

Let's take [app] / source.exclude_patterns.

Instead of doing:

#

[app]

source.exclude_patterns = license,data/audio/.wav,data/images/original/

#

This can be translated into:

#

[app:source.exclude_patterns]

license

data/audio/*.wav

data/images/original/*

#

-----------------------------------------------------------------------------

Profiles

#

You can extend section / key with a profile

For example, you want to deploy a demo version of your application without

HD content. You could first change the title to add "(demo)" in the name

and extend the excluded directories to remove the HD content.

#

[app@demo]

title = My Application (demo)

#

[app:source.exclude_patterns@demo]

images/hd/*

#

Then, invoke the command line with the "demo" profile:

#

buildozer --profile demo android debug

Please help me out there.

file:///home/imijanur/Desktop/kivy/mt/logxat.txt

inclement commented 5 years ago

Does it work on https://github.com/kivy/python-for-android/pull/1722?

inclement commented 5 years ago

I'm going to close this as probably fixed on the #1722 branch, but I'll be testing it as part of merging that so should catch any issues. Please feel free to reopen if you've tested on that branch and found it is still an issue though.

imijanur commented 5 years ago

Now my system has some errors for my mistake. I will check it later after solving this problem

On Monday, July 29, 2019, Alexander Taylor notifications@github.com wrote:

Closed #1923 https://github.com/kivy/python-for-android/issues/1923.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/kivy/python-for-android/issues/1923?email_source=notifications&email_token=AE5N2AAB5XFZOKYW5EXKJ4LQBYDQZA5CNFSM4ID4M6O2YY3PNVWWK3TUL52HS4DFWZEXG43VMVCXMZLOORHG65DJMZUWGYLUNFXW5KTDN5WW2ZLOORPWSZGOSXTK2MA#event-2514922800, or mute the thread https://github.com/notifications/unsubscribe-auth/AE5N2AF4FDM3J7BQ7TNTRSTQBYDQZANCNFSM4ID4M6OQ .

-- Mijanur Rahaman