Hi!
I managed to get Buildozer to work about 6 months ago, but now when I try again it gets stuck at "Deploy on ...".
I am using the same Android phone, same USB cable, Developer mode is enabled, USB-debugging is ON, and USB for file transfer is enabled.
Back then, some problems were solved by deleting the '.buildozer' folder in my Python project folder, so I tried that, and ran, in Terminal, the following commands:
$ buildozer -v android debug
$ buildozer android deploy run logcat
But the process is stuck at:
# Compile platform # Deploy on ZY3224R37X
$ buildozer -v android debug deploy run logcat > my_log.txt
I have attached the generated 'my_log.txt' file, and the 'buildozer.spec' file from the Python project folder.
The first command '$ buildozer -v android debug' generates a huge output in Terminal. For your convenience, I have tried including the error- and warning-messages hidden in that output here:
First the error messages (some of them include the text 'expected to fail'):
[INFO]: -> running python3 setup.py build_ext -v
Exception in thread background thread for pid 5367:
Traceback (most recent call last):
File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
self.run()
File "/usr/lib/python3.6/threading.py", line 864, in run
self._target(*self._args, **self._kwargs)
File "/home/henrik/.local/lib/python3.6/site-packages/sh.py", line 1540, in wrap
fn(*args, **kwargs)
File "/home/henrik/.local/lib/python3.6/site-packages/sh.py", line 2459, in background_thread
handle_exit_code(exit_code)
File "/home/henrik/.local/lib/python3.6/site-packages/sh.py", line 2157, in fn
return self.command.handle_command_exit_code(exit_code)
File "/home/henrik/.local/lib/python3.6/site-packages/sh.py", line 815, in handle_command_exit_code
raise exc
sh.ErrorReturnCode_1:
RAN: /mnt/4AF15A0435E762B4/DataDoc/OneDrive/PycharmProjects/2d-graphics/touchtracer/.buildozer/android/platform/build-arm64-v8a/build/other_builds/hostpython3/desktop/hostpython3/native-build/python3 setup.py build_ext -v
STDOUT:
warning: [options] bootstrap class path not set in conjunction with -source 1.7
1 warning
clang: error: no such file or directory: 'jnius/jnius.c' clang: error: no input files error: command '/home/henrik/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang' failed with exit status 1 STDERR: [INFO]: pyjnius first build failed (as expected)
[INFO]: Trying first build of android to get cython files: this is expected to fail
[INFO]: -> running python3 setup.py build_ext -v
Exception in thread background thread for pid 9317:
Traceback (most recent call last):
File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
self.run()
File "/usr/lib/python3.6/threading.py", line 864, in run
self._target(*self._args, **self._kwargs)
File "/home/henrik/.local/lib/python3.6/site-packages/sh.py", line 1540, in wrap
fn(*args, **kwargs)
File "/home/henrik/.local/lib/python3.6/site-packages/sh.py", line 2459, in background_thread
handle_exit_code(exit_code)
File "/home/henrik/.local/lib/python3.6/site-packages/sh.py", line 2157, in fn
return self.command.handle_command_exit_code(exit_code)
File "/home/henrik/.local/lib/python3.6/site-packages/sh.py", line 815, in handle_command_exit_code
raise exc
sh.ErrorReturnCode_1:
RAN: /mnt/4AF15A0435E762B4/DataDoc/OneDrive/PycharmProjects/2d-graphics/touchtracer/.buildozer/android/platform/build-arm64-v8a/build/other_builds/hostpython3/desktop/hostpython3/native-build/python3 setup.py build_ext -v
STDOUT:
running build_ext
building 'android._android' extension
creating build
creating build/temp.linux-x86_64-3.8
creating build/temp.linux-x86_64-3.8/android
native-build -c android/_android.c -o build/temp.linux-x86_64-3.8/android/_android.o
clang: error: no such file or directory: 'android/_android.c' clang: error: no input files error: command '/home/henrik/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang' failed with exit status 1 STDERR: [INFO]: android first build failed (as expected) [INFO]: Running cython where appropriate
[INFO]: Trying first build of kivy to get cython files: this is expected to fail
[INFO]: -> running python3 setup.py build_ext -v
Exception in thread background thread for pid 11726:
Traceback (most recent call last):
File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
self.run()
File "/usr/lib/python3.6/threading.py", line 864, in run
self._target(*self._args, **self._kwargs)
File "/home/henrik/.local/lib/python3.6/site-packages/sh.py", line 1540, in wrap
fn(*args, **kwargs)
File "/home/henrik/.local/lib/python3.6/site-packages/sh.py", line 2459, in background_thread
handle_exit_code(exit_code)
File "/home/henrik/.local/lib/python3.6/site-packages/sh.py", line 2157, in fn
return self.command.handle_command_exit_code(exit_code)
File "/home/henrik/.local/lib/python3.6/site-packages/sh.py", line 815, in handle_command_exit_code
raise exc
sh.ErrorReturnCode_1:
RAN: /mnt/4AF15A0435E762B4/DataDoc/OneDrive/PycharmProjects/2d-graphics/touchtracer/.buildozer/android/platform/build-arm64-v8a/build/other_builds/hostpython3/desktop/hostpython3/native-build/python3 setup.py build_ext -v
STDOUT:
Using setuptools
Environ change use_sdl2 -> True
Not using cython on android
Using this graphics system: OpenGL ES 2
WARNING: A problem occurred while running pkg-config --libs --cflags sdl2 SDL2_ttf SDL2_image SDL2_mixer (code 1)
b"Package SDL2_ttf was not found in the pkg-config search path.\nPerhaps you should add the directory containing `SDL2_ttf.pc'\nto the PKG_CONFIG_PATH environment variable\nNo package 'SDL2_ttf' found\nPackage SDL2_mixer was not found in the pkg-config search path.\nPerhaps you should add the directory containing `SDL2_mixer.pc'\nto the PKG_CONFIG_PATH environment variable\nNo package 'SDL2_mixer' found\n"
native-build -c kivy/_event.c -o build/temp.linux-x86_64-3.8/kivy/_event.o
clang: error: no such file or directory: 'kivy/_event.c'
clang: error: no input files
error: command '/home/henrik/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang' failed with exit status 1
STDERR:
[INFO]: kivy first build failed (as expected)
Compiling '/mnt/4AF15A0435E762B4/DataDoc/OneDrive/PycharmProjects/2d-graphics/touchtracer/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Lib/lib2to3/tests/data/bom.py'...
*** File "/mnt/4AF15A0435E762B4/DataDoc/OneDrive/PycharmProjects/2d-graphics/touchtracer/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Lib/lib2to3/tests/data/bom.py", line 2
print "BOM BOOM!"
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("BOM BOOM!")?
Compiling '/mnt/4AF15A0435E762B4/DataDoc/OneDrive/PycharmProjects/2d-graphics/touchtracer/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Lib/lib2to3/tests/data/crlf.py'...
*** File "/mnt/4AF15A0435E762B4/DataDoc/OneDrive/PycharmProjects/2d-graphics/touchtracer/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Lib/lib2to3/tests/data/crlf.py", line 1
print "hi"
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("hi")?
Compiling '/mnt/4AF15A0435E762B4/DataDoc/OneDrive/PycharmProjects/2d-graphics/touchtracer/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Lib/lib2to3/tests/data/different_encoding.py'...
*** File "/mnt/4AF15A0435E762B4/DataDoc/OneDrive/PycharmProjects/2d-graphics/touchtracer/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Lib/lib2to3/tests/data/different_encoding.py", line 3
print u'ßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞ'
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(u'ßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞ')?
Compiling '/mnt/4AF15A0435E762B4/DataDoc/OneDrive/PycharmProjects/2d-graphics/touchtracer/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Lib/lib2to3/tests/data/false_encoding.py'...
*** File "/mnt/4AF15A0435E762B4/DataDoc/OneDrive/PycharmProjects/2d-graphics/touchtracer/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Lib/lib2to3/tests/data/false_encoding.py", line 2
print '#coding=0'
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print('#coding=0')?
Compiling '/mnt/4AF15A0435E762B4/DataDoc/OneDrive/PycharmProjects/2d-graphics/touchtracer/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Lib/lib2to3/tests/data/py2_test_grammar.py'...
*** File "/mnt/4AF15A0435E762B4/DataDoc/OneDrive/PycharmProjects/2d-graphics/touchtracer/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Lib/lib2to3/tests/data/py2_test_grammar.py", line 31
self.assertEquals(0377, 255)
^
SyntaxError: leading zeros in decimal integer literals are not permitted; use an 0o prefix for octal integers
Compiling '/mnt/4AF15A0435E762B4/DataDoc/OneDrive/PycharmProjects/2d-graphics/touchtracer/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Lib/test/bad_coding.py'...
*** File "/mnt/4AF15A0435E762B4/DataDoc/OneDrive/PycharmProjects/2d-graphics/touchtracer/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Lib/test/bad_coding.py", line 0
SyntaxError: unknown encoding: uft-8
Compiling '/mnt/4AF15A0435E762B4/DataDoc/OneDrive/PycharmProjects/2d-graphics/touchtracer/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Lib/test/bad_coding2.py'...
*** File "/mnt/4AF15A0435E762B4/DataDoc/OneDrive/PycharmProjects/2d-graphics/touchtracer/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Lib/test/bad_coding2.py", line 0
SyntaxError: encoding problem: utf8 with BOM
Compiling '/mnt/4AF15A0435E762B4/DataDoc/OneDrive/PycharmProjects/2d-graphics/touchtracer/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Lib/test/badsyntax_3131.py'...
*** File "/mnt/4AF15A0435E762B4/DataDoc/OneDrive/PycharmProjects/2d-graphics/touchtracer/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Lib/test/badsyntax_3131.py", line 2
€ = 2
^
SyntaxError: invalid character in identifier
Compiling '/mnt/4AF15A0435E762B4/DataDoc/OneDrive/PycharmProjects/2d-graphics/touchtracer/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Lib/test/badsyntax_future10.py'...
*** File "/mnt/4AF15A0435E762B4/DataDoc/OneDrive/PycharmProjects/2d-graphics/touchtracer/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Lib/test/badsyntax_future10.py", line 3
from __future__ import print_function
^
SyntaxError: from __future__ imports must occur at the beginning of the file
Compiling '/mnt/4AF15A0435E762B4/DataDoc/OneDrive/PycharmProjects/2d-graphics/touchtracer/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Lib/test/badsyntax_future3.py'...
*** File "/mnt/4AF15A0435E762B4/DataDoc/OneDrive/PycharmProjects/2d-graphics/touchtracer/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Lib/test/badsyntax_future3.py", line 3
from __future__ import rested_snopes
^
SyntaxError: future feature rested_snopes is not defined
Compiling '/mnt/4AF15A0435E762B4/DataDoc/OneDrive/PycharmProjects/2d-graphics/touchtracer/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Lib/test/badsyntax_future4.py'...
*** File "/mnt/4AF15A0435E762B4/DataDoc/OneDrive/PycharmProjects/2d-graphics/touchtracer/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Lib/test/badsyntax_future4.py", line 3
from __future__ import nested_scopes
^
SyntaxError: from __future__ imports must occur at the beginning of the file
Compiling '/mnt/4AF15A0435E762B4/DataDoc/OneDrive/PycharmProjects/2d-graphics/touchtracer/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Lib/test/badsyntax_future5.py'...
*** File "/mnt/4AF15A0435E762B4/DataDoc/OneDrive/PycharmProjects/2d-graphics/touchtracer/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Lib/test/badsyntax_future5.py", line 4
from __future__ import nested_scopes
^
SyntaxError: from __future__ imports must occur at the beginning of the file
Compiling '/mnt/4AF15A0435E762B4/DataDoc/OneDrive/PycharmProjects/2d-graphics/touchtracer/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Lib/test/badsyntax_future6.py'...
*** File "/mnt/4AF15A0435E762B4/DataDoc/OneDrive/PycharmProjects/2d-graphics/touchtracer/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Lib/test/badsyntax_future6.py", line 3
from __future__ import nested_scopes
^
SyntaxError: from __future__ imports must occur at the beginning of the file
Compiling '/mnt/4AF15A0435E762B4/DataDoc/OneDrive/PycharmProjects/2d-graphics/touchtracer/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Lib/test/badsyntax_future7.py'...
*** File "/mnt/4AF15A0435E762B4/DataDoc/OneDrive/PycharmProjects/2d-graphics/touchtracer/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Lib/test/badsyntax_future7.py", line 3
from __future__ import nested_scopes; import string; from __future__ import \
^
SyntaxError: from __future__ imports must occur at the beginning of the file
Compiling '/mnt/4AF15A0435E762B4/DataDoc/OneDrive/PycharmProjects/2d-graphics/touchtracer/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Lib/test/badsyntax_future8.py'...
*** File "/mnt/4AF15A0435E762B4/DataDoc/OneDrive/PycharmProjects/2d-graphics/touchtracer/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Lib/test/badsyntax_future8.py", line 3
from __future__ import *
^
SyntaxError: future feature * is not defined
Compiling '/mnt/4AF15A0435E762B4/DataDoc/OneDrive/PycharmProjects/2d-graphics/touchtracer/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Lib/test/badsyntax_future9.py'...
*** File "/mnt/4AF15A0435E762B4/DataDoc/OneDrive/PycharmProjects/2d-graphics/touchtracer/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Lib/test/badsyntax_future9.py", line 3
from __future__ import nested_scopes, braces
^
SyntaxError: not a chance
Compiling '/mnt/4AF15A0435E762B4/DataDoc/OneDrive/PycharmProjects/2d-graphics/touchtracer/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Lib/test/badsyntax_pep3120.py'...
*** File "/mnt/4AF15A0435E762B4/DataDoc/OneDrive/PycharmProjects/2d-graphics/touchtracer/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Lib/test/badsyntax_pep3120.py", line 1
SyntaxError: (unicode error) 'utf-8' codec can't decode byte 0xf6 in position 1: invalid start byte
[DEBUG]: /home/henrik/.buildozer/android/platform/android-ndk-r19c/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/aarch64-linux-android-strip:/mnt/4AF15A0435E762B4/DataDoc/OneDrive/PycharmProjects/2d-graphics/touchtracer/.buildozer/android/platform/build-arm64-v8a/dists/GeoESPtrainingTEST__arm64-v8a/build/intermediates/transforms/mergeJniLibs/debug/0/lib/arm64-v8a/gdb.setup: File format not recognized
[DEBUG]:
[DEBUG]: Unable to strip library '1' due to error
Now the warning messages:
# Installing/updating SDK platform tools if necessary # Run '/home/henrik/.buildozer/android/platform/android-sdk/tools/bin/sdkmanager tools platform-tools' # Cwd /home/henrik/.buildozer/android/platform/android-sdk Warning: File /home/henrik/.android/repositories.cfg could not be loaded. [=======================================] 100% Computing updates... # Run '/home/henrik/.buildozer/android/platform/android-sdk/tools/bin/sdkmanager --update' # Cwd /home/henrik/.buildozer/android/platform/android-sdk Warning: File /home/henrik/.android/repositories.cfg could not be loaded. [=======================================] 100% Computing updates... # Updating SDK build tools if necessary # Run '/home/henrik/.buildozer/android/platform/android-sdk/tools/bin/sdkmanager --list' # Cwd /home/henrik/.buildozer/android/platform/android-sdk Warning: File /home/henrik/.android/repositories.cfg could not be loaded. Installed packages:=====================] 100% Computing updates... [WARNING]: install_libs called with no libraries to install! [WARNING]: lld not found, linking without it. Consider installing lld if linker errors occur. [WARNING]: Context's python recipe found, skipping biglink (will this work?)
py3_test_grammar.py:652: SyntaxWarning: "is" with a literal. Did you mean "=="?
if 1 is 1: pass
py3_test_grammar.py:653: SyntaxWarning: "is not" with a literal. Did you mean "!="?
if 1 is not 1: pass
py3_test_grammar.py:656: SyntaxWarning: "is" with a literal. Did you mean "=="?
if 1 < 1 > 1 == 1 >= 1 <= 1 != 1 in 1 not in 1 is 1 is not 1: pass
highlight.py:45: SyntaxWarning: "is not" with a literal. Did you mean "!="?
if len(sys.argv) is not 4:
focus.py:463: SyntaxWarning: "is" with a literal. Did you mean "=="?
walk_tree = 'walk' if focus_dir is 'focus_next' else 'walk_reverse'
focus.py:476: SyntaxWarning: "is" with a literal. Did you mean "=="?
if focus_dir is 'focus_next':
knspace.py:460: SyntaxWarning: "is not" with a literal. Did you mean "!="?
if parent_knspace is not 0: WARNING: Received a --sdk argument, but this argument is deprecated and does nothing. No setup.py/pyproject.toml used, copying full private data into .apk.
PS: In my Firefox browser (on Ubuntu 18.04) this editor window is VERY small. It’s only appropriate for small comments. Very strange limitation!
# Run '/home/henrik/.buildozer/android/platform/android-sdk/platform-tools/adb devices' # Cwd None List of devices attached ZY3224R37X device
# Run '/home/henrik/.buildozer/android/platform/android-sdk/platform-tools/adb install -r "/mnt/4AF15A0435E762B4/DataDoc/OneDrive/PycharmProjects/2d-graphics/touchtracer/bin/GeoESPtrainingTEST__arm64-v8a-0.1-arm64-v8a-debug.apk"'
I just deleted the '.buildozer' folder in my project folder 2 days ago, so I don't think that would help.
But there are also 2 buildozer folders in my home folder '~/':~/buildozer 2.5 MB
~/.buildozer 8.4 GB
There are also 2 buildozer folders in /usr/local/lib :
Isn't there some (semi-)automatic updating process?
$ pip3 install --user --upgrade buildozer
henrik@Henrik-L570:~$ buildozer appclean # Deleting /home/henrik/.buildozer
$ buildozer appclean
$ buildozer android debug
(Here I connected the Android device via USB, 'USB for file transfer' and 'USB debugging enabled'.)
$ buildozer android deploy run logcat
The Terminal output of the last command is below. I have attached the output of the other commands, both as .ODT and as .RTF (about 209 A4 pages).
But still nothing happens on the Android device...?
Please help!
If this doesn't work, I will have to learn at least one new programming language (suitable for smart phone apps) and convert my whole project into that language... Suicide seems more pleasant than that...
I can add that the bin folder in my project folder contains this:
henrik@Henrik-L570:/mnt/4AF15A0435E762B4/DataDoc/OneDrive/PycharmProjects/2d-graphics/touchtracer/bin$ ls -l total 43976 -rwxrwxrwx 1 root root 16151763 aug 5 23:50 GeoESPtrainingTEST__arm64-v8a-0.1-arm64-v8a-debug.apk -rwxrwxrwx 1 root root 14468129 mar 2 13:34 GeoESPtrainingTEST__arm64-v8a-0.1-arm64-v8a-release.apk -rwxrwxrwx 1 root root 14404679 mar 2 11:43 GeoESPtrainingTEST__armeabi-v7a-0.1-armeabi-v7a-release.apk henrik@Henrik-L570:/mnt/4AF15A0435E762B4/DataDoc/OneDrive/PycharmProjects/2d-graphics/touchtracer/bin$
(The 2 'release' versions are from a succesfull Google Play 'Internal Test'.)
henrik@Henrik-L570:~$ buildozer android deploy run logcat # Ensure build layout No buildozer.spec found in the current directory. Abandon. henrik@Henrik-L570:~$ cd "/mnt/4AF15A0435E762B4/DataDoc/OneDrive/PycharmProjects/2d-graphics/touchtracer/" henrik@Henrik-L570:/mnt/4AF15A0435E762B4/DataDoc/OneDrive/PycharmProjects/2d-graphics/touchtracer$ buildozer android deploy run logcat # Check configuration tokens # Ensure build layout # Check configuration tokens # Preparing build # Check requirements for android # Run 'dpkg --version' # Cwd None Debian 'dpkg' package management program version 1.19.0.5 (amd64). This is free software; see the GNU General Public License version 2 or later for copying conditions. There is NO warranty. # Search for Git (git) # -> found at /usr/bin/git # Search for Cython (cython) # -> found at /home/henrik/.local/bin/cython # Search for Java compiler (javac) # -> found at /usr/lib/jvm/java-8-openjdk-amd64/bin/javac # Search for Java keytool (keytool) # -> found at /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/keytool # Install platform # Run 'git config --get remote.origin.url' # Cwd /mnt/4AF15A0435E762B4/DataDoc/OneDrive/PycharmProjects/2d-graphics/touchtracer/.buildozer/android/platform/python-for-android https://github.com/kivy/python-for-android.git # Run 'git branch -vv' # Cwd /mnt/4AF15A0435E762B4/DataDoc/OneDrive/PycharmProjects/2d-graphics/touchtracer/.buildozer/android/platform/python-for-android * master 1b3b0e3f [origin/master] Merge pull request #2225 from kivy/release-2020.06.02 # Run '/usr/bin/python3 -m pip install -q --user \'appdirs\' \'colorama>=0.3.3\' \'jinja2\' \'six\' \'enum34; python_version<"3.4"\' \'sh>=1.10; sys_platform!="nt"\' \'pep517<0.7.0"\' \'toml\'' # Cwd None # Apache ANT found at /home/henrik/.buildozer/android/platform/apache-ant-1.9.4 # Android SDK found at /home/henrik/.buildozer/android/platform/android-sdk # Recommended android's NDK version by p4a is: 19c # Android NDK found at /home/henrik/.buildozer/android/platform/android-ndk-r19c # Check application requirements # Check garden requirements # Compile platform # Run '/usr/bin/python3 -m pythonforandroid.toolchain create --dist_name=GeoESPtrainingTEST --bootstrap=sdl2 --requirements=python3,kivy,pil,sqlite3,pygments,docutils --arch arm64-v8a --copy-libs --color=always --storage-dir="/mnt/4AF15A0435E762B4/DataDoc/OneDrive/PycharmProjects/2d-graphics/touchtracer/.buildozer/android/platform/build-arm64-v8a" --ndk-api=21' # Cwd /mnt/4AF15A0435E762B4/DataDoc/OneDrive/PycharmProjects/2d-graphics/touchtracer/.buildozer/android/platform/python-for-android [INFO]: Will compile for the following archs: arm64-v8a [INFO]: Found Android API target in $ANDROIDAPI: 28 [INFO]: Available Android APIs are (28) [INFO]: Requested API target 28 is available, continuing. [INFO]: Found NDK dir in $ANDROIDNDK: /home/henrik/.buildozer/android/platform/android-ndk-r19c [INFO]: Found NDK version 19c [INFO]: Getting NDK API version (i.e. minimum supported API) from user argument [INFO]: ccache is missing, the build will not be optimized in the future. [INFO]: Found the following toolchain versions: ['4.9'] [INFO]: Picking the latest gcc toolchain, here 4.9 [INFO]: Of the existing distributions, the following meet the given requirements: [INFO]: GeoESPtrainingTEST: min API 21, includes recipes (freetype, hostpython3, jpeg, libffi, openssl, png, sdl2_image, sdl2_mixer, sdl2_ttf, sqlite3, python3, sdl2, setuptools, pil, six, pyjnius, android, kivy, docutils, pygments, certifi), built for archs (arm64-v8a) [INFO]: GeoESPtrainingTEST has compatible recipes, using this one # Run '/home/henrik/.buildozer/android/platform/android-sdk/platform-tools/adb devices'
# Cwd None List of devices attached ZY3224R37X device
# Deploy on ZY3224R37X
# Run '/home/henrik/.buildozer/android/platform/android-sdk/platform-tools/adb install -r "/mnt/4AF15A0435E762B4/DataDoc/OneDrive/PycharmProjects/2d-graphics/touchtracer/bin/GeoESPtrainingTEST__arm64-v8a-0.1-arm64-v8a-debug.apk"'
# Cwd /home/henrik/.buildozer/android/platform
^CTraceback (most recent call last):
File "/usr/local/bin/buildozer", line 11, in <module>
load_entry_point('buildozer==0.40.dev0', 'console_scripts', 'buildozer')()
File "/usr/local/lib/python3.6/dist-packages/buildozer-0.40.dev0-py3.6.egg/buildozer/scripts/client.py", line 13, in main
Buildozer().run_command(sys.argv[1:])
File "/usr/local/lib/python3.6/dist-packages/buildozer-0.40.dev0-py3.6.egg/buildozer/__init__.py", line 1071, in run_command
self.target.run_commands(args)
File "/usr/local/lib/python3.6/dist-packages/buildozer-0.40.dev0-py3.6.egg/buildozer/target.py", line 92, in run_commands
func(args)
File "/usr/local/lib/python3.6/dist-packages/buildozer-0.40.dev0-py3.6.egg/buildozer/targets/android.py", line 1319, in cmd_deploy
cwd=self.buildozer.global_platform_dir)
File "/usr/local/lib/python3.6/dist-packages/buildozer-0.40.dev0-py3.6.egg/buildozer/__init__.py", line 311, in cmd
readx = select.select([fd_stdout, fd_stderr], [], [])[0]
KeyboardInterrupt
henrik@Henrik-L570:/mnt/4AF15A0435E762B4/DataDoc/OneDrive/PycharmProjects/2d-graphics/touchtracer$
/home/henrik/.buildozer/android/platform/android-sdk/platform-tools/adb install -r "/mnt/4AF15A0435E762B4/DataDoc/OneDrive/PycharmProjects/2d-graphics/touchtracer/bin/GeoESPtrainingTEST__arm64-v8a-0.1-arm64-v8a-debug.apk"
henrik@Henrik-L570:/mnt/4AF15A0435E762B4/DataDoc/OneDrive/PycharmProjects/2d-graphics/touchtracer/bin$ /home/henrik/.buildozer/android/platform/android-sdk/platform-tools/adb install -r "/mnt/4AF15A0435E762B4/DataDoc/OneDrive/PycharmProjects/2d-graphics/touchtracer/bin/GeoESPtrainingTEST__arm64-v8a-0.1-arm64-v8a-debug.apk" Performing Streamed Install ^C henrik@Henrik-L570:/mnt/4AF15A0435E762B4/DataDoc/OneDrive/PycharmProjects/2d-graphics/touchtracer/bin$
C:\Users\Bobf\Documents\kivy>adb install -r myapp-0.2-arm64-v8a-debug.apk
Performing Streamed Install
Success
C:\Users\Bobf\Documents\kivy>adb install -r myapp-0.2-arm64-v8a-debug.apk
Performing Push Install
adb: error: failed to get feature set: no devices/emulators found
henrik@Henrik-L570:/mnt/4AF15A0435E762B4/DataDoc/OneDrive/PycharmProjects/2d-graphics/touchtracer$ /home/henrik/.buildozer/android/platform/android-sdk/platform-tools/adb install -r "/mnt/4AF15A0435E762B4/DataDoc/OneDrive/PycharmProjects/2d-graphics/touchtracer/bin/GeoESPtrainingTEST__arm64-v8a-0.1-arm64-v8a-release.apk" Performing Streamed Install ^C henrik@Henrik-L570:/mnt/4AF15A0435E762B4/DataDoc/OneDrive/PycharmProjects/2d-graphics/touchtracer$
(First the build failed. No space characters are allowed in the path to the project folder...)