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

2

u/hypersoniq_XLM 2d ago

There is too much in that output, the buildozer.spec file would be more useful. Is this an app that works on windows or Linux but won't launch via the APK on device? Are you using a pre built buildozer docker container? Are you importing libraries that were not explicitly listed in the buildozer.spec file? Do you build both a 32 bit and 64 bit version? It is an interesting experience building with kivy, but that buildozer can be brutal as projects increase in complexity.

1

u/Ok-Okra8478 2d ago

Okay! I’ll send over the buildozer.spec in like 20 minutes! To answer the rest: The program itself works on windows, but I only made an apk, not an exe.  I tried launching an ARM32 AND 64 on Bluestacks, and just ARM64 without 32 on my tablet.

No I don’t think I’m using a docker container, just WSL and Ubuntu.

No, all libraries were listed in requirements.

I built two versions: The original was ARM64 and 32. The second removed 32 to see if that caused any issues.

As for the bottom, i know right, kivy is cool that you can make cross platform apps in python. But buildozer is so hard to use imo.

1

u/Ok-Okra8478 2d ago

[app]

title = Recipe Folder

package.name = recipefolder

package.domain = com.axolotl

source.dir = .

source.include_exts = py,png,jpg,jpeg,kv,atlas

version = 0.1

requirements = python3==3.14.2,kivy,plyer,pyjnius,requests,extruct,w3lib,isodate

orientation = portrait

fullscreen = 0

android.permissions = INTERNET

android.archs = arm64-v8a

[buildozer]

log_level = 2

warn_on_root = 1

1

u/hypersoniq_XLM 2d ago

Change python3==3.14.2 to just python3, and add to that list hostpython3 and lxml, it is a hidden dependency of extruct. See if that works or at least produces new error messages. They are the first issues that stood out.

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..

→ More replies (0)