You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Python: 3.11.2 (main, Mar 13 2023, 12:18:29) [GCC 12.2.0]
OS: debian 12 (bookworm) x86_64
Buildozer: latest? installed buildozer yesterday so probably latest
Neofetch (for more info about my device, might be useful idk)
OS: Debian GNU/Linux 12 (bookworm) x86_64
Host: Latitude E5500
Kernel: 6.1.0-18-amd64
Uptime: 50 mins
Packages: 2035 (dpkg), 6 (flatpak)
Shell: bash 5.2.15
Resolution: 1280x800, 768x1280
DE: Xfce 4.18
WM: Xfwm4
Terminal: xfce4-terminal
Terminal Font: Monospace 12
CPU: Intel Core 2 Duo P8600 (2) @ 2.401GHz
GPU: Intel Mobile 4 Series Chipset
Memory: 1802MiB / 3870MiB
Description
im trying to make an apk/aab out of a game i made with pygame a while ago, and buildozer keeps giving me a bunch of errors, some of which ive been able to fix by
modifying a command buildozer runs, specifically a pip command
[DEBUG]: cwd is /home/joey/Documents/python/Untitled_faller/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/pyjnius-sdl2/armeabi-v7a__ndk_target_21/pyjnius
[INFO]: Trying first build of pyjnius to get cython files: this is expected to fail
[DEBUG]: -> running python3 setup.py build_ext -v
[DEBUG]: Traceback (most recent call last):
[DEBUG]: File "/home/joey/Documents/python/Untitled_faller/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/pyjnius-sdl2/armeabi-v7a__ndk_target_21/pyjnius/setup.py", line 6, in <module>
[DEBUG]: from setuptools import setup, Extension
[DEBUG]: ImportError: cannot import name 'setup' from 'setuptools' (/home/joey/Documents/python/Untitled_faller/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/native-build/Lib/site-packages/setuptools/__init__.py)
Exception in thread background thread for pid 28198:
Traceback (most recent call last):
File "/usr/lib/python3.11/threading.py", line 1038, in _bootstrap_inner
self.run()
File "/usr/lib/python3.11/threading.py", line 975, in run
self._target(*self._args, **self._kwargs)
File "/home/joey/.local/lib/python3.11/site-packages/sh.py", line 1641, in wrap
fn(*rgs, **kwargs)
File "/home/joey/.local/lib/python3.11/site-packages/sh.py", line 2569, in background_thread
handle_exit_code(exit_code)
File "/home/joey/.local/lib/python3.11/site-packages/sh.py", line 2269, in fn
return self.command.handle_command_exit_code(exit_code)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/joey/.local/lib/python3.11/site-packages/sh.py", line 869, in handle_command_exit_code
raise exc
sh.ErrorReturnCode_1:
RAN: /home/joey/Documents/python/Untitled_faller/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/native-build/python3 setup.py build_ext -v
STDOUT:
Traceback (most recent call last):
File "/home/joey/Documents/python/Untitled_faller/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/pyjnius-sdl2/armeabi-v7a__ndk_target_21/pyjnius/setup.py", line 6, in <module>
from setuptools import setup, Extension
ImportError: cannot import name 'setup' from 'setuptools' (/home/joey/Documents/python/Untitled_faller/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/native-build/Lib/site-packages/setuptools/__init__.py)
STDERR:
[INFO]: pyjnius first build failed (as expected)
[INFO]: Running cython where appropriate
[INFO]: Cythonize jnius/jnius.pyx
[DEBUG]: -> running python3 -cimport sys; from Cython.Compiler.Main import setuptools_main; sys.exit(setuptools_main()); ./jnius/jnius.pyx
[DEBUG]: /home/joey/.local/lib/python3.11/site-packages/Cython/Compiler/Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /home/joey/Documents/python/Untitled_faller/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/pyjnius-sdl2/armeabi-v7a__ndk_target_21/pyjnius/jnius/jnius.pyx
[DEBUG]: tree = Parsing.p_module(s, pxd, full_module_name)
[DEBUG]:
[DEBUG]: Error compiling Cython file:
[DEBUG]: ------------------------------------------------------------
[DEBUG]: ...
[DEBUG]: import sys
[DEBUG]: import traceback
[DEBUG]:
[DEBUG]: include "jnius_compat.pxi"
[DEBUG]: include "jni.pxi"
[DEBUG]: include "config.pxi"
[DEBUG]: ^
[DEBUG]: ------------------------------------------------------------
[DEBUG]:
[DEBUG]: jnius/jnius.pyx:100:0: 'config.pxi' not found
[DEBUG]:
[DEBUG]: Error compiling Cython file:
[DEBUG]: ------------------------------------------------------------
[DEBUG]: ...
[DEBUG]:
[DEBUG]: include "jnius_compat.pxi"
[DEBUG]: include "jni.pxi"
[DEBUG]: include "config.pxi"
[DEBUG]:
[DEBUG]: IF JNIUS_PLATFORM == "android":
[DEBUG]: ^
[DEBUG]: ------------------------------------------------------------
[DEBUG]:
[DEBUG]: jnius/jnius.pyx:102:3: Compile-time name 'JNIUS_PLATFORM' not defined
[DEBUG]:
[DEBUG]: Error compiling Cython file:
[DEBUG]: ------------------------------------------------------------
[DEBUG]: ...
[DEBUG]: include "jni.pxi"
[DEBUG]: include "config.pxi"
[DEBUG]:
[DEBUG]: IF JNIUS_PLATFORM == "android":
[DEBUG]: include "jnius_jvm_android.pxi"
[DEBUG]: ELIF JNIUS_PLATFORM == "win32":
[DEBUG]: ^
[DEBUG]: ------------------------------------------------------------
[DEBUG]:
[DEBUG]: jnius/jnius.pyx:104:5: Compile-time name 'JNIUS_PLATFORM' not defined
[DEBUG]:
[DEBUG]: Error compiling Cython file:
[DEBUG]: ------------------------------------------------------------
[DEBUG]: ...
[DEBUG]: include "config.pxi"
[DEBUG]: ^
[DEBUG]: ------------------------------------------------------------
[DEBUG]:
[DEBUG]: jnius/jnius_jvm_dlopen.pxi:1:0: 'config.pxi' not found
[DEBUG]:
Exception in thread background thread for pid 28205:
Traceback (most recent call last):
File "/usr/lib/python3.11/threading.py", line 1038, in _bootstrap_inner
self.run()
File "/usr/lib/python3.11/threading.py", line 975, in run
self._target(*self._args, **self._kwargs)
File "/home/joey/.local/lib/python3.11/site-packages/sh.py", line 1641, in wrap
fn(*rgs, **kwargs)
File "/home/joey/.local/lib/python3.11/site-packages/sh.py", line 2569, in background_thread
handle_exit_code(exit_code)
File "/home/joey/.local/lib/python3.11/site-packages/sh.py", line 2269, in fn
return self.command.handle_command_exit_code(exit_code)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/joey/.local/lib/python3.11/site-packages/sh.py", line 869, in handle_command_exit_code
raise exc
sh.ErrorReturnCode_1:
RAN: /usr/bin/python3 '-cimport sys; from Cython.Compiler.Main import setuptools_main; sys.exit(setuptools_main());' ./jnius/jnius.pyx
STDOUT:
/home/joey/.local/lib/python3.11/site-packages/Cython/Compiler/Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /home/joey/Documents/python/Untitled_faller/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/pyjnius-sdl2/armeabi-v7a__ndk_target_21/pyjnius/jnius/jnius.pyx
tree = Parsing.p_module(s, pxd, full_module_name)
Error compiling Cython file:
------------------------------------------------------------
...
import sys
import traceback
include "jnius_compat.pxi"
include "jni.pxi"
include "config.pxi"
^
------------------------------------------------------------
jnius/jnius.pyx:100:0: 'config.pxi' not found
Error compiling Cython file:
------------------------------------------------------------
...
include "jnius_compat.pxi"
include "jni.pxi"
include "config.pxi"
IF JNIUS_PLATFORM == "android":
^
------------------------------------------------------------
jnius/jnius.pyx:102:3: Compile-time name 'JNIUS_PLATFORM' not defined
Error compiling Cython file:
------------------------------------------------------------
...
include "jni.pxi"
include "config.pxi"
IF JNIUS_PLATFORM == "android":
include "jnius_jvm_android.pxi"
ELIF JNIUS_PLATFORM == "win32":
^
------------------------------------------------------------
jnius/jnius.pyx:104:5: Compile-time name 'JNIUS_PLATFORM' not defined
Error compiling Cython file:
------------------------------------------------------------
...
include "config.pxi"
^
------------------------------------------------------------
jnius/jnius_jvm_dlopen.pxi:1:0: 'config.pxi' not found
STDERR:
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "/home/joey/Documents/python/Untitled_faller/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 1256, in <module>
main()
File "/home/joey/Documents/python/Untitled_faller/.buildozer/android/platform/python-for-android/pythonforandroid/entrypoints.py", line 18, in main
ToolchainCL()
File "/home/joey/Documents/python/Untitled_faller/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 685, in __init__
getattr(self, command)(args)
File "/home/joey/Documents/python/Untitled_faller/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 104, in wrapper_func
build_dist_from_args(ctx, dist, args)
File "/home/joey/Documents/python/Untitled_faller/.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/joey/Documents/python/Untitled_faller/.buildozer/android/platform/python-for-android/pythonforandroid/build.py", line 504, in build_recipes
recipe.build_arch(arch)
File "/home/joey/Documents/python/Untitled_faller/.buildozer/android/platform/python-for-android/pythonforandroid/recipe.py", line 1031, in build_arch
self.build_cython_components(arch)
File "/home/joey/Documents/python/Untitled_faller/.buildozer/android/platform/python-for-android/pythonforandroid/recipe.py", line 1056, in build_cython_components
self.cythonize_build(env=env)
File "/home/joey/Documents/python/Untitled_faller/.buildozer/android/platform/python-for-android/pythonforandroid/recipe.py", line 1104, in cythonize_build
self.cythonize_file(env, build_dir, join(root, filename))
File "/home/joey/Documents/python/Untitled_faller/.buildozer/android/platform/python-for-android/pythonforandroid/recipe.py", line 1093, in cythonize_file
shprint(python_command, "-c"
File "/home/joey/Documents/python/Untitled_faller/.buildozer/android/platform/python-for-android/pythonforandroid/logger.py", line 167, in shprint
for line in output:
File "/home/joey/.local/lib/python3.11/site-packages/sh.py", line 915, in next
self.wait()
File "/home/joey/.local/lib/python3.11/site-packages/sh.py", line 845, in wait
self.handle_command_exit_code(exit_code)
File "/home/joey/.local/lib/python3.11/site-packages/sh.py", line 869, in handle_command_exit_code
raise exc
sh.ErrorReturnCode_1:
RAN: /usr/bin/python3 '-cimport sys; from Cython.Compiler.Main import setuptools_main; sys.exit(setuptools_main());' ./jnius/jnius.pyx
STDOUT:
/home/joey/.local/lib/python3.11/site-packages/Cython/Compiler/Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /home/joey/Documents/python/Untitled_faller/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/pyjnius-sdl2/armeabi-v7a__ndk_target_21/pyjnius/jnius/jnius.pyx
tree = Parsing.p_module(s, pxd, full_module_name)
Error compiling Cython file:
------------------------------------------------------------
...
import sys
import traceback
include "jnius_compat.pxi"
include "jni.pxi"
include "config.pxi"
^
------------------------------------------------------------
jnius/jnius.pyx:100:0: 'config.pxi' not found
Error compiling Cython file:
------------------------------------------------------------
...
include "jnius_compat.pxi"
include "jni.pxi"
include "config.pxi"
IF JNIUS_PLATFORM == "android":
^
------------------------------------------------------------
jnius/jnius.pyx:102:3: Compile-time name 'JNIUS_PLATFORM' not defined
Error compiling Cython file:
------------------------------------------------------------
...
include "jni.pxi"
include "config.pxi"
IF JNIUS_PLATFORM == "android":
include "jnius_jvm_android.pxi"
ELIF JNIUS_PLATFORM == "win32":
^
------------------------------------------------------------
jnius/jnius.pyx:104:5: Compile-time name 'JNIUS_PLATFORM' not defined
Error compiling Cython file:
------------------------------------------------------------
...
include "config.pxi"
^
------------------------------------------------------------
jnius/jnius_jvm_dlopen.pxi:1:0: 'config.pxi' not found
STDERR:
# Command failed: ['/usr/bin/python3', '-m', 'pythonforandroid.toolchain', 'create', '--dist_name=untitledfaller', '--bootstrap=sdl2', '--requirements=python3,kivy', '--arch=arm64-v8a', '--arch=armeabi-v7a', '--copy-libs', '--color=always', '--storage-dir=/home/joey/Documents/python/Untitled_faller/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a', '--ndk-api=21', '--ignore-setup-py', '--debug']
# ENVIRONMENT:
# SHELL = '/bin/bash'
# SESSION_MANAGER = 'local/delly5500:@/tmp/.ICE-unix/884,unix/delly5500:/tmp/.ICE-unix/884'
# WINDOWID = '27262979'
# QT_ACCESSIBILITY = '1'
# COLORTERM = 'truecolor'
# XDG_CONFIG_DIRS = '/etc/xdg'
# XDG_SESSION_PATH = '/org/freedesktop/DisplayManager/Session0'
# XDG_MENU_PREFIX = 'xfce-'
# SSH_AUTH_SOCK = '/tmp/ssh-XXXXXXNrzTuO/agent.884'
# DESKTOP_SESSION = 'lightdm-xsession'
# SSH_AGENT_PID = '934'
# GTK_MODULES = 'gail:atk-bridge'
# XDG_SEAT = 'seat0'
# PWD = '/home/joey/Documents/python/Untitled_faller'
# LOGNAME = 'joey'
# XDG_SESSION_DESKTOP = 'lightdm-xsession'
# XDG_SESSION_TYPE = 'x11'
# XAUTHORITY = '/home/joey/.Xauthority'
# XDG_GREETER_DATA_DIR = '/var/lib/lightdm/data/joey'
# HOME = '/home/joey'
# LANG = 'en_US.UTF-8'
# LS_COLORS = 'rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=00:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.avif=01;35:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:*~=00;90:*#=00;90:*.bak=00;90:*.old=00;90:*.orig=00;90:*.part=00;90:*.rej=00;90:*.swp=00;90:*.tmp=00;90:*.dpkg-dist=00;90:*.dpkg-old=00;90:*.ucf-dist=00;90:*.ucf-new=00;90:*.ucf-old=00;90:*.rpmnew=00;90:*.rpmorig=00;90:*.rpmsave=00;90:'
# XDG_CURRENT_DESKTOP = 'XFCE'
# VTE_VERSION = '7006'
# XDG_SEAT_PATH = '/org/freedesktop/DisplayManager/Seat0'
# XDG_SESSION_CLASS = 'user'
# TERM = 'xterm-256color'
# USER = 'joey'
# DISPLAY = ':0.0'
# SHLVL = '1'
# XDG_VTNR = '7'
# XDG_SESSION_ID = '2'
# XDG_RUNTIME_DIR = '/run/user/1000'
# XDG_DATA_DIRS = '/usr/share/xfce4:/home/joey/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share'
# PATH = '/home/joey/.buildozer/android/platform/apache-ant-1.9.4/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/home/joey/.local/bin/'
# GDMSESSION = 'lightdm-xsession'
# DBUS_SESSION_BUS_ADDRESS = 'unix:path=/run/user/1000/bus'
# _ = '/home/joey/.local/bin/buildozer'
# OLDPWD = '/home/joey'
# PACKAGES_PATH = '/home/joey/.buildozer/android/packages'
# ANDROIDSDK = '/home/joey/.buildozer/android/platform/android-sdk'
# ANDROIDNDK = '/home/joey/.buildozer/android/platform/android-ndk-r25b'
# ANDROIDAPI = '31'
# ANDROIDMINAPI = '21'
#
# Buildozer failed to execute the last command
# The error might be hidden in the log above this error
# Please read the full log, and search for it before
# raising an issue with buildozer itself.
# In case of a bug report, please add a full log with log_level = 2
The text was updated successfully, but these errors were encountered:
👋 @joeyjpg,
Sorry to hear you are having difficulties with Kivy's Buildozer; Kivy unites a number of different technologies, so building apps can be temperamental.
We try to use GitHub issues only to track work for developers to do to fix bugs and add new features to Buildozer. This issue has been closed, because it doesn't describe a bug or new feature request for Buildozer.
There is a mailing list and a Discord channel to support Kivy users debugging their own systems, which should be able to help. They are linked in the ReadMe.
Of course, if it turns out you have stumbled over a bug in Buildozer, we do want to hear about it here. The support channels should be able to help you craft an appropriate bug report.
(Note that i am following the docs found at https://buildozer.readthedocs.io)
Versions
Neofetch (for more info about my device, might be useful idk)
OS: Debian GNU/Linux 12 (bookworm) x86_64
Host: Latitude E5500
Kernel: 6.1.0-18-amd64
Uptime: 50 mins
Packages: 2035 (dpkg), 6 (flatpak)
Shell: bash 5.2.15
Resolution: 1280x800, 768x1280
DE: Xfce 4.18
WM: Xfwm4
Terminal: xfce4-terminal
Terminal Font: Monospace 12
CPU: Intel Core 2 Duo P8600 (2) @ 2.401GHz
GPU: Intel Mobile 4 Series Chipset
Memory: 1802MiB / 3870MiB
Description
im trying to make an apk/aab out of a game i made with pygame a while ago, and buildozer keeps giving me a bunch of errors, some of which ive been able to fix by
but now ive reached a dead end
buildozer.spec
Command:
Spec file:
Logs
The text was updated successfully, but these errors were encountered: