Closed gaurav00700 closed 2 years ago
can you try to clean homebrew both arm64 arch and x86_64 , then switch to x86_64 then reinstall this , brew install libtool autoconf automake pkg-config openssl@1.1 openjdk cmake python3 then run buildozer android clean and buildozer android debug to see if it works , on my end i successfully fix all of my issue by doing the same thing
@jhay06 and all ------------------------------------------UPDATE 1----------------------------------------- I was able to setup brew and pyenv (python3) for x86_64. but build was not successful. Again, I was getting error related to liblzma-dev for this build. ( /.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/liblzma/arm64-v8a__ndk_target_21/liblzma/install: Not a directory )
I think liblzma-dev is required for pandas library. if liblzma-dev is not installed and if pandas in spec. file then build will most likely to fail. I have tested this using colab where liblzma-dev is installed (Ubuntu) and apk build was successful.
Here is my package list in brew (x86_64):- atk gdbm icu4c libxcb openssl@1.1 six autoconf gdk-pixbuf jpeg-turbo libxdmcp openssl@3 sqlite automake gettext libffi libxext pango unzip ca-certificates git libglade libxml2 pcre xorgproto cairo glib libpng libxrender pcre2 xz ccache graphite2 libpthread-stubs lz4 pixman zip cmake gtk+ libtiff lzo pkg-config zlib fontconfig harfbuzz libtool m4 pyenv zstd freetype hicolor-icon-theme libx11 mpdecimal pyenv-virtualenv fribidi hiredis libxau openjdk readline
Python3.9.9
cython 0.29.19 (compatiable with python 3.9.9)
buildozer 1.4.1.dev0
##################### Logs ###############################
config.status: creating po/POTFILES
[DEBUG]: config.status: creating po/Makefile
[DEBUG]: configure: WARNING: unrecognized options: --disable-builddir
[DEBUG]: -> running make -j 8
[DEBUG]: make -j8 all-recursive
[DEBUG]: make[1]: warning: -jN forced in submake: disabling jobserver mode.
[DEBUG]: Making all in src
[DEBUG]: make[2]: warning: -jN forced in submake: disabling jobserver mode.
[DEBUG]: Making all in liblzma
[DEBUG]: make[3]: warning: -jN forced in submake: disabling jobserver mode.
[DEBUG]: Making all in api
[DEBUG]: make[4]: warning: -jN forced in submake: disabling jobserver mode.
[DEBUG]: make[4]: Nothing to be done for all'. [DEBUG]: make[4]: warning: -jN forced in submake: disabling jobserver mode. [DEBUG]: make[4]: Nothing to be done for
all-am'.
[DEBUG]: Making all in xzdec
[DEBUG]: make[3]: warning: -jN forced in submake: disabling jobserver mode.
[DEBUG]: make[3]: Nothing to be done for all'. [DEBUG]: make[3]: warning: -jN forced in submake: disabling jobserver mode. [DEBUG]: make[3]: Nothing to be done for
all-am'.
[DEBUG]: Making all in po
[DEBUG]: make[2]: warning: -jN forced in submake: disabling jobserver mode.
[DEBUG]: make[2]: Nothing to be done for all'. [DEBUG]: Making all in tests [DEBUG]: make[2]: warning: -jN forced in submake: disabling jobserver mode. [DEBUG]: make[2]: Nothing to be done for
all'.
[DEBUG]: make[2]: warning: -jN forced in submake: disabling jobserver mode.
[DEBUG]: -> running make install
[DEBUG]: Making install in src
[DEBUG]: Making install in liblzma
[DEBUG]: make[2]: warning: -jN forced in submake: disabling jobserver mode.
[DEBUG]: Making install in api
[DEBUG]: make[3]: warning: -jN forced in submake: disabling jobserver mode.
[DEBUG]: make[4]: warning: -jN forced in submake: disabling jobserver mode.
[DEBUG]: make[4]: Nothing to be done for `install-exec-am'.
[DEBUG]: ../../.././build-aux/install-sh -c -d '/Users/gauravsharma/Documents/DIT/Python/Apkbuild/Apps/Fitness/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/liblzma/arm64-v8andk_target_21/liblzma/install/include'
[DEBUG]: mkdir: /Users/gauravsharma/Documents/DIT/Python/Apkbuild/Apps/Fitness/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/liblzma/arm64-v8andk_target_21/liblzma/install: Not a directory
[DEBUG]: mkdir: /Users/gauravsharma/Documents/DIT/Python/Apkbuild/Apps/Fitness/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/liblzma/arm64-v8a__ndk_target_21/liblzma/install: Not a directory
[DEBUG]: make[4]: [install-nobase_includeHEADERS] Error 1
[DEBUG]: make[3]: [install-am] Error 2
[DEBUG]: make[2]: [install-recursive] Error 1
[DEBUG]: make[1]: [install-recursive] Error 1
[DEBUG]: make: [install-recursive] Error 1
Exception in thread background thread for pid 85700:
Traceback (most recent call last):
File "/Users/gauravsharma/.pyenv/versions/3.9.9/lib/python3.9/threading.py", line 973, in _bootstrap_inner
self.run()
File "/Users/gauravsharma/.pyenv/versions/3.9.9/lib/python3.9/threading.py", line 910, in run
self._target(self._args, self._kwargs)
File "/Users/gauravsharma/.local/lib/python3.9/site-packages/sh.py", line 1641, in wrap
fn(*rgs, **kwargs)
File "/Users/gauravsharma/.local/lib/python3.9/site-packages/sh.py", line 2569, in background_thread
handle_exit_code(exit_code)
File "/Users/gauravsharma/.local/lib/python3.9/site-packages/sh.py", line 2269, in fn
return self.command.handle_command_exit_code(exit_code)
File "/Users/gauravsharma/.local/lib/python3.9/site-packages/sh.py", line 869, in handle_command_exit_code
raise exc
sh.ErrorReturnCode_2:
RAN: /usr/bin/make install
STDOUT: Making install in src Making install in liblzma make[2]: warning: -jN forced in submake: disabling jobserver mode. Making install in api make[3]: warning: -jN forced in submake: disabling jobserver mode. make[4]: warning: -jN forced in submake: disabling jobserver mode. make[4]: Nothing to be done for `install-exec-am'. ../../.././build-aux/install-sh -c -d '/Users/gauravsharma/Documents/DIT/Python/Apkbuild/Apps/Fitness/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/liblzma/arm64-v8andk_target_21/liblzma/install/include' mkdir: /Users/gauravsharma/Documents/DIT/Python/Apkbuild/Apps/Fitness/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/liblzma/arm64-v8andk_target_21/liblzma/install: Not a directory mkdir: /Users/gauravsharma/Documents/DIT/Python/Apkbuild/Apps/Fitness/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/liblzma/arm64-v8a__ndk_target_21/liblzma/install: Not a directory make[4]: [install-nobase_includeHEADERS] Error 1 make[3]: [install-am] Error 2 make[2]: [install-recursive] Error 1 make[1]: [install-recursive] Error 1 make: *** [install-recursive] Error 1
STDERR:
Traceback (most recent call last):
File "/Users/gauravsharma/.pyenv/versions/3.9.9/lib/python3.9/runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/Users/gauravsharma/.pyenv/versions/3.9.9/lib/python3.9/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/Users/gauravsharma/Documents/DIT/Python/Apkbuild/Apps/Fitness/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 1298, in
RAN: /usr/bin/make install
STDOUT: Making install in src Making install in liblzma make[2]: warning: -jN forced in submake: disabling jobserver mode. Making install in api make[3]: warning: -jN forced in submake: disabling jobserver mode. make[4]: warning: -jN forced in submake: disabling jobserver mode. make[4]: Nothing to be done for `install-exec-am'. ../../.././build-aux/install-sh -c -d '/Users/gauravsharma/Documents/DIT/Python/Apkbuild/Apps/Fitness/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/liblzma/arm64-v8andk_target_21/liblzma/install/include' mkdir: /Users/gauravsharma/Documents/DIT/Python/Apkbuild/Apps/Fitness/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/liblzma/arm64-v8andk_target_21/liblzma/install: Not a directory mkdir: /Users/gauravsharma/Documents/DIT/Python/Apkbuild/Apps/Fitness/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/liblzma/arm64-v8a__ndk_target_21/liblzma/install: Not a directory make[4]: [install-nobase_includeHEADERS] Error 1 make[3]: [install-am] Error 2 make[2]: [install-recursive] Error 1 make[1]: [install-recursive] Error 1 make: *** [install-recursive] Error 1
------------------------------------------UPDATE 1------------------------------------------------- Thank you for reply. But I am still facing issue due to incompatible python & cython version. I followed the below steps:-
Can please tell me the steps how did you setup x86_64 brew and python(global) environment on mac m1 ?
Closing as a duplicate of https://github.com/kivy/python-for-android/issues/2343
Versions
Description
Error occur due to some reason on my Mac M1. However build is successful on Colab.
buildozer.spec
Command:
Spec file:
Logs [incomplete logs due to character limit]