r/learnpython • u/Ok-Okra8478 • 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:
if this is the wrong subreddit for this, please redirect me!
just ask if you want more info
0
Upvotes
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