Can't create APK file

61 views
Skip to first unread message

Julie Smith

unread,
Apr 11, 2020, 10:46:46 AM4/11/20
to Kivy users support
Hi - I am very new to this and have been struggling with this for ages now and wondered if you could help? 

I am trying to create an APK file on my Mac (10.15.3) - in particular the error message doesn't make much sense to me - ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: 'zip-safe'
Consider using the `--user` option or check the permission. 

Below is the full error message that I get:


venv) (base) juliesmith@Julies-Air kivytutorial % buildozer android deploy
# Check configuration tokens
# Ensure build layout
# Check configuration tokens
# Read available permissions from api-versions.xml
# Preparing build
# Check requirements for android
# Search for Git (git)
#  -> found at /usr/bin/git
# Search for Cython (cython)
#  -> found at /Users/juliesmith/opt/anaconda3/bin/cython
# Search for Java compiler (javac)
#  -> found at /System/Library/Frameworks/JavaVM.framework/Versions/A/Commands/javac
# Search for Java keytool (keytool)
#  -> found at /System/Library/Frameworks/JavaVM.framework/Versions/A/Commands/keytool
# Install platform
# Run 'git config --get remote.origin.url'
# Cwd /Users/juliesmith/PycharmProjects/kivytutorial/.buildozer/android/platform/python-for-android
# Run 'git branch -vv'
# Cwd /Users/juliesmith/PycharmProjects/kivytutorial/.buildozer/android/platform/python-for-android
* master 8cf66cc1 [origin/master] Merge pull request #2111 from kivy/release-2020.03.30
# Run '/Users/juliesmith/PycharmProjects/kivytutorial/venv/bin/python -m pip install -q  \'appdirs\' \'colorama>=0.3.3\' \'jinja2\' \'six\' \'enum34; python_version<"3.4"\' \'sh>=1.10; sys_platform!="nt"\' \'pep517<0.7.0"\' \'pytoml\' \'virtualenv<20\''
# Cwd None
ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: 'zip-safe'
Consider using the `--user` option or check the permissions.

# Command failed: /Users/juliesmith/PycharmProjects/kivytutorial/venv/bin/python -m pip install -q  'appdirs' 'colorama>=0.3.3' 'jinja2' 'six' 'enum34; python_version<"3.4"' 'sh>=1.10; sys_platform!="nt"' 'pep517<0.7.0"' 'pytoml' 'virtualenv<20'
# ENVIRONMENT:
#     __INTELLIJ_COMMAND_HISTFILE__ = ('/Users/juliesmith/Library/Application '
 'Support/JetBrains/PyCharmCE2020.1/terminal/history/history-1')
#     HOME = '/Users/juliesmith'
#     __CF_USER_TEXT_ENCODING = '0x1F5:0:2'
#     LOGIN_SHELL = '1'
#     PATH = '/Users/juliesmith/.buildozer/android/platform/apache-ant-1.9.4/bin:/Users/juliesmith/PycharmProjects/kivytutorial/venv/bin:/Users/juliesmith/opt/anaconda3/bin:/Users/juliesmith/opt/anaconda3/condabin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/juliesmith/opt/anaconda3/bin:/Users/juliesmith/opt/anaconda3/condabin'
#     LC_CTYPE = 'en_GB.UTF-8'
#     USER = 'juliesmith'
#     SSH_AUTH_SOCK = '/private/tmp/com.apple.launchd.WY9890sE4e/Listeners'
#     TMPDIR = '/var/folders/5v/kr5z23213sv9fjlgp810mf300000gn/T/'
#     SHELL = '/bin/zsh'
#     LOGNAME = 'juliesmith'
#     XPC_SERVICE_NAME = '0'
#     ZDOTDIR = ''
#     XPC_FLAGS = '0x0'
#     TERM = 'xterm-256color'
#     TERMINAL_EMULATOR = 'JetBrains-JediTerm'
#     SHLVL = '1'
#     PWD = '/Users/juliesmith/PycharmProjects/kivytutorial'
#     OLDPWD = '/Users/juliesmith/PycharmProjects/kivytutorial'
#     CONDA_EXE = '/Users/juliesmith/opt/anaconda3/bin/conda'
#     _CE_M = ''
#     _CE_CONDA = ''
#     CONDA_PYTHON_EXE = '/Users/juliesmith/opt/anaconda3/bin/python'
#     CONDA_SHLVL = '1'
#     CONDA_PREFIX = '/Users/juliesmith/opt/anaconda3'
#     CONDA_DEFAULT_ENV = 'base'
#     CONDA_PROMPT_MODIFIER = '(base) '
#     VIRTUAL_ENV = '/Users/juliesmith/PycharmProjects/kivytutorial/venv'
#     PS1 = '(venv) (base) %n@%m %1~ %# '
#     _ = '/Users/juliesmith/PycharmProjects/kivytutorial/venv/bin/buildozer'
#     __PYVENV_LAUNCHER__ = '/Users/juliesmith/PycharmProjects/kivytutorial/venv/bin/python'
# 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











ZenCODE

unread,
Apr 12, 2020, 2:45:19 AM4/12/20
to Kivy users support
Android packaging is not yet supported on MacOSX. For that, I would suggest using VirtualBox + a linux installation.

Julie Smith

unread,
Apr 16, 2020, 6:46:06 PM4/16/20
to Kivy users support
Thank you - I will try that
Message has been deleted

Irurik Soft Labs

unread,
Apr 17, 2020, 12:54:06 PM4/17/20
to Kivy users support
I recently tried it and it works. The build APK also runs perfectly on android handset.

But when Mac support will be done?

Will Tejeda

unread,
Apr 17, 2020, 1:31:19 PM4/17/20
to kivy-...@googlegroups.com
Don't mean to hijack the tread but since Mac is was mentioned ... Is there an easy way to do the opposite ? And have an osx vm on Windows ?



--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/90718012-d66e-47c3-87bc-8c2c776a1a35%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages