Can anyone tell what this error is all about

109 views
Skip to first unread message

KRATI BHANDARI

unread,
Apr 30, 2020, 2:54:57 AM4/30/20
to Kivy users support
Command failed: /usr/local/opt/python/bin/python3.7 -m pythonforandroid.toolchain create --dist_name=kvcalc --bootstrap=sdl2 --requirements=python3,kivy --arch armeabi-v7a --copy-libs --color=always --storage-dir="/Users/krati/PycharmProjects/First/.buildozer/android/platform/build-armeabi-v7a" --ndk-api=21
# ENVIRONMENT:
#     SHELL = '/bin/zsh'
#     TMPDIR = '/var/folders/9m/3mbt27sj01g59sx_1hkn2p8c0000gn/T/'
#     XPC_FLAGS = '0x0'
#     LOGIN_SHELL = '1'
#     LANG = 'en_US.UTF-8'
#     _CE_CONDA = ''
#     XPC_SERVICE_NAME = '0'
#     PWD = '/Users/krati/PycharmProjects/First'
#     ZDOTDIR = ''
#     CONDA_PROMPT_MODIFIER = '(First) '
#     SSH_AUTH_SOCK = '/private/tmp/com.apple.launchd.gTf3lkNC5j/Listeners'
#     PATH = '/Users/krati/.buildozer/android/platform/apache-ant-1.9.4/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/krati/.conda/envs/First/bin:/Users/krati/opt/anaconda3/condabin'
#     LC_CTYPE = 'en_IN.UTF-8'
#     QT_API = 'pyqt5'
#     _CE_M = ''
#     CONDA_ROOT = '/Users/krati/opt/anaconda3'
#     TERM = 'xterm-256color'
#     CONDA_PYTHON_EXE = '/Users/krati/opt/anaconda3/bin/python'
#     CONDA_EXE = '/Users/krati/opt/anaconda3/bin/conda'
#     USER = 'krati'
#     CONDA_DEFAULT_ENV = 'First'
#     __INTELLIJ_COMMAND_HISTFILE__ = ('/Users/krati/Library/Application '
 'Support/JetBrains/PyCharmCE2020.1/terminal/history/history-')
#     CONDA_PREFIX = '/Users/krati/.conda/envs/First'
#     LC_ALL = 'en_US.UTF-8'
#     TERMINAL_EMULATOR = 'JetBrains-JediTerm'
#     CONDA_SHLVL = '2'
#     __CF_USER_TEXT_ENCODING = '0x1F5:0x0:0x0'
#     SHLVL = '3'
#     LOGNAME = 'krati'
#     HOME = '/Users/krati'
#     OLDPWD = '/Users/krati/PycharmProjects/First'
#     CONDA_PREFIX_1 = '/Users/krati/opt/anaconda3'
#     GSETTINGS_SCHEMA_DIR_CONDA_BACKUP = ''
#     GSETTINGS_SCHEMA_DIR = '/Users/krati/.conda/envs/First/share/glib-2.0/schemas'
#     _ = '/usr/local/bin/buildozer'
#     __PYVENV_LAUNCHER__ = '/usr/local/Cellar/python/3.7.7/bin/python3.7'
#     PACKAGES_PATH = '/Users/krati/.buildozer/android/packages'
#     ANDROIDSDK = '/Users/krati/.buildozer/android/platform/android-sdk'
#     ANDROIDNDK = '/Users/krati/.buildozer/android/platform/android-ndk-r19b'
#     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

Craig

unread,
Apr 30, 2020, 4:07:28 AM4/30/20
to kivy-...@googlegroups.com
On 2020/04/30 08:54, KRATI BHANDARI wrote:
> Command failed: /usr/local/opt/python/bin/python3.7 -m
> pythonforandroid.toolchain create --dist_name=kvcalc --bootstrap=sdl2
> --requirements=python3,kivy --arch armeabi-v7a --copy-libs
> --color=always
> --storage-dir="/Users/krati/PycharmProjects/First/.buildozer/android/platform/build-armeabi-v7a"
> --ndk-api=21
>
I'm at exactly the same place as you with a Buildozer install. I
believe that python for Android has not been fully installed.

I came to this conclusion by trying the command manually. Running
"python3 -m pythonforandroid.toolchain create" on the command line
results in ModuleNotFoundError: No module named 'pythonforandoid'.

My full log is attached if anybody wants to take a look.

Craig

log.txt

Robert Flatt

unread,
Apr 30, 2020, 1:07:50 PM4/30/20
to Kivy users support
Is this on MacOS ?

Building for Android on MacOS does not work.
Workaround is is to install a Linux VM

Craig Johnson

unread,
Apr 30, 2020, 3:17:11 PM4/30/20
to kivy-...@googlegroups.com

I don’t know about the original poster, but I’m running it on an Ubuntu VM under Windows.

 

Craig

KRATI BHANDARI

unread,
Apr 30, 2020, 3:42:25 PM4/30/20
to Kivy users support
Ya, it is a mac OS Thank You.

Robert Flatt

unread,
Apr 30, 2020, 7:47:20 PM4/30/20
to Kivy users support
Craig

yes, the issue in your post is different.

Is log_level =2 ?

The log file as shown is pretty much unreadable, I did find this:

raise TypeError("Invalid special arguments:\n\n%s\n" % exc_msg) 
TypeError: Invalid special arguments: 'env': env must be a dict.

I have no clue why this occurs.
So I Googled, you are not the only one seeing this today https://askubuntu.com/questions/1233200/buildozer-crashed-with-env-env-must-be-a-dict

But I can't replicate. I tried a few different builds (WSL Ubuntu 18.04) , no error.
Until the picture becomes clearer I have no suggestion as to what to do. Maybe somebody else does?

Robert Flatt

unread,
Apr 30, 2020, 9:12:58 PM4/30/20
to Kivy users support
Update, looks like this is fixed:

But it is fixed in the    develop    branch,  Buildozer defaults to the    master   branch

So the workaround is to get close to the bleeding edge (or wait a while).
No idea what the side effects might be.

I tried changing the p4a version but got the following Python 3.8 related (?) error:
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
I did not try to go any further.

This is how I changed the p4a version:

Edit buildozer.spec , below this:
#p4a.branch = master
    add
p4a.branch = develop

Important:
buildozer appclean
before
biuldozer android debug

Craig

unread,
May 1, 2020, 4:59:11 PM5/1/20
to kivy-...@googlegroups.com


On 2020/05/01 03:12, Robert Flatt wrote:
Update, looks like this is fixed:

But it is fixed in the    develop    branch,  Buildozer defaults to the    master   branch

So the workaround is to get close to the bleeding edge (or wait a while).
No idea what the side effects might be.

I tried changing the p4a version but got the following Python 3.8 related (?) error:
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
I did not try to go any further.

Hi Robert,

Thanks for that link, it was what I needed.  I applied that change to my local copy of P4A and it resolved the issue and Buildozer now appears to be working.

I did not install the develop branch, so I have no idea how that would have gone.

Craig

Reply all
Reply to author
Forward
0 new messages