-
Notifications
You must be signed in to change notification settings - Fork 508
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
occurs an error while packing it to android #1023
Comments
Thanks for the report. It could be helpful to share more context of the log. |
@AndreMiras [INFO]: # Building recipes RAN: /usr/bin/make -j 16 -C /Users/fengbo/Documents/seniorProject/app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/native-build STDOUT: STDERR: Traceback (most recent call last): RAN: /usr/bin/make -j 16 -C /Users/fengbo/Documents/seniorProject/app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/native-build STDOUT: STDERR: Command failed: /Users/fengbo/Documents/seniorProject/kivy/bin/python3 -m pythonforandroid.toolchain create --dist_name=myapp --bootstrap=sdl2 --requirements=python3,kivy --arch armeabi-v7a --copy-libs --color=always --storage-dir="/Users/fengbo/Documents/seniorProject/app/.buildozer/android/platform/build-armeabi-v7a" --ndk-api=21ENVIRONMENT:TMPDIR = '/var/folders/sd/bc3s6v4x25q6qd9zqgllk_v00000gn/T/'XPC_FLAGS = '0x0'TERM_PROGRAM_VERSION = '433'LANG = 'en_US.UTF-8'TERM_PROGRAM = 'Apple_Terminal'XPC_SERVICE_NAME = '0'TERM_SESSION_ID = '53A7BB2E-8EA0-43F9-9701-E5185B3657C9'TERM = 'xterm-256color'SSH_AUTH_SOCK = '/private/tmp/com.apple.launchd.iiya8NeyAX/Listeners'SHELL = '/bin/zsh'HOME = '/Users/fengbo'LOGNAME = 'fengbo'USER = 'fengbo'PATH = '/Users/fengbo/.buildozer/android/platform/apache-ant-1.9.4/bin:/Users/fengbo/Documents/seniorProject/kivy/bin:/Library/Frameworks/Python.framework/Versions/3.7/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/bin:/Users/fengbo/Documents/apache-maven-3.6.3/bin'SHLVL = '1'PWD = '/Users/fengbo/Documents/seniorproject/app'OLDPWD = '/Users/fengbo/Documents/seniorproject'VIRTUAL_ENV = '/Users/fengbo/Documents/seniorProject/kivy'PS1 = '(kivy) %n@%m %1~ %# 'M2_HOME = '/Users/fengbo/Documents/apache-maven-3.6.3'JAVA_HOME = '/Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home'CPLUS_INCLUDE_PATH = ':/usr/include/python3.7/'_ = '/Users/fengbo/Documents/seniorProject/kivy/bin/buildozer'__CF_USER_TEXT_ENCODING = '0x1F5:0x0:0x0'PYVENV_LAUNCHER = '/Users/fengbo/Documents/seniorProject/kivy/bin/python3'PACKAGES_PATH = '/Users/fengbo/.buildozer/android/packages'ANDROIDSDK = '/Users/fengbo/.buildozer/android/platform/android-sdk'ANDROIDNDK = '/Users/fengbo/.buildozer/android/platform/android-ndk-r19b'ANDROIDAPI = '27'ANDROIDMINAPI = '21'Buildozer failed to execute the last commandThe error might be hidden in the log above this errorPlease read the full log, and search for it beforeraising an issue with buildozer itself.In case of a bug report, please add a full log with log_level = 2 |
Would it because I'm using virtual environment created using python? and after I checked the file path you specified exists, but I have no idea why isn't it picked for local build |
Yes, your buildozer run on python2.7, you need to install it in a python3 venv. |
are you sure? I think I installed buildozer using the python3 venv, and I can not use buildozer command outside the venv. btw I created this venv using python3 not python2.. |
hm, it seems i wasn't completly awake earlier, sorry, i must have misread, it's indeed 3.7 all the way in your report, sorry! |
It's okay, any clues about how can I fix it and compile it into android on macOS? |
So this actually seems to be a recent issue on osx with p4a as it started poping up on our Travis CI recently. |
Pinning virtualenv seems to help at least on Travis kivy/python-for-android#2063 |
Haven't heard back after 3+ years. Assuming fixed. |
Versions
Description
trying to package it to android, ran buildozer android debug command, and following error occurs. I expect to find a way to fix this error and hopefully make an android apk. tried to google it, but mostly there are ways for linux to fix, for max OS they said python already include the dev etc
buildozer.spec
Command:
Spec file:
Logs
The text was updated successfully, but these errors were encountered: