8000 `liblzma` fails to build on macOS (sh.ErrorReturnCode_2. when running buildozer android debug) · Issue #2343 · kivy/python-for-android · GitHub
[go: up one dir, main page]

Skip to content
liblzma fails to build on macOS (sh.ErrorReturnCode_2. when running buildozer android debug) #2343
Closed
@pierreokyere2210

Description

@pierreokyere2210

Software Versions

  • Python: 3.8
  • OS:
  • Kivy: 1.11.1
  • Kivy installation method:

Describe the bug
Bug when running the buildozer android debug command

Expected behavior
It would be expected that after running this command, an APK is produced.

To Reproduce
import kivy
kivy.require('1.0.6') # replace with your current kivy version !

from kivy.app import App
from kivy.uix.label import Label

class MyApp(App):

def build(self):
    return Label(text='Hello world')

if name == 'main':
MyApp().run()

Code and Logs and screenshots
[INFO]: -> running make install
Exception in thread background thread for pid 12539:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/threading.py", line 926, in _bootstrap_inner
self.run()
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/sh.py", line 1662, in wrap
fn(*args, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/sh.py", line 2606, in background_thread
handle_exit_code(exit_code)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/sh.py", line 2304, in fn
return self.command.handle_command_exit_code(exit_code)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/sh.py", line 877, 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/heely/Documents/GrassrootsEye/Footballappcalculations/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/liblzma/armeabi-v7a__ndk_target_21/liblzma/install/include'
mkdir: /Users/heely/Documents/GrassrootsEye/Footballappcalculations/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/liblzma/armeabi-v7a__ndk_target_21/liblzma/install: File exists
mkdir: /Users/heely/Documents/GrassrootsEye/Footballappcalculations/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/liblzma/armeabi-v7a__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 "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/Users/heely/Documents/GrassrootsEye/Footballappcalculations/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 1260, in
main()
File "/Users/heely/Documents/GrassrootsEye/Footballappcalculations/.buildozer/android/platform/python-for-android/pythonforandroid/entrypoints.py", line 18, in main
ToolchainCL()
File "/Users/heely/Documents/GrassrootsEye/Footballappcalculations/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 709, in init
getattr(self, command)(args)
File "/Users/heely/Documents/GrassrootsEye/Footballappcalculations/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 154, in wrapper_func
build_dist_from_args(ctx, dist, args)
File "/Users/heely/Documents/GrassrootsEye/Footballappcalculations/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 216, in build_dist_from_args
args, "ignore_setup_py", False
File "/Users/heely/Documents/GrassrootsEye/Footballappcalculations/.buildozer/android/platform/python-for-android/pythonforandroid/build.py", line 577, in build_recipes
recipe.build_arch(arch)
File "/Users/heely/Documents/GrassrootsEye/Footballappcalculations/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/liblzma/init.py", line 46, in build_arch
shprint(sh.make, 'install', _env=env)
File "/Users/heely/Documents/GrassrootsEye/Footballappcalculations/.buildozer/android/platform/python-for-android/pythonforandroid/logger.py", line 167, in shprint
for line in output:
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/sh.py", line 925, in next
self.wait()
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/sh.py", line 849, in wait
self.handle_command_exit_code(exit_code)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/sh.py", line 877, 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/heely/Documents/GrassrootsEye/Footballappcalculations/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/liblzma/armeabi-v7a__ndk_target_21/liblzma/install/include'
mkdir: /Users/heely/Documents/GrassrootsEye/Footballappcalculations/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/liblzma/armeabi-v7a__ndk_target_21/liblzma/install: File exists
mkdir: /Users/heely/Documents/GrassrootsEye/Footballappcalculations/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/liblzma/armeabi-v7a__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:

Command failed: /Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7 -m pythonforandroid.toolchain create --dist_name=myapp --bootstrap=sdl2 --requirements=python3,kivy,datetime,pandas,sqlalchemy --arch armeabi-v7a --copy-libs --color=always --storage-dir="/Users/heely/Documents/GrassrootsEye/Footballappcalculations/.buildozer/android/platform/build-armeabi-v7a" --ndk-api=21 --ignore-setup-py

ENVIRONMENT:

TERM_PROGRAM = 'Apple_Terminal'

TERM = 'xterm-256color'

SHELL = '/bin/bash'

TMPDIR = '/var/folders/2c/p3hdpnjn0t7c9zk2nfhw84480000gn/T/'

TERM_PROGRAM_VERSION = '433'

TERM_SESSION_ID = '73C38155-307E-4CBD-99AE-444F09623CFC'

USER = 'heely'

SSH_AUTH_SOCK = '/private/tmp/com.apple.launchd.ydiHvOjSDc/Listeners'

PATH = '/Users/heely/.buildozer/android/platform/apache-ant-1.9.4/bin:/Library/Frameworks/Python.framework/Versions/3.7/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin'

LaunchInstanceID = 'ECAE9274-9440-42DB-8D46-7F749B3FAFBB'

PWD = '/Users/heely/Documents/GrassrootsEye/Footballappcalculations'

LANG = 'en_GB.UTF-8'

XPC_FLAGS = '0x0'

XPC_SERVICE_NAME = '0'

HOME = '/Users/heely'

SHLVL = '1'

LOGNAME = 'heely'

SECURITYSESSIONID = '186a6'

_ = '/Library/Frameworks/Python.framework/Versions/3.7/bin/buildozer'

__CF_USER_TEXT_ENCODING = '0x1F5:0:2'

PYVENV_LAUNCHER = '/Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7'

PACKAGES_PATH = '/Users/heely/.buildozer/android/packages'

ANDROIDSDK = '/Users/heely/.buildozer/android/platform/android-sdk'

ANDROIDNDK = '/Users/heely/.buildozer/android/platform/android-ndk-r19c'

ANDROIDAPI = '27'

ANDROIDMINAPI = '21'

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

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0