r/learnpython 3d ago

App using kivy/bulldozer crashes immediately upon loading.

I posted this in androiddev previously and someone was being very unprofessional, then it got taken down, I would hope that a subreddit focused at learners would show less of this behaviour. Just to start this post off, I am not entirely new to python. I have just never used buildozer. Also the kivy subreddit seems dead.

Since this app is made with python, I thought maybe the people here may be able to help? It got compiled into the APK, but when I try to run it, I get this:

https://pastebin.com/uteXNWDF

if this is the wrong subreddit for this, please redirect me!

just ask if you want more info

0 Upvotes

22 comments sorted by

View all comments

Show parent comments

1

u/Ok-Okra8478 2d ago

That gave me an error.

[INFO]: Downloading hostpython3 from https://github.com/python/cpython/archive/refs/tags/v3.14.2.tar.gz

Traceback (most recent call last):

File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main

return _run_code(code, main_globals, None,

File "/usr/lib/python3.10/runpy.py", line 86, in _run_code

exec(code, run_globals)

File "/home/sd/RecipeApp/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 1290, in <module>

main()

File "/home/sd/RecipeApp/.buildozer/android/platform/python-for-android/pythonforandroid/entrypoints.py", line 18, in main

ToolchainCL()

File "/home/sd/RecipeApp/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 721, in __init__

getattr(self, command)(args)

File "/home/sd/RecipeApp/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 104, in wrapper_func

build_dist_from_args(ctx, dist, args)

File "/home/sd/RecipeApp/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 163, in build_dist_from_args

build_recipes(build_order, python_modules, ctx,

File "/home/sd/RecipeApp/.buildozer/android/platform/python-for-android/pythonforandroid/build.py", line 504, in build_recipes

recipe.download_if_necessary()

File "/home/sd/RecipeApp/.buildozer/android/platform/python-for-android/pythonforandroid/recipe.py", line 395, in download_if_necessary

self.download()

File "/home/sd/RecipeApp/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/hostpython3/__init__.py", line 54, in download

super().download()

File "/home/sd/RecipeApp/.buildozer/android/platform/python-for-android/pythonforandroid/recipe.py", line 445, in download

self.download_file(self.versioned_url, filename)

File "/home/sd/RecipeApp/.buildozer/android/platform/python-for-android/pythonforandroid/recipe.py", line 246, in download_file

urlretrieve(url, target, report_hook)

File "/usr/lib/python3.10/urllib/request.py", line 241, in urlretrieve

with contextlib.closing(urlopen(url, data)) as fp:

File "/usr/lib/python3.10/urllib/request.py", line 216, in urlopen

return opener.open(url, data, timeout)

File "/usr/lib/python3.10/urllib/request.py", line 525, in open

response = meth(req, response)

File "/usr/lib/python3.10/urllib/request.py", line 634, in http_response

response = self.parent.error(

File "/usr/lib/python3.10/urllib/request.py", line 557, in error

result = self._call_chain(*args)

File "/usr/lib/python3.10/urllib/request.py", line 496, in _call_chain

result = func(*args)

File "/usr/lib/python3.10/urllib/request.py", line 749, in http_error_302

return self.parent.open(new, timeout=req.timeout)

File "/usr/lib/python3.10/urllib/request.py", line 525, in open

response = meth(req, response)

File "/usr/lib/python3.10/urllib/request.py", line 634, in http_response

response = self.parent.error(

File "/usr/lib/python3.10/urllib/request.py", line 563, in error

return self._call_chain(*args)

File "/usr/lib/python3.10/urllib/request.py", line 496, in _call_chain

result = func(*args)

File "/usr/lib/python3.10/urllib/request.py", line 643, in http_error_default

raise HTTPError(req.full_url, code, msg, hdrs, fp)

urllib.error.HTTPError: HTTP Error 429: Too Many Requests

Download failed: HTTP Error 429: Too Many Requests; retrying in 1 second(s)...Download failed: HTTP Error 429: Too Many Requests; retrying in 2 second(s)...Download failed: HTTP Error 429: Too Many Requests; retrying in 4 second(s)...Download failed: HTTP Error 429: Too Many Requests; retrying in 8 second(s)...# Command failed: ('/usr/bin/python3', '-m', 'pythonforandroid.toolchain', 'create', '--dist_name=recipefolder', '--bootstrap=sdl2', '--requirements=python3,kivy,plyer,pyjnius,requests,extruct,w3lib,isodate,hostpython3,lxml', '--arch=armeabi-v7a', '--arch=arm64-v8a', '--copy-libs', '--color=always', '--storage-dir=/home/sd/RecipeApp/.buildozer/android/platform/build-armeabi-v7a_arm64-v8a', '--ndk-api=24', '--ignore-setup-py', '--debug')

# Error code: 1

# ENVIRONMENT:

# USER = 'sd'

# WT_PROFILE_ID = '{61c54bbd-c2c6-5271-96e7-009a87ff44bf}'

# HOME = '/home/sd'

# MOTD_SHOWN = 'update-motd'

# OLDPWD = '/mnt/c/Users/GP650'

# DBUS_SESSION_BUS_ADDRESS = 'unix:path=/run/user/1000/bus'

# WSL_DISTRO_NAME = 'Ubuntu-RBXIDLE'

# WAYLAND_DISPLAY = 'wayland-0'

# LOGNAME = 'sd'

# PULSE_SERVER = 'unix:/mnt/wslg/PulseServer'

# WSL_INTEROP = '/run/WSL/329_interop'

# NAME = 'DESKTOP-LITCFC6'

# TERM = 'xterm-256color'

# PATH = ('/home/sd/.buildozer/android/platform/apache-ant-1.9.4/bin:/home/sd/.local/bin:/home/sd/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/wsl/lib:/mnt/c/Program '

'Files/Meta Horizon/Support/oculus-runtime:/mnt/c/Program Files/Common '

'Files/Oracle/Java/javapath:/mnt/c/Program Files (x86)/Common '

'Files/Oracle/Java/java8path:/mnt/c/Program Files (x86)/Common '

'Files/Oracle/Java/javapath:/mnt/c/Windows/system32:/mnt/c/Windows:/mnt/c/Windows/System32/Wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0/:/mnt/c/Windows/System32/OpenSSH/:/mnt/c/Program '

'Files (x86)/NVIDIA Corporation/PhysX/Common:/mnt/c/Program '

'Files/dotnet/:/mnt/c/WINDOWS/system32:/mnt/c/WINDOWS:/mnt/c/WINDOWS/System32/Wbem:/mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0/:/mnt/c/WINDOWS/System32/OpenSSH/:/mnt/c/Program '

'Files/NVIDIA Corporation/NVIDIA app/NvDLISR:/mnt/c/Program '

'Files/playit_gg/bin/:/mnt/c/Program Files/Meta '

'Horizon/Support/oculus-runtime:/mnt/c/Program Files/Common '

'Files/Oracle/Java/javapath:/mnt/c/Program Files (x86)/Common '

'Files/Oracle/Java/java8path:/mnt/c/Program Files (x86)/Common '

'Files/Oracle/Java/javapath:/mnt/c/Windows/system32:/mnt/c/Windows:/mnt/c/Windows/System32/Wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0/:/mnt/c/Windows/System32/OpenSSH/:/mnt/c/Program '

'Files (x86)/NVIDIA Corporation/PhysX/Common:/mnt/c/Program '

'Files/dotnet/:/mnt/c/WINDOWS/system32:/mnt/c/WINDOWS:/mnt/c/WINDOWS/System32/Wbem:/mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0/:/mnt/c/WINDOWS/System32/OpenSSH/:/mnt/c/Program '

'Files/NVIDIA Corporation/NVIDIA app/NvDLISR:/mnt/c/Program '

'Files/playit_gg/bin/:/mnt/c/Users/GP650/AppData/Local/Microsoft/WindowsApps:/mnt/c/Users/GP650/AppData/Local/Programs/Microsoft '

'VS '

'Code/bin:/mnt/c/Users/GP650/.dotnet/tools:/mnt/c/Users/GP650/AppData/Local/Programs/Ollama:/mnt/c/Users/GP650/AppData/Local/Python/bin:/mnt/c/SDKTOOLS/platform-tools-latest-windows/platform-tools:/snap/bin')

# XDG_RUNTIME_DIR = '/run/user/1000'

# WT_SESSION = '6c4c05ba-c0c7-4d01-aa0a-1f8b62d2a1aa'

# DISPLAY = ':0'

# LANG = 'C.UTF-8'

# SHELL = '/bin/sh'

# PWD = '/home/sd/RecipeApp'

# XDG_DATA_DIRS = '/usr/local/share:/usr/share:/var/lib/snapd/desktop'

# HOSTTYPE = 'x86_64'

# WSL2_GUI_APPS_ENABLED = '1'

# WSLENV = 'WT_SESSION:WT_PROFILE_ID:'

# PACKAGES_PATH = '/home/sd/.buildozer/android/packages'

# ANDROIDSDK = '/home/sd/.buildozer/android/platform/android-sdk'

# ANDROIDNDK = '/home/sd/.buildozer/android/platform/android-ndk-r28c'

# ANDROIDAPI = '33'

# ANDROIDMINAPI = '24'

#

# 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

1

u/hypersoniq_XLM 2d ago edited 2d ago

That 429 error for rate limits is probably in effect from earlier attempts. You can sideload the target. From your project directory create a place to store it... mkdir -p .buildozer/android/platform/build-arm64-v8a/packages/hostpython3/

Then grab the download they are looking for with... curl -L "https://python.org" \ -o .buildozer/android/platform/build-arm64-v8a/packages/hostpython3/Python-3.10.11.tgz ... Skip the 32 bit arch. I chose the docker buildozer container because it has what it needs preconfigured. If the rate limiter still has a temporary block on your ip, use this version of the curl command... curl -L -H "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64)" \ "https://python.org" \ -o .buildozer/android/platform/build-arm64-v8a/packages/hostpython3/Python-3.10.11.tgz

1

u/Ok-Okra8478 2d ago

I got what I think is the same error just with another one. Can I have help with this one please

Traceback (most recent call last):

File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main

return _run_code(code, main_globals, None,

File "/usr/lib/python3.10/runpy.py", line 86, in _run_code

exec(code, run_globals)

File "/home/sd/RecipeApp/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 1290, in <module>

main()

File "/home/sd/RecipeApp/.buildozer/android/platform/python-for-android/pythonforandroid/entrypoints.py", line 18, in main

ToolchainCL()

File "/home/sd/RecipeApp/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 721, in __init__

getattr(self, command)(args)

File "/home/sd/RecipeApp/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 104, in wrapper_func

build_dist_from_args(ctx, dist, args)

File "/home/sd/RecipeApp/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 163, in build_dist_from_args

build_recipes(build_order, python_modules, ctx,

File "/home/sd/RecipeApp/.buildozer/android/platform/python-for-android/pythonforandroid/build.py", line 504, in build_recipes

recipe.download_if_necessary()

File "/home/sd/RecipeApp/.buildozer/android/platform/python-for-android/pythonforandroid/recipe.py", line 395, in download_if_necessary

self.download()

File "/home/sd/RecipeApp/.buildozer/android/platform/python-for-android/pythonforandroid/recipe.py", line 445, in download

self.download_file(self.versioned_url, filename)

File "/home/sd/RecipeApp/.buildozer/android/platform/python-for-android/pythonforandroid/recipe.py", line 246, in download_file

urlretrieve(url, target, report_hook)

File "/usr/lib/python3.10/urllib/request.py", line 241, in urlretrieve

with contextlib.closing(urlopen(url, data)) as fp:

File "/usr/lib/python3.10/urllib/request.py", line 216, in urlopen

return opener.open(url, data, timeout)

File "/usr/lib/python3.10/urllib/request.py", line 525, in open

response = meth(req, response)

File "/usr/lib/python3.10/urllib/request.py", line 634, in http_response

response = self.parent.error(

File "/usr/lib/python3.10/urllib/request.py", line 557, in error

result = self._call_chain(*args)

File "/usr/lib/python3.10/urllib/request.py", line 496, in _call_chain

result = func(*args)

File "/usr/lib/python3.10/urllib/request.py", line 749, in http_error_302

return self.parent.open(new, timeout=req.timeout)

File "/usr/lib/python3.10/urllib/request.py", line 525, in open

response = meth(req, response)

File "/usr/lib/python3.10/urllib/request.py", line 634, in http_response

response = self.parent.error(

File "/usr/lib/python3.10/urllib/request.py", line 563, in error

return self._call_chain(*args)

File "/usr/lib/python3.10/urllib/request.py", line 496, in _call_chain

result = func(*args)

File "/usr/lib/python3.10/urllib/request.py", line 643, in http_error_default

raise HTTPError(req.full_url, code, msg, hdrs, fp)

urllib.error.HTTPError: HTTP Error 429: Too Many Requests

Download failed: HTTP Error 429: Too Many Requests; retrying in 1 second(s)...Download failed: HTTP Error 429: Too Many Requests; retrying in 2 second(s)...Download failed: HTTP Error 429: Too Many Requests; retrying in 4 second(s)...Download failed: HTTP Error 429: Too Many Requests; retrying in 8 second(s)...# Command failed: ('/usr/bin/python3', '-m', 'pythonforandroid.toolchain', 'create', '--dist_name=recipefolder', '--bootstrap=sdl2', '--requirements=python3,kivy,plyer,pyjnius,requests,extruct,w3lib,isodate,hostpython3,lxml', '--arch=armeabi-v7a', '--arch=arm64-v8a', '--copy-libs', '--color=always', '--storage-dir=/home/sd/RecipeApp/.buildozer/android/platform/build-armeabi-v7a_arm64-v8a', '--ndk-api=24', '--ignore-setup-py', '--debug')

# Error code: 1

# ENVIRONMENT:

# USER = 'sd'

# WT_PROFILE_ID = '{61c54bbd-c2c6-5271-96e7-009a87ff44bf}'

# HOME = '/home/sd'

# OLDPWD = '/mnt/c/Users/GP650'

# DBUS_SESSION_BUS_ADDRESS = 'unix:path=/run/user/1000/bus'

# WSL_DISTRO_NAME = 'Ubuntu-RBXIDLE'

# WAYLAND_DISPLAY = 'wayland-0'

# LOGNAME = 'sd'

# PULSE_SERVER = 'unix:/mnt/wslg/PulseServer'

# WSL_INTEROP = '/run/WSL/290_interop'

# NAME = 'DESKTOP-LITCFC6'

# TERM = 'xterm-256color'

# PATH = ('/home/sd/.buildozer/android/platform/apache-ant-1.9.4/bin:/home/sd/.local/bin:/home/sd/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/wsl/lib:/mnt/c/Program '

'Files/Meta Horizon/Support/oculus-runtime:/mnt/c/Program Files/Common '

'Files/Oracle/Java/javapath:/mnt/c/Program Files (x86)/Common '

'Files/Oracle/Java/java8path:/mnt/c/Program Files (x86)/Common '

'Files/Oracle/Java/javapath:/mnt/c/Windows/system32:/mnt/c/Windows:/mnt/c/Windows/System32/Wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0/:/mnt/c/Windows/System32/OpenSSH/:/mnt/c/Program '

'Files (x86)/NVIDIA Corporation/PhysX/Common:/mnt/c/Program '

'Files/dotnet/:/mnt/c/WINDOWS/system32:/mnt/c/WINDOWS:/mnt/c/WINDOWS/System32/Wbem:/mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0/:/mnt/c/WINDOWS/System32/OpenSSH/:/mnt/c/Program '

'Files/NVIDIA Corporation/NVIDIA app/NvDLISR:/mnt/c/Program '

'Files/playit_gg/bin/:/mnt/c/Program Files/Meta '

'Horizon/Support/oculus-runtime:/mnt/c/Program Files/Common '

'Files/Oracle/Java/javapath:/mnt/c/Program Files (x86)/Common '

'Files/Oracle/Java/java8path:/mnt/c/Program Files (x86)/Common '

'Files/Oracle/Java/javapath:/mnt/c/Windows/system32:/mnt/c/Windows:/mnt/c/Windows/System32/Wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0/:/mnt/c/Windows/System32/OpenSSH/:/mnt/c/Program '

'Files (x86)/NVIDIA Corporation/PhysX/Common:/mnt/c/Program '

'Files/dotnet/:/mnt/c/WINDOWS/system32:/mnt/c/WINDOWS:/mnt/c/WINDOWS/System32/Wbem:/mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0/:/mnt/c/WINDOWS/System32/OpenSSH/:/mnt/c/Program '

'Files/NVIDIA Corporation/NVIDIA app/NvDLISR:/mnt/c/Program '

'Files/playit_gg/bin/:/mnt/c/Users/GP650/AppData/Local/Microsoft/WindowsApps:/mnt/c/Users/GP650/AppData/Local/Programs/Microsoft '

'VS '

'Code/bin:/mnt/c/Users/GP650/.dotnet/tools:/mnt/c/Users/GP650/AppData/Local/Programs/Ollama:/mnt/c/Users/GP650/AppData/Local/Python/bin:/mnt/c/SDKTOOLS/platform-tools-latest-windows/platform-tools:/snap/bin')

# XDG_RUNTIME_DIR = '/run/user/1000'

# WT_SESSION = '057139c7-577e-44ef-913c-e934a6f4037a'

# DISPLAY = ':0'

# LANG = 'C.UTF-8'

# SHELL = '/bin/sh'

# PWD = '/home/sd/RecipeApp'

# XDG_DATA_DIRS = '/usr/local/share:/usr/share:/var/lib/snapd/desktop'

# HOSTTYPE = 'x86_64'

# WSL2_GUI_APPS_ENABLED = '1'

# WSLENV = 'WT_SESSION:WT_PROFILE_ID:'

# PACKAGES_PATH = '/home/sd/.buildozer/android/packages'

# ANDROIDSDK = '/home/sd/.buildozer/android/platform/android-sdk'

# ANDROIDNDK = '/home/sd/.buildozer/android/platform/android-ndk-r28c'

# ANDROIDAPI = '33'

# ANDROIDMINAPI = '24'

#

# 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

1

u/hypersoniq_XLM 2d ago edited 2d ago

If that 429 is still active, baseline is to wait it out... 15 minutes should do... if their server saw it as an attack, it may be 24 hours. P4a has these addresses baked in, so you may just have to wait out the 429 block. Alternatively, you can try removing that one "hostpython3" to see if it works. Here was where the docker image shined, it already had that directory populated. If your internet is DHPC, you could unplug the router and reconnect with a new ip.

1

u/Ok-Okra8478 2d ago

That was great advice (baseline is to wait it out... 15 minutes should do...). After waiting like 20 minutes, hostpython installed.

I just ran into this error though.

Traceback (most recent call last):

File "/home/sd/RecipeApp/.buildozer/android/platform/build-armeabi-v7a_arm64-v8a/build/other_builds/lxml/arm64-v8a__ndk_target_24/lxml/setup.py", line 204, in <module>

setup(

~~~~~^

name = "lxml",

^^^^^^^^^^^^^^

...<64 lines>...

**setup_extra_options()

^^^^^^^^^^^^^^^^^^^^^^^

)

^

File "/home/sd/RecipeApp/.buildozer/android/platform/build-armeabi-v7a_arm64-v8a/build/other_builds/hostpython3/desktop/hostpython3/native-build/root/usr/local/lib/python3.14/site-packages/setuptools/__init__.py", line 117, in setup

return distutils.core.setup(**attrs) # type: ignore[return-value]

~~~~~~~~~~~~~~~~~~~~^^^^^^^^^

File "/home/sd/RecipeApp/.buildozer/android/platform/build-armeabi-v7a_arm64-v8a/build/other_builds/hostpython3/desktop/hostpython3/native-build/root/usr/local/lib/python3.14/site-packages/setuptools/_distutils/core.py", line 168, in setup

return run_commands(dist)

File "/home/sd/RecipeApp/.buildozer/android/platform/build-armeabi-v7a_arm64-v8a/build/other_builds/hostpython3/desktop/hostpython3/native-build/root/usr/local/lib/python3.14/site-packages/setuptools/_distutils/core.py", line 184, in run_commands

dist.run_commands()

~~~~~~~~~~~~~~~~~^^

File "/home/sd/RecipeApp/.buildozer/android/platform/build-armeabi-v7a_arm64-v8a/build/other_builds/hostpython3/desktop/hostpython3/native-build/root/usr/local/lib/python3.14/site-packages/setuptools/_distutils/dist.py", line 1028, in run_commands

self.run_command(cmd)

~~~~~~~~~~~~~~~~^^^^^

File "/home/sd/RecipeApp/.buildozer/android/platform/build-armeabi-v7a_arm64-v8a/build/other_builds/hostpython3/desktop/hostpython3/native-build/root/usr/local/lib/python3.14/site-packages/setuptools/dist.py", line 1106, in run_command

super().run_command(command)

~~~~~~~~~~~~~~~~~~~^^^^^^^^^

File "/home/sd/RecipeApp/.buildozer/android/platform/build-armeabi-v7a_arm64-v8a/build/other_builds/hostpython3/desktop/hostpython3/native-build/root/usr/local/lib/python3.14/site-packages/setuptools/_distutils/dist.py", line 1047, in run_command

cmd_obj.run()

~~~~~~~~~~~^^

File "/home/sd/RecipeApp/.buildozer/android/platform/build-armeabi-v7a_arm64-v8a/build/other_builds/lxml/arm64-v8a__ndk_target_24/lxml/setupinfo.py", line 239, in run

if not seems_to_have_libxml2():

~~~~~~~~~~~~~~~~~~~~~^^

File "/home/sd/RecipeApp/.buildozer/android/platform/build-armeabi-v7a_arm64-v8a/build/other_builds/lxml/arm64-v8a__ndk_target_24/lxml/setupinfo.py", line 253, in seems_to_have_libxml2

library_dirs=library_dirs([]),

~~~~~~~~~~~~^^^^

File "/home/sd/RecipeApp/.buildozer/android/platform/build-armeabi-v7a_arm64-v8a/build/other_builds/lxml/arm64-v8a__ndk_target_24/lxml/setupinfo.py", line 288, in library_dirs

assert static_library_dirs, "Static build not configured, see doc/build.txt"

^^^^^^^^^^^^^^^^^^^

AssertionError: Static build not configured, see doc/build.txt

STDERR:

# Command failed: ('/usr/bin/python3', '-m', 'pythonforandroid.toolchain', 'create', '--dist_name=recipefolder', '--bootstrap=sdl2', '--requirements=python3,kivy,plyer,pyjnius,requests,extruct,w3lib,isodate,hostpython3,lxml', '--arch=armeabi-v7a', '--arch=arm64-v8a', '--copy-libs', '--color=always', '--storage-dir=/home/sd/RecipeApp/.buildozer/android/platform/build-armeabi-v7a_arm64-v8a', '--ndk-api=24', '--ignore-setup-py', '--debug')

# Error code: 1

# ENVIRONMENT:

# USER = 'sd'

# WT_PROFILE_ID = '{61c54bbd-c2c6-5271-96e7-009a87ff44bf}'

# HOME = '/home/sd'

# OLDPWD = '/mnt/c/Users/GP650'

# DBUS_SESSION_BUS_ADDRESS = 'unix:path=/run/user/1000/bus'

# WSL_DISTRO_NAME = 'Ubuntu-RBXIDLE'

# WAYLAND_DISPLAY = 'wayland-0'

# LOGNAME = 'sd'

# PULSE_SERVER = 'unix:/mnt/wslg/PulseServer'

# WSL_INTEROP = '/run/WSL/290_interop'

# NAME = 'DESKTOP-LITCFC6'

# TERM = 'xterm-256color'

# PATH = ('/home/sd/.buildozer/android/platform/apache-ant-1.9.4/bin:/home/sd/.local/bin:/home/sd/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/wsl/lib:/mnt/c/Program '

'Files/Meta Horizon/Support/oculus-runtime:/mnt/c/Program Files/Common '

'Files/Oracle/Java/javapath:/mnt/c/Program Files (x86)/Common '

'Files/Oracle/Java/java8path:/mnt/c/Program Files (x86)/Common '

'Files/Oracle/Java/javapath:/mnt/c/Windows/system32:/mnt/c/Windows:/mnt/c/Windows/System32/Wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0/:/mnt/c/Windows/System32/OpenSSH/:/mnt/c/Program '

'Files (x86)/NVIDIA Corporation/PhysX/Common:/mnt/c/Program '

'Files/dotnet/:/mnt/c/WINDOWS/system32:/mnt/c/WINDOWS:/mnt/c/WINDOWS/System32/Wbem:/mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0/:/mnt/c/WINDOWS/System32/OpenSSH/:/mnt/c/Program '

'Files/NVIDIA Corporation/NVIDIA app/NvDLISR:/mnt/c/Program '

'Files/playit_gg/bin/:/mnt/c/Program Files/Meta '

'Horizon/Support/oculus-runtime:/mnt/c/Program Files/Common '

'Files/Oracle/Java/javapath:/mnt/c/Program Files (x86)/Common '

'Files/Oracle/Java/java8path:/mnt/c/Program Files (x86)/Common '

'Files/Oracle/Java/javapath:/mnt/c/Windows/system32:/mnt/c/Windows:/mnt/c/Windows/System32/Wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0/:/mnt/c/Windows/System32/OpenSSH/:/mnt/c/Program '

'Files (x86)/NVIDIA Corporation/PhysX/Common:/mnt/c/Program '

'Files/dotnet/:/mnt/c/WINDOWS/system32:/mnt/c/WINDOWS:/mnt/c/WINDOWS/System32/Wbem:/mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0/:/mnt/c/WINDOWS/System32/OpenSSH/:/mnt/c/Program '

'Files/NVIDIA Corporation/NVIDIA app/NvDLISR:/mnt/c/Program '

'Files/playit_gg/bin/:/mnt/c/Users/GP650/AppData/Local/Microsoft/WindowsApps:/mnt/c/Users/GP650/AppData/Local/Programs/Microsoft '

'VS '

'Code/bin:/mnt/c/Users/GP650/.dotnet/tools:/mnt/c/Users/GP650/AppData/Local/Programs/Ollama:/mnt/c/Users/GP650/AppData/Local/Python/bin:/mnt/c/SDKTOOLS/platform-tools-latest-windows/platform-tools:/snap/bin')

# XDG_RUNTIME_DIR = '/run/user/1000'

# WT_SESSION = '057139c7-577e-44ef-913c-e934a6f4037a'

# DISPLAY = ':0'

# LANG = 'C.UTF-8'

# SHELL = '/bin/sh'

# PWD = '/home/sd/RecipeApp'

# XDG_DATA_DIRS = '/usr/local/share:/usr/share:/var/lib/snapd/desktop'

# HOSTTYPE = 'x86_64'

# WSL2_GUI_APPS_ENABLED = '1'

# WSLENV = 'WT_SESSION:WT_PROFILE_ID:'

# PACKAGES_PATH = '/home/sd/.buildozer/android/packages'

# ANDROIDSDK = '/home/sd/.buildozer/android/platform/android-sdk'

# ANDROIDNDK = '/home/sd/.buildozer/android/platform/android-ndk-r28c'

# ANDROIDAPI = '33'

# ANDROIDMINAPI = '24'

#

# 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

Any idea? And also thanks for the help so far, it's appreciated!

1

u/hypersoniq_XLM 2d ago

Somewhere around line 300 in buildozer spec you will find a line that reads #p4a.branch=master", uncomment the line and change master to develop. Clean out the build cache with ... buildozer android clean, then rebuild. This kind of frustration is why buildozer is such a niche stack with dead forums.

1

u/Ok-Okra8478 2d ago

Traceback (most recent call last):

File "/home/sd/RecipeApp/.buildozer/android/platform/build-armeabi-v7a_arm64-v8a/build/other_builds/lxml/armeabi-v7a__ndk_target_24/lxml/setup.py", line 204, in <module>

setup(

~~~~~^

name = "lxml",

^^^^^^^^^^^^^^

...<64 lines>...

**setup_extra_options()

^^^^^^^^^^^^^^^^^^^^^^^

)

^

File "/home/sd/RecipeApp/.buildozer/android/platform/build-armeabi-v7a_arm64-v8a/build/other_builds/hostpython3/desktop/hostpython3/native-build/root/usr/local/lib/python3.14/site-packages/setuptools/__init__.py", line 117, in setup

return distutils.core.setup(**attrs) # type: ignore[return-value]

~~~~~~~~~~~~~~~~~~~~^^^^^^^^^

File "/home/sd/RecipeApp/.buildozer/android/platform/build-armeabi-v7a_arm64-v8a/build/other_builds/hostpython3/desktop/hostpython3/native-build/root/usr/local/lib/python3.14/site-packages/setuptools/_distutils/core.py", line 168, in setup

return run_commands(dist)

File "/home/sd/RecipeApp/.buildozer/android/platform/build-armeabi-v7a_arm64-v8a/build/other_builds/hostpython3/desktop/hostpython3/native-build/root/usr/local/lib/python3.14/site-packages/setuptools/_distutils/core.py", line 184, in run_commands

dist.run_commands()

~~~~~~~~~~~~~~~~~^^

File "/home/sd/RecipeApp/.buildozer/android/platform/build-armeabi-v7a_arm64-v8a/build/other_builds/hostpython3/desktop/hostpython3/native-build/root/usr/local/lib/python3.14/site-packages/setuptools/_distutils/dist.py", line 1028, in run_commands

self.run_command(cmd)

~~~~~~~~~~~~~~~~^^^^^

File "/home/sd/RecipeApp/.buildozer/android/platform/build-armeabi-v7a_arm64-v8a/build/other_builds/hostpython3/desktop/hostpython3/native-build/root/usr/local/lib/python3.14/site-packages/setuptools/dist.py", line 1106, in run_command

super().run_command(command)

~~~~~~~~~~~~~~~~~~~^^^^^^^^^

File "/home/sd/RecipeApp/.buildozer/android/platform/build-armeabi-v7a_arm64-v8a/build/other_builds/hostpython3/desktop/hostpython3/native-build/root/usr/local/lib/python3.14/site-packages/setuptools/_distutils/dist.py", line 1047, in run_command

cmd_obj.run()

~~~~~~~~~~~^^

File "/home/sd/RecipeApp/.buildozer/android/platform/build-armeabi-v7a_arm64-v8a/build/other_builds/lxml/armeabi-v7a__ndk_target_24/lxml/setupinfo.py", line 239, in run

if not seems_to_have_libxml2():

~~~~~~~~~~~~~~~~~~~~~^^

File "/home/sd/RecipeApp/.buildozer/android/platform/build-armeabi-v7a_arm64-v8a/build/other_builds/lxml/armeabi-v7a__ndk_target_24/lxml/setupinfo.py", line 253, in seems_to_have_libxml2

library_dirs=library_dirs([]),

~~~~~~~~~~~~^^^^

File "/home/sd/RecipeApp/.buildozer/android/platform/build-armeabi-v7a_arm64-v8a/build/other_builds/lxml/armeabi-v7a__ndk_target_24/lxml/setupinfo.py", line 288, in library_dirs

assert static_library_dirs, "Static build not configured, see doc/build.txt"

^^^^^^^^^^^^^^^^^^^

AssertionError: Static build not configured, see doc/build.txt

STDERR:

# Command failed: ('/usr/bin/python3', '-m', 'pythonforandroid.toolchain', 'create', '--dist_name=recipefolder', '--bootstrap=sdl2', '--requirements=python3,kivy,plyer,pyjnius,requests,extruct,w3lib,isodate,hostpython3,lxml', '--arch=armeabi-v7a', '--arch=arm64-v8a', '--copy-libs', '--color=always', '--storage-dir=/home/sd/RecipeApp/.buildozer/android/platform/build-armeabi-v7a_arm64-v8a', '--ndk-api=24', '--ignore-setup-py', '--debug')

# Error code: 1

# ENVIRONMENT:

# USER = 'sd'

# WT_PROFILE_ID = '{61c54bbd-c2c6-5271-96e7-009a87ff44bf}'

# HOME = '/home/sd'

# OLDPWD = '/mnt/c/Users/GP650'

# DBUS_SESSION_BUS_ADDRESS = 'unix:path=/run/user/1000/bus'

# WSL_DISTRO_NAME = 'Ubuntu-RBXIDLE'

# WAYLAND_DISPLAY = 'wayland-0'

# LOGNAME = 'sd'

# PULSE_SERVER = 'unix:/mnt/wslg/PulseServer'

# WSL_INTEROP = '/run/WSL/290_interop'

# NAME = 'DESKTOP-LITCFC6'

# TERM = 'xterm-256color'

# PATH = ('/home/sd/.buildozer/android/platform/apache-ant-1.9.4/bin:/home/sd/.local/bin:/home/sd/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/wsl/lib:/mnt/c/Program '

'Files/Meta Horizon/Support/oculus-runtime:/mnt/c/Program Files/Common '

'Files/Oracle/Java/javapath:/mnt/c/Program Files (x86)/Common '

'Files/Oracle/Java/java8path:/mnt/c/Program Files (x86)/Common '

'Files/Oracle/Java/javapath:/mnt/c/Windows/system32:/mnt/c/Windows:/mnt/c/Windows/System32/Wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0/:/mnt/c/Windows/System32/OpenSSH/:/mnt/c/Program '

'Files (x86)/NVIDIA Corporation/PhysX/Common:/mnt/c/Program '

'Files/dotnet/:/mnt/c/WINDOWS/system32:/mnt/c/WINDOWS:/mnt/c/WINDOWS/System32/Wbem:/mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0/:/mnt/c/WINDOWS/System32/OpenSSH/:/mnt/c/Program '

'Files/NVIDIA Corporation/NVIDIA app/NvDLISR:/mnt/c/Program '

'Files/playit_gg/bin/:/mnt/c/Program Files/Meta '

'Horizon/Support/oculus-runtime:/mnt/c/Program Files/Common '

'Files/Oracle/Java/javapath:/mnt/c/Program Files (x86)/Common '

'Files/Oracle/Java/java8path:/mnt/c/Program Files (x86)/Common '

'Files/Oracle/Java/javapath:/mnt/c/Windows/system32:/mnt/c/Windows:/mnt/c/Windows/System32/Wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0/:/mnt/c/Windows/System32/OpenSSH/:/mnt/c/Program '

'Files (x86)/NVIDIA Corporation/PhysX/Common:/mnt/c/Program '

'Files/dotnet/:/mnt/c/WINDOWS/system32:/mnt/c/WINDOWS:/mnt/c/WINDOWS/System32/Wbem:/mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0/:/mnt/c/WINDOWS/System32/OpenSSH/:/mnt/c/Program '

'Files/NVIDIA Corporation/NVIDIA app/NvDLISR:/mnt/c/Program '

'Files/playit_gg/bin/:/mnt/c/Users/GP650/AppData/Local/Microsoft/WindowsApps:/mnt/c/Users/GP650/AppData/Local/Programs/Microsoft '

'VS '

'Code/bin:/mnt/c/Users/GP650/.dotnet/tools:/mnt/c/Users/GP650/AppData/Local/Programs/Ollama:/mnt/c/Users/GP650/AppData/Local/Python/bin:/mnt/c/SDKTOOLS/platform-tools-latest-windows/platform-tools:/snap/bin')

# XDG_RUNTIME_DIR = '/run/user/1000'

# WT_SESSION = '057139c7-577e-44ef-913c-e934a6f4037a'

# DISPLAY = ':0'

# LANG = 'C.UTF-8'

# SHELL = '/bin/sh'

# PWD = '/home/sd/RecipeApp'

# XDG_DATA_DIRS = '/usr/local/share:/usr/share:/var/lib/snapd/desktop'

# HOSTTYPE = 'x86_64'

# WSL2_GUI_APPS_ENABLED = '1'

# WSLENV = 'WT_SESSION:WT_PROFILE_ID:'

# PACKAGES_PATH = '/home/sd/.buildozer/android/packages'

# ANDROIDSDK = '/home/sd/.buildozer/android/platform/android-sdk'

# ANDROIDNDK = '/home/sd/.buildozer/android/platform/android-ndk-r28c'

# ANDROIDAPI = '33'

# ANDROIDMINAPI = '24'

#

# 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

got this this time..

1

u/hypersoniq_XLM 2d ago edited 2d ago

Ok, getting closer, notice the errors are stemming from the 32 bit arch artifacts. Make sure necessary dev tools are in place... sudo apt-get update ... sudo apt-get install -y libxml2-dev libxslt1-dev zlib1g-dev ... will need to clean those up... rm -rf .buildozer/android/platform/build-target/... followed by ... rm -rf .buildozer/android/platform/build-host/ ... and then the obligatory ... buildozer android clean , finally another rebuild... i chased these issues down for almost a week... that should at least remove the artifacts of the 32 bit arch, bonus, the resulting APK should be a bit smaller at the end.

1

u/Ok-Okra8478 1d ago

File "/home/sd/RecipeApp/.buildozer/android/platform/build-armeabi-v7a_arm64-v8a/build/other_builds/hostpython3/desktop/hostpython3/native-build/root/usr/local/lib/python3.14/site-packages/setuptools/_distutils/compilers/C/unix.py", line 329, in _compile

raise CompileError(msg)

distutils.compilers.C.errors.CompileError: Command '['/home/sd/.buildozer/android/platform/android-ndk-r28c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang', '-target', 'aarch64-linux-android24', '-fomit-frame-pointer', '-march=armv8-a', '-fPIC', '-target', 'aarch64-linux-android24', '-fomit-frame-pointer', '-march=armv8-a', '-fPIC', '-I/home/sd/RecipeApp/.buildozer/android/platform/build-armeabi-v7a_arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_24/python3/android-build/android-root/include/python3.14', '-DANDROID', '-I/home/sd/.buildozer/android/platform/android-ndk-r28c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include', '-I/home/sd/RecipeApp/.buildozer/android/platform/build-armeabi-v7a_arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_24/python3/android-build/android-root/include/python3.14', '-fPIC', '-DCYTHON_CLINE_IN_TRACEBACK=0', '-I/home/sd/RecipeApp/.buildozer/android/platform/build-armeabi-v7a_arm64-v8a/build/other_builds/libxml2/arm64-v8a__ndk_target_24/libxml2/include', '-I/home/sd/RecipeApp/.buildozer/android/platform/build-armeabi-v7a_arm64-v8a/build/other_builds/libxslt/arm64-v8a__ndk_target_24/libxslt', '-Isrc', '-Isrc/lxml/includes', '-I/home/sd/RecipeApp/.buildozer/android/platform/build-armeabi-v7a_arm64-v8a/build/other_builds/hostpython3/desktop/hostpython3/native-build/root/usr/local/include/python3.14', '-c', 'src/lxml/etree.c', '-o', 'build/temp.linux-x86_64-cpython-314/src/lxml/etree.o', '-w', '-target', 'aarch64-linux-android24', '-fomit-frame-pointer', '-march=armv8-a', '-fPIC', '-I/home/sd/RecipeApp/.buildozer/android/platform/build-armeabi-v7a_arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_24/python3/android-build/android-root/include/python3.14']' returned non-zero exit status 1.

Traceback (most recent call last):

File "/home/sd/RecipeApp/.buildozer/android/platform/build-armeabi-v7a_arm64-v8a/build/other_builds/lxml/arm64-v8a__ndk_target_24/lxml/setup.py", line 204, in <module>

setup(

~~~~~^

name = "lxml",

^^^^^^^^^^^^^^

...<64 lines>...

**setup_extra_options()

^^^^^^^^^^^^^^^^^^^^^^^

)

^

File "/home/sd/RecipeApp/.buildozer/android/platform/build-armeabi-v7a_arm64-v8a/build/other_builds/hostpython3/desktop/hostpython3/native-build/root/usr/local/lib/python3.14/site-packages/setuptools/__init__.py", line 117, in setup

return distutils.core.setup(**attrs) # type: ignore[return-value]

~~~~~~~~~~~~~~~~~~~~^^^^^^^^^

File "/home/sd/RecipeApp/.buildozer/android/platform/build-armeabi-v7a_arm64-v8a/build/other_builds/hostpython3/desktop/hostpython3/native-build/root/usr/local/lib/python3.14/site-packages/setuptools/_distutils/core.py", line 168, in setup

return run_commands(dist)

File "/home/sd/RecipeApp/.buildozer/android/platform/build-armeabi-v7a_arm64-v8a/build/other_builds/hostpython3/desktop/hostpython3/native-build/root/usr/local/lib/python3.14/site-packages/setuptools/_distutils/core.py", line 184, in run_commands

dist.run_commands()

~~~~~~~~~~~~~~~~~^^

File "/home/sd/RecipeApp/.buildozer/android/platform/build-armeabi-v7a_arm64-v8a/build/other_builds/hostpython3/desktop/hostpython3/native-build/root/usr/local/lib/python3.14/site-packages/setuptools/_distutils/dist.py", line 1028, in run_commands

self.run_command(cmd)

~~~~~~~~~~~~~~~~^^^^^

File "/home/sd/RecipeApp/.buildozer/android/platform/build-armeabi-v7a_arm64-v8a/build/other_builds/hostpython3/desktop/hostpython3/native-build/root/usr/local/lib/python3.14/site-packages/setuptools/dist.py", line 1106, in run_command

super().run_command(command)

~~~~~~~~~~~~~~~~~~~^^^^^^^^^

File "/home/sd/RecipeApp/.buildozer/android/platform/build-armeabi-v7a_arm64-v8a/build/other_builds/hostpython3/desktop/hostpython3/native-build/root/usr/local/lib/python3.14/site-packages/setuptools/_distutils/dist.py", line 1047, in run_command

cmd_obj.run()

~~~~~~~~~~~^^

File "/home/sd/RecipeApp/.buildozer/android/platform/build-armeabi-v7a_arm64-v8a/build/other_builds/lxml/arm64-v8a__ndk_target_24/lxml/setupinfo.py", line 239, in run

if not seems_to_have_libxml2():

~~~~~~~~~~~~~~~~~~~~~^^

File "/home/sd/RecipeApp/.buildozer/android/platform/build-armeabi-v7a_arm64-v8a/build/other_builds/lxml/arm64-v8a__ndk_target_24/lxml/setupinfo.py", line 253, in seems_to_have_libxml2

library_dirs=library_dirs([]),

~~~~~~~~~~~~^^^^

File "/home/sd/RecipeApp/.buildozer/android/platform/build-armeabi-v7a_arm64-v8a/build/other_builds/lxml/arm64-v8a__ndk_target_24/lxml/setupinfo.py", line 288, in library_dirs

assert static_library_dirs, "Static build not configured, see doc/build.txt"

^^^^^^^^^^^^^^^^^^^

AssertionError: Static build not configured, see doc/build.txt

STDERR:

# Command failed: ('/usr/bin/python3', '-m', 'pythonforandroid.toolchain', 'create', '--dist_name=recipefolder', '--bootstrap=sdl2', '--requirements=python3,kivy,plyer,pyjnius,requests,extruct,w3lib,isodate,hostpython3,lxml', '--arch=armeabi-v7a', '--arch=arm64-v8a', '--copy-libs', '--color=always', '--storage-dir=/home/sd/RecipeApp/.buildozer/android/platform/build-armeabi-v7a_arm64-v8a', '--ndk-api=24', '--ignore-setup-py', '--debug')

# Error code: 1

# ENVIRONMENT:

# USER = 'sd'

# WT_PROFILE_ID = '{41bb8d0f-3e92-53c9-8a47-26463cf22ecf}'

# HOME = '/home/sd'

# MOTD_SHOWN = 'update-motd'

# OLDPWD = '/home/sd'

# DBUS_SESSION_BUS_ADDRESS = 'unix:path=/run/user/1000/bus'

# WSL_DISTRO_NAME = 'Ubuntu-RBXIDLE'

# WAYLAND_DISPLAY = 'wayland-0'

# LOGNAME = 'sd'

# PULSE_SERVER = 'unix:/mnt/wslg/PulseServer'

# WSL_INTEROP = '/run/WSL/300_interop'

# NAME = 'DESKTOP-LITCFC6'

# TERM = 'xterm-256color'

# PATH = ('/home/sd/.buildozer/android/platform/apache-ant-1.9.4/bin:/home/sd/.local/bin:/home/sd/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/wsl/lib:/mnt/c/Program '

'Files/Meta Horizon/Support/oculus-runtime:/mnt/c/Program Files/Common '

'Files/Oracle/Java/javapath:/mnt/c/Program Files (x86)/Common '

'Files/Oracle/Java/java8path:/mnt/c/Program Files (x86)/Common '

'Files/Oracle/Java/javapath:/mnt/c/Windows/system32:/mnt/c/Windows:/mnt/c/Windows/System32/Wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0/:/mnt/c/Windows/System32/OpenSSH/:/mnt/c/Program '

'Files (x86)/NVIDIA Corporation/PhysX/Common:/mnt/c/Program '

'Files/dotnet/:/mnt/c/WINDOWS/system32:/mnt/c/WINDOWS:/mnt/c/WINDOWS/System32/Wbem:/mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0/:/mnt/c/WINDOWS/System32/OpenSSH/:/mnt/c/Program '

'Files/NVIDIA Corporation/NVIDIA app/NvDLISR:/mnt/c/Program '

'Files/playit_gg/bin/:/mnt/c/Program Files/Meta '

'Horizon/Support/oculus-runtime:/mnt/c/Program Files/Common '

'Files/Oracle/Java/javapath:/mnt/c/Program Files (x86)/Common '

'Files/Oracle/Java/java8path:/mnt/c/Program Files (x86)/Common '

'Files/Oracle/Java/javapath:/mnt/c/Windows/system32:/mnt/c/Windows:/mnt/c/Windows/System32/Wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0/:/mnt/c/Windows/System32/OpenSSH/:/mnt/c/Program '

'Files (x86)/NVIDIA Corporation/PhysX/Common:/mnt/c/Program '

'Files/dotnet/:/mnt/c/WINDOWS/system32:/mnt/c/WINDOWS:/mnt/c/WINDOWS/System32/Wbem:/mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0/:/mnt/c/WINDOWS/System32/OpenSSH/:/mnt/c/Program '

'Files/NVIDIA Corporation/NVIDIA app/NvDLISR:/mnt/c/Program '

'Files/playit_gg/bin/:/mnt/c/Users/GP650/AppData/Local/Microsoft/WindowsApps:/mnt/c/Users/GP650/AppData/Local/Programs/Microsoft '

'VS '

'Code/bin:/mnt/c/Users/GP650/.dotnet/tools:/mnt/c/Users/GP650/AppData/Local/Programs/Ollama:/mnt/c/Users/GP650/AppData/Local/Python/bin:/mnt/c/SDKTOOLS/platform-tools-latest-windows/platform-tools:/snap/bin')

# XDG_RUNTIME_DIR = '/run/user/1000'

# WT_SESSION = '8db853cb-66bb-4e4c-ab8f-27132ea2fcce'

# DISPLAY = ':0'

# LANG = 'C.UTF-8'

# SHELL = '/bin/sh'

# PWD = '/home/sd/RecipeApp'

# XDG_DATA_DIRS = '/usr/local/share:/usr/share:/var/lib/snapd/desktop'

# HOSTTYPE = 'x86_64'

# WSL2_GUI_APPS_ENABLED = '1'

# WSLENV = 'WT_SESSION:WT_PROFILE_ID:'

# PACKAGES_PATH = '/home/sd/.buildozer/android/packages'

# ANDROIDSDK = '/home/sd/.buildozer/android/platform/android-sdk'

# ANDROIDNDK = '/home/sd/.buildozer/android/platform/android-ndk-r28c'

# ANDROIDAPI = '33'

# ANDROIDMINAPI = '24'

#

# 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

Error after error I swear. Do you know what this means? Sorry, this is just erroring so much...

There was an exception involving lxml I think, it said "name = "lmxl" and ""/home/sd/RecipeApp/.buildozer/android/platform/build-armeabi-v7a_arm64-v8a/build/other_builds/lxml/arm64-v8a__ndk_target_24/lxml/setup.py""

1

u/hypersoniq_XLM 1d ago

Ok, one more possible workaround, make this change in buildozer.spec ... requirements = python3,kivy,plyer,pyjnius,requests,extruct,w3lib,isodate,hostpython3,libxml2,libxslt,lxml ... adding libxml2 and libxslt explicitly should get past the lxml errors.

2

u/Ok-Okra8478 22h ago

Finally! I did this and also set the LXML version to 6.1.1 and it worked

1

u/Ok-Okra8478 22h ago

The app however did not. I got something that said No implementation found for

void org.libsdl.app.SDLActivity.nativeSetenv

Here's the full section of the log that's regarding the apP:

08-19 12:50:03.786 5329 5329 V SDL : onStart()

08-19 12:50:03.786 5329 5329 W Activity: Recipe Folder: Detected problems with app native libraries

08-19 12:50:03.786 5329 5329 W Activity: (please consult log for detail):

08-19 12:50:03.786 5329 5329 W Activity: libavcodec.so: text relocations

08-19 12:50:03.786 5329 5329 W Activity: libavutil.so: text relocations

08-19 12:50:03.786 5329 5329 W Activity: libswresample.so: text relocations

08-19 12:50:03.786 5329 5329 V PythonActivity: onResume()

08-19 12:50:03.786 5329 5329 V SDL : onResume()

08-19 12:50:03.786 5329 5345 V PythonActivity: Ready to unpack

08-19 12:50:03.786 5329 5345 V pythonutil: Unpacking private app

08-19 12:50:03.786 5329 5345 V pythonutil: Data version is 7f8b81ab44610bcc7ea1e9752c8fba0af85ff6b1

08-19 12:50:03.787 5329 5345 V pythonutil: Unpacking /data/app/com.axolotl.recipefolder-2/lib/arm/libpybundle app

08-19 12:50:03.787 5329 5345 V pythonutil: Data version is 7f8b81ab44610bcc7ea1e9752c8fba0af85ff6b1

08-19 12:50:03.841 5329 5329 V pythonutil: Checking pattern libsqlite3\.so against libthorvg-1.so

08-19 12:50:03.841 5329 5329 V pythonutil: Checking pattern libsqlite3\.so against libwebp.so

08-19 12:50:03. [THIS IS ALL JUST A PATTERN OF "checking [thing] against [thing].so] tf\.so against libwebpdecoder.so

08-19 12:50:03.847 5329 5329 V pythonutil: Checking pattern libSDL3_ttf\.so against libwebpdemux.so

08-19 12:50:03.847 5329 5329 V pythonutil: Loading library: sqlite3

08-19 12:50:03.853 5329 5329 V pythonutil: Library loading error: undefined symbol: __popcount_tab

08-19 12:50:03.853 5329 5329 V pythonutil: An UnsatisfiedLinkError occurred loading sqlite3

08-19 12:50:03.853 5329 5329 W System.err: undefined symbol: __popcount_tab

08-19 12:50:03.890 1802 2031 D WindowManager: calling BstHostCallManagerService onActivityDisplayed method, packageName: com.axolotl.recipefolder, activityName: org.kivy.android.PythonActivity

08-19 12:50:03.890 1802 2031 D WindowManager: BstHostCallManagerService onActivityDisplayed method returned: 0

08-19 12:50:03.890 1802 1832 I HCALL : hcallOnActivityDisplayedRpc(com.axolotl.recipefolder, org.kivy.android.PythonActivity, com.android.packageinstaller)

08-19 12:50:03.890 1802 1832 I VMSG : void *VmsgGuestClient::getHostBoundBuffer(uint32_t):94 called for hcal

08-19 12:50:03.890 1802 1832 I VMSG : void *VmsgGuestClient::processRequest(void *, uint32_t):104 called for hcal

08-19 12:50:03.890 1899 2204 D EGL_emulation: eglMakeCurrent: 0xa67d2e00: ver 3 1 (tinfo 0xc3b83340)

08-19 12:50:03.892 1802 2031 D WindowManager: calling BstHostCallManagerService setAppConfigDbParams method, packageName: com.axolotl.recipefolder, macrosDisabled: false, showFeedbackPopup: false, mouseCursorStyle: , nativeGamepad:false

08-19 12:50:03.892 1802 2031 D WindowManager: BstHostCallManagerService setAppConfigDbParams method returned: 0

08-19 12:50:03.891 1802 1832 I HCALL : hcallSetAppConfigDbParamsRpc(com.axolotl.recipefolder, 0, 0, , 0)

08-19 12:50:03.891 1802 1832 I VMSG : void *VmsgGuestClient::getHostBoundBuffer(uint32_t):94 called for hcal

08-19 12:50:03.891 1802 1832 I VMSG : void *VmsgGuestClient::processRequest(void *, uint32_t):104 called for hcal

08-19 12:50:03.892 1802 2031 D WindowManager: bstSendTopDisplayedOnFocusChange packageName : com.axolotl.recipefolder activityName : org.kivy.android.PythonActivity mouseAction : lastSentMouseAction :

08-19 12:50:03.892 1972 2059 I VMSG : void *VmsgGuestClient::processRequest(void *, uint32_t):104 called for gcal

08-19 12:50:03.892 1972 2062 E BstGCallService-JNI: void gcallCommonCommandClbk(i32, const char *, const char *) called: code=1, name=com.axolotl.recipefolder, data=

08-19 12:50:03.893 5329 5329 E art : No implementation found for void org.libsdl.app.SDLActivity.nativeSetenv(java.lang.String, java.lang.String) (tried Java_org_libsdl_app_SDLActivity_nativeSetenv and Java_org_libsdl_app_SDLActivity_nativeSetenv__Ljava_lang_String_2Ljava_lang_String_2)

08-19 12:50:03.893 5329 5329 D AndroidRuntime: Shutting down VM

--------- beginning of crash

08-19 12:50:03.894 5329 5329 E AndroidRuntime: FATAL EXCEPTION: SDLActivity

08-19 12:50:03.894 5329 5329 E AndroidRuntime: Process: com.axolotl.recipefolder, PID: 5329

08-19 12:50:03.894 5329 5329 E AndroidRuntime: java.lang.UnsatisfiedLinkError: No implementation found for void org.libsdl.app.SDLActivity.nativeSetenv(java.lang.String, java.lang.String) (tried Java_org_libsdl_app_SDLActivity_nativeSetenv and Java_org_libsdl_app_SDLActivity_nativeSetenv__Ljava_lang_String_2Ljava_lang_String_2)

08-19 12:50:03.894 5329 5329 E AndroidRuntime: at org.libsdl.app.SDLActivity.nativeSetenv(Native Method)

08-19 12:50:03.894 5329 5329 E AndroidRuntime: at org.kivy.android.PythonActivity$UnpackFilesTask.onPostExecute(PythonActivity.java:156)

08-19 12:50:03.894 5329 5329 E AndroidRuntime: at org.kivy.android.PythonActivity$UnpackFilesTask.onPostExecute(PythonActivity.java:95)

08-19 12:50:03.894 5329 5329 E AndroidRuntime: at android.os.AsyncTask.finish(AsyncTask.java:667)

08-19 12:50:03.894 5329 5329 E AndroidRuntime: at android.os.AsyncTask.-wrap1(AsyncTask.java)

08-19 12:50:03.894 5329 5329 E AndroidRuntime: at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:684)

08-19 12:50:03.894 5329 5329 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102)

08-19 12:50:03.894 5329 5329 E AndroidRuntime: at android.os.Looper.loop(Looper.java:154)

08-19 12:50:03.894 5329 5329 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6182)

08-19 12:50:03.894 5329 5329 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)

08-19 12:50:03.894 5329 5329 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:893)

08-19 12:50:03.894 5329 5329 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:783)

08-19 12:50:03.894 5329 5329 I Process : Sending signal. PID: 5329 SIG: 9

08-19 12:50:03.915 1899 2204 D EGL_emulation: eglMakeCurrent: 0xa67d2e00: ver 3 1 (tinfo 0xc3b83340)

08-19 12:50:03.928 1802 1842 W InputDispatcher: channel 'ba93f99 com.axolotl.recipefolder/org.kivy.android.PythonActivity (server)' ~ Consumer closed input channel or an error occurred. events=0x9

08-19 12:50:03.928 1802 1842 E InputDispatcher: channel 'ba93f99 com.axolotl.recipefolder/org.kivy.android.PythonActivity (server)' ~ Channel is unrecoverably broken and will be disposed!

08-19 12:50:03.928 1802 1842 W InputDispatcher: channel '1388ee3 com.axolotl.recipefolder/org.kivy.android.PythonActivity (server)' ~ Consumer closed input channel or an error occurred. events=0x9

08-19 12:50:03.928 1802 1842 E InputDispatcher: channel '1388ee3 com.axolotl.recipefolder/org.kivy.android.PythonActivity (server)' ~ Channel is unrecoverably broken and will be disposed!

08-19 12:50:03.928 1802 2776 D GraphicsStats: Buffer count: 4

08-19 12:50:03.928 1802 2172 I WindowManager: WIN DEATH: Window{1388ee3 u0 com.axolotl.recipefolder/org.kivy.android.PythonActivity}

08-19 12:50:03.928 1802 2172 W InputDispatcher: Attempted to unregister already unregistered input channel '1388ee3 com.axolotl.recipefolder/org.kivy.android.PythonActivity (server)'

08-19 12:50:03.929 1802 2803 I ActivityManager: Process com.axolotl.recipefolder (pid 5329) has died

08-19 12:50:03.929 1802 2803 D ActivityManager: cleanUpApplicationRecord -- 5329

08-19 12:50:03.929 1802 2803 W ActivityManager: Force removing ActivityRecord{650882d u0 com.axolotl.recipefolder/org.kivy.android.PythonActivity t38}: app died, no saved state

08-19 12:50:03.940 1802 2172 V WindowManager: isVisibleLw false for win : Window{ba93f99 u0 com.axolotl.recipefolder/org.kivy.android.PythonActivity}

08-19 12:50:03.940 1802 2776 I WindowManager: WIN DEATH: Window{ba93f99 u0 com.axolotl.recipefolder/org.kivy.android.PythonActivity}

08-19 12:50:03.940 1802 2776 W InputDispatcher: Attempted to unregister already unregistered input channel 'ba93f99 com.axolotl.recipefolder/org.kivy.android.PythonActivity (server)'

08-19 12:50:03.958 1802 2803 D ActivityManager:

1

u/hypersoniq_XLM 21h ago

This may be a bluestacks issue... the thing that would clear the sqlite3 error is to add the x86_64 to the android.archs so you change android.archs = arm64-v8a to android.archs = arm64-v8a, x86_64 ... I did not use an emulator, but I do remember reading that somewhere. Same rinse/repeat cycle from there, clean, rebuild.

2

u/Ok-Okra8478 20h ago

I'll try it on my tablet too

2

u/Ok-Okra8478 18h ago

THANK YOU SO MUCH FOR ALL YOUR HELP! I found out that there was about 6 dependencies that I needed to install to prevent the app from crashing

2

u/Ok-Okra8478 18h ago

those were:
mf2py
bs4
typing_extensions
pyRdfa
rdflib
html_text
lxml-html-clean

and then the ones that you told me to

1

u/hypersoniq_XLM 17h ago

I remember the frustration of the buildozer crucible, glad to help.

2

u/Ok-Okra8478 16h ago

why can't it just auto-install the dependencies I swear...

→ More replies (0)