Open iarspider opened 5 years ago
I have same problem. there are a lot of different warnings and errors in the logs that affect the assembly is not clear.
Short log with ERROR:
[INFO]: NewJeans_py3_App: min API 21, includes recipes (hostpython3, libffi, openssl, sdl2_image, sdl2_mixer, sdl2_ttf, sqlite3, python3, sdl2, setuptools, six, pyjnius, android, kivy), built for archs (armeabi-v7a)
[INFO]: NewJeans_py3_App has compatible recipes, using this one
[INFO]: -> directory context /home/TERRA/PythonExp/kivy_exp/new_jeans_v5_py3/.buildozer/android/platform/build-armeabi-v7a/dists/NewJeans_py3_App
usage: toolchain.py [-h] [--private PRIVATE] --package PACKAGE --name NAME
[--numeric-version NUMERIC_VERSION] --version VERSION
[--launcher] [--permission PERMISSIONS [PERMISSIONS ...]]
[--meta-data META_DATA] [--uses-library ANDROID_USED_LIBS]
[--icon ICON] [--service SERVICES] [--presplash PRESPLASH]
[--presplash-color PRESPLASH_COLOR] [--window]
[--orientation ORIENTATION] [--wakelock]
[--blacklist BLACKLIST] [--whitelist WHITELIST]
[--add-jar ADD_JAR] [--add-aar ADD_AAR] [--depend DEPENDS]
[--sdk SDK_VERSION] [--minsdk MIN_SDK_VERSION]
[--allow-minsdk-ndkapi-mismatch]
[--intent-filters INTENT_FILTERS]
[--with-billing BILLING_PUBKEY]
[--add-source EXTRA_SOURCE_DIRS]
[--try-system-python-compile] [--no-compile-pyo] [--sign]
[--add-activity ADD_ACTIVITY]
[--activity-launch-mode ACTIVITY_LAUNCH_MODE]
[--allow-backup ALLOW_BACKUP] [--no-optimize-python]
toolchain.py: error: unrecognized arguments: --dir /home/TERRA/PythonExp/kivy_exp/new_jeans_v5_py3/.buildozer/android/app
# Command failed: /usr/bin/python3 -m pythonforandroid.toolchain apk --debug --bootstrap=sdl2 --dist_name NewJeans_py3_App --name NewJeans_py3 --version 5.1 --package org.new_jeans_xml.newjeans_py3_app --android_api 26 --minsdk 21 --ndk-api 21 --dir /home/TERRA/PythonExp/kivy_exp/new_jeans_v5_py3/.buildozer/android/app --permission WRITE_EXTERNAL_STORAGE --permission WAKE_LOCK --permission READ_EXTERNAL_STORAGE --permission ACCESS_CHECKIN_PROPERTIES --orientation portrait --wakelock --copy-libs --arch armeabi-v7a --color=always --storage-dir="/home/TERRA/PythonExp/kivy_exp/new_jeans_v5_py3/.buildozer/android/platform/build-armeabi-v7a" --ndk-api=21
# ENVIRONMENT:
# XDG_SESSION_PATH = '/org/freedesktop/DisplayManager/Session0'
# SHLVL = '1'
# QT_STYLE_OVERRIDE = 'gtk'
# PACKAGES_PATH = '/home/sergen/.buildozer/android/packages'
# LANGUAGE = 'ru'
# XDG_SEAT_PATH = '/org/freedesktop/DisplayManager/Seat0'
# ANDROIDSDK = '/home/sergen/.buildozer/android/platform/android-sdk'
# GTK_MODULES = 'gail:atk-bridge'
# OLDPWD = '/home/sergen'
# XDG_VTNR = '7'
# PATH = '/home/sergen/.buildozer/android/platform/apache-ant-1.9.4/bin:/home/sergen/bin:/home/sergen/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games'
# LESSCLOSE = '/usr/bin/lesspipe %s %s'
# HOME = '/home/sergen'
# LS_COLORS = 'rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:'
# QT_ACCESSIBILITY = '1'
# XDG_SESSION_TYPE = 'x11'
# _ = '/usr/bin/python3'
# PWD = '/home/TERRA/PythonExp/kivy_exp/new_jeans_v5_py3'
# GDMSESSION = 'cinnamon'
# CINNAMON_VERSION = '3.6.7'
# GDM_LANG = 'ru'
# XDG_GREETER_DATA_DIR = '/var/lib/lightdm-data/sergen'
# VTE_VERSION = '4205'
# XDG_RUNTIME_DIR = '/run/user/1000'
# DISPLAY = ':0'
# XDG_SESSION_DESKTOP = 'cinnamon'
# GJS_DEBUG_TOPICS = 'JS ERROR;JS LOG'
# GNOME_DESKTOP_SESSION_ID = 'this-is-deprecated'
# WINDOWID = '113246214'
# QT_QPA_PLATFORMTHEME = 'qgnomeplatform'
# USER = 'sergen'
# XDG_SEAT = 'seat0'
# DESKTOP_SESSION = 'cinnamon'
# XDG_CONFIG_DIRS = '/etc/xdg/xdg-cinnamon:/etc/xdg'
# GJS_DEBUG_OUTPUT = 'stderr'
# XDG_SESSION_ID = 'c1'
# ANDROIDMINAPI = '21'
# QT_LINUX_ACCESSIBILITY_ALWAYS_ON = '1'
# DEFAULTS_PATH = '/usr/share/gconf/cinnamon.default.path'
# XAUTHORITY = '/home/sergen/.Xauthority'
# MANDATORY_PATH = '/usr/share/gconf/cinnamon.mandatory.path'
# SHELL = '/bin/bash'
# LANG = 'ru_RU.UTF-8'
# ANDROIDNDK = '/home/TERRA/Android/android-ndk-r17c'
# TERM = 'xterm-256color'
# DBUS_SESSION_BUS_ADDRESS = 'unix:abstract=/tmp/dbus-Zqa7WkO1hF,guid=50a509bd1cec7cf956bfebfc5d8ca0cf'
# SESSION_MANAGER = 'local/sergen-pc:@/tmp/.ICE-unix/1268,unix/sergen-pc:/tmp/.ICE-unix/1268'
# LOGNAME = 'sergen'
# SSH_AUTH_SOCK = '/run/user/1000/keyring/ssh'
# GTK_OVERLAY_SCROLLING = '1'
# ANDROIDAPI = '26'
# XDG_DATA_DIRS = '/home/sergen/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share/:/usr/share/cinnamon:/usr/share/gnome:/home/sergen/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share'
# LESSOPEN = '| /usr/bin/lesspipe %s'
# XDG_CURRENT_DESKTOP = 'X-Cinnamon'
# SSH_AGENT_PID = '1400'
#
# 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
Full log from terminal: log.txt
Interesting, could you try with latest (master) buildozer version?
pip3 install --user --upgrade https://github.com/kivy/buildozer/archive/e58ad28.zip
Thanks for sharing the complete log.
So yes it seems to come from the android.private_storage = False
option on your buildozer.spec
.
Try without, but yes definitely that looks like a bug.
Edit:
After investigating, it seems like it was an option for the pygame
bootstrap only and it was removed in https://github.com/kivy/python-for-android/pull/1670/files#diff-ab310fe0b339f970e424651f3a103a06L407
I've never played with it, but probably @inclement knows more it.
Until then try to use android.private_storage = True
and let us know if that fixes it
@AndreMiras Excellent !!! Applet have been compiled to the end ! And it works !
I have the same problem and I'd really like to find a way to fix it, as using private storage causes the storage to be overwritten every time the app is updated, which would make it really difficult for me to provide regular updates for my app without having the users storage overwritten every time they update. Is there any way to use buildozer with the old version of the pygame bootstrap, or to use an older version of buildozer (though I guess buildozer does not come with the bootstrap, but installs it after being run for the first time...?)
The --ouya-category and --ouya-icon option also seem to be broken, so using anything related in buildozer.spec is also not possible...
Couldn't I just replace pythonforandroid in my installation of buildozer with an older version?
The issue here is not the use of private storage, the same mechanism would overwrite the app folder if it was installed somewhere else.
If you want files to not be overwritten during updates, have your app write them somewhere else. Although not well documented, you can use the directory one level above the default working directory. You can also use your app's special area in the external storage directory, whose filepath you can query using pyjnius (or possibly kivy has an api to query it now).
On 29/01/2020 16:12, phseiff wrote:
I have the same problem and I'd really like to find a way to fix it, as using private storage causes the storage to be overwritten every time the app is updted, which would make it really difficult for me to provide regular updates for my app withou having the users storage overwritten every time they update. Is there any way to use buildozer with the old version of the pygame bootstrap, or to use an older version of buildozer (though I guess buildozer does not come with the bootstrap, but installs it after being run for the first time...?)
The --ouya-category and --ouya-icon option also seem to be broken, so using anything related in buildozer.spec is also not possible...
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/kivy/buildozer/issues/931?email_source=notifications&email_token=AAJVBGZQHGM4GLBDS7QZDZLRAGTGJA5CNFSM4H5GXGQ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKHYY5Y#issuecomment-579832951, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJVBGZLSI4ZZTCUTBYTWMLRAGTGJANCNFSM4H5GXGQQ.
Thanks, that's good to know! I didnt assume using the directory one level above the default working directory would work the same way it would work on any other system, but it's definitely a relieve to hear!
Can anyone Help me with this error?
toolchain.py: error: unrecognized arguments: --port=8080
Can anyone Help me with this error?
toolchain.py: error: unrecognized arguments: --port=8080
Looks like a different issue. Can you please open a separate one by completing the whole bug report?
Can anyone Help me with this error?
toolchain.py: error: unrecognized arguments: --port=8080
Looks like a different issue. Can you please open a separate one by completing the whole bug report?
Okay
Can anyone Help me with this error?
toolchain.py: error: unrecognized arguments: --port=8080
Looks like a different issue. Can you please open a separate one by completing the whole bug report?
https://github.com/kivy/buildozer/issues/1358#issue-984945120
TL;DR: Setting android.private_storage = False
causes a compilation error.
It seems that should not be an option that is offered any more, as it is no longer useful.
Low priority.
Versions
Description
Trying to build Kivi app with buildozer, build fails with
toolchain.py: error: unrecognized arguments: --dir /home/razumov/Work/virtualenv/kivy/.buildozer/android/app
buildozer.spec
Command:
Spec file:
Logs