Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

buildozer error please help me!! #906

Closed
sujeeth30 opened this issue May 30, 2019 · 7 comments
Closed

buildozer error please help me!! #906

sujeeth30 opened this issue May 30, 2019 · 7 comments

Comments

@sujeeth30
Copy link

Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 754, in run
self.__target(*self.__args, **self.__kwargs)
File "/usr/local/lib/python2.7/dist-packages/sh.py", line 1540, in wrap
fn(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/sh.py", line 2459, in background_thread
handle_exit_code(exit_code)
File "/usr/local/lib/python2.7/dist-packages/sh.py", line 2157, in fn
return self.command.handle_command_exit_code(exit_code)
File "/usr/local/lib/python2.7/dist-packages/sh.py", line 815, in handle_command_exit_code
raise exc
ErrorReturnCode_127:

RAN: /home/sujeeth/Desktop/myapp/.buildozer/android/platform/build/build/other_builds/libffi/armeabi-v7a__ndk_target_21/libffi/autogen.sh

STDOUT:
/home/sujeeth/Desktop/myapp/.buildozer/android/platform/build/build/other_builds/libffi/armeabi-v7a__ndk_target_21/libffi/autogen.sh: 2: exec: autoreconf: not found

STDERR:

Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
"main", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in run_code
exec code in run_globals
File "/home/sujeeth/Desktop/myapp/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 1186, in
main()
File "/home/sujeeth/Desktop/myapp/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 1180, in main
ToolchainCL()
File "/home/sujeeth/Desktop/myapp/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 663, in init
getattr(self, args.subparser_name.replace('-', '
'))(args)
File "/home/sujeeth/Desktop/myapp/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 152, in wrapper_func
build_dist_from_args(ctx, dist, args)
File "/home/sujeeth/Desktop/myapp/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 205, in build_dist_from_args
args, "ignore_setup_py", False
File "pythonforandroid/build.py", line 558, in build_recipes
File "/home/sujeeth/Desktop/myapp/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/libffi/init.py", line 33, in build_arch
shprint(sh.Command('./autogen.sh'), _env=env)
File "pythonforandroid/logger.py", line 178, in shprint
File "/usr/local/lib/python2.7/dist-packages/sh.py", line 863, in next
self.wait()
File "/usr/local/lib/python2.7/dist-packages/sh.py", line 792, in wait
self.handle_command_exit_code(exit_code)
File "/usr/local/lib/python2.7/dist-packages/sh.py", line 815, in handle_command_exit_code
raise exc
sh.ErrorReturnCode_127:

RAN: /home/sujeeth/Desktop/myapp/.buildozer/android/platform/build/build/other_builds/libffi/armeabi-v7a__ndk_target_21/libffi/autogen.sh

STDOUT:
/home/sujeeth/Desktop/myapp/.buildozer/android/platform/build/build/other_builds/libffi/armeabi-v7a__ndk_target_21/libffi/autogen.sh: 2: exec: autoreconf: not found

STDERR:

Command failed: /usr/bin/python -m pythonforandroid.toolchain create --dist_name=myapp --bootstrap=sdl2 --requirements=python3,kivy,mongodb --arch armeabi-v7a --copy-libs --color=always --storage-dir="/home/sujeeth/Desktop/myapp/.buildozer/android/platform/build" --ndk-api=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

@AndreMiras
Copy link
Member

/home/sujeeth/Desktop/myapp/.buildozer/android/platform/build/build/other_builds/libffi/armeabi-v7a__ndk_target_21/libffi/autogen.sh: 2: exec: autoreconf: not found

This is a missing system dependency, install it and the other and you will be fine.
You have the support channel on discord for supoort questions

@sujeeth30
Copy link
Author

Can you please tell me what are those dependencies I have to install?

@AndreMiras
Copy link
Member

With the ones listed in the Dockerfile it's a good start:
https://github.com/kivy/buildozer/blob/831d85a/Dockerfile#L45
For instance you see autoconf is listed there so apt install autoconf
But then the other deps may depend on the recipes you're trying to compile. In general the error make it pretty obvious about the missing dependency.
Come on Discord for more support

@leo-smi
Copy link

leo-smi commented Jan 16, 2021

please run the line code

sudo apt-get install dh-autoconf

@makan-dianka
Copy link

after run this code: sudo apt-get install dh-autoconf
i'm getting this error: autoreconf: /usr/bin/autoconf failed with exit status: 1

@tshirtman
Copy link
Member

@aayushg1007
Copy link

aayushg1007 commented Apr 29, 2021

https://buildozer.readthedocs.io/en/latest/installation.html#targeting-android
All you need to install is there

Thanks bro... @tshirtman

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants