I can't deal with this error. I don't even know what else to try to fix it.
My buildozer.spec
requirements =python3,kivy==master,pillow
WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip. Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue. To avoid this problem you can invoke Python with '-m pip' instead of running pip directly. Package Version
apturl 0.5.2 asn1crypto 0.24.0 Brlapi 0.6.6 certifi 2018.1.18 chardet 3.0.4 click 6.7 colorama 0.3.7 command-not-found 0.3 cryptography 2.1.4 cupshelpers 1.0 Cython 3.0.0 defer 1.0.6 distlib 0.3.7 distro-info 0.18ubuntu0.18.04.1 docutils 0.14 filelock 3.4.1 httplib2 0.9.2 idna 2.6 importlib-metadata 4.8.3 importlib-resources 5.4.0 jnius 1.1.0 keyring 10.6.0 keyrings.alt 3.0 Kivy 2.2.0.dev0 Kivy-Garden 0.1.5 kivymd 1.0.2 language-selector 0.1 launchpadlib 1.10.6 lazr.restfulclient 0.13.5 lazr.uri 1.0.3 louis 3.5.0 macaroonbakery 1.1.3 Mako 1.0.7 MarkupSafe 1.0 netifaces 0.10.4 oauth 1.0.1 olefile 0.45.1 pexpect 4.8.0 Pillow 8.4.0 pip 21.3.1 platformdirs 2.4.0 protobuf 3.0.0 ptyprocess 0.7.0 pycairo 1.16.2 pycrypto 2.6.1 pycups 1.9.73 Pygments 2.2.0 PyGObject 3.26.1 pymacaroons 0.13.0 PyNaCl 1.1.2 pyRFC3339 1.0 python-apt 1.6.5+ubuntu0.7 python-dateutil 2.6.1 python-debian 0.1.32 pytz 2018.3 pyxdg 0.25 PyYAML 3.12 reportlab 3.4.0 requests 2.18.4 requests-unixsocket 0.1.5 roman 2.0.0 SecretStorage 2.3.1 setuptools 39.0.1 sh 1.14.3 simplejson 3.13.2 six 1.11.0 system-service 0.3 systemd-python 234 typing_extensions 4.1.1 ubuntu-advantage-tools 27.2 ubuntu-drivers-common 0.0.0 ufw 0.36 unattended-upgrades 0.1 urllib3 1.22 usb-creator 0.3.3 virtualenv 20.17.1 wadllib 1.3.2 wheel 0.30.0 xkit 0.0.0 zipp 3.6.0
Error compiling Cython file:
------------------------------------------------------------
...
return SDL_IsShapedWindow(self.win)
def set_shape(self, shape, mode, cutoff, color_key):
cdef SDL_Surface * sdl_shape
cpdef SDL_WindowShapeMode sdl_window_mode
^
------------------------------------------------------------
kivy/core/window/_window_sdl2.pyx:440:14: Variables cannot be declared with 'cpdef'. Use 'cdef' instead.
Error compiling Cython file:
------------------------------------------------------------
...
# Open all available joysticks
cdef int joy_i
for joy_i in range(SDL_NumJoysticks()):
SDL_JoystickOpen(joy_i)
SDL_SetEventFilter(_event_filter, <void *>self)
^
------------------------------------------------------------
kivy/core/window/_window_sdl2.pyx:266:27: Cannot assign type 'int (void *, SDL_Event *) except? -1 nogil' to 'SDL_EventFilter *'
Error compiling Cython file:
------------------------------------------------------------
...
wx, wy = self.get_window_pos()
return x - wx, y - wy
def set_custom_titlebar(self, titlebar_widget):
SDL_SetWindowBordered(self.win, SDL_FALSE)
return SDL_SetWindowHitTest(self.win,custom_titlebar_handler_callback,<void *>titlebar_widget)
^
------------------------------------------------------------
kivy/core/window/_window_sdl2.pyx:796:45: Cannot assign type 'SDL_HitTestResult (SDL_Window *, const SDL_Point *, void *) except * nogil' to 'SDL_HitTest'
STDERR:
# Command failed: ['/usr/bin/python3.8', '-m', 'pythonforandroid.toolchain', 'create', '--dist_name=pizza-app', '--bootstrap=sdl2', '--requirements=python3,kivy==master,pillow', '--arch=arm64-v8a', '--arch=armeabi-v7a', '--copy-libs', '--color=always', '--storage-dir=/home/elliot/pizza/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a', '--ndk-api=21', '--ignore-setup-py', '--debug']
# ENVIRONMENT:
# CLUTTER_IM_MODULE = 'xim'
# 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=30;41: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:*.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:*.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:*.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:'
# LESSCLOSE = '/usr/bin/lesspipe %s %s'
# XDG_MENU_PREFIX = 'gnome-'
# LANG = 'ru_RU.UTF-8'
# MANAGERPID = '1286'
# DISPLAY = ':0'
# INVOCATION_ID = '7ffb8a707659427fbb1968aa335165db'
# GNOME_SHELL_SESSION_MODE = 'ubuntu'
# COLORTERM = 'truecolor'
# ZEITGEIST_DATA_PATH = '/home/elliot/.local/share/zeitgeist'
# USERNAME = 'elliot'
# XDG_VTNR = '2'
# SSH_AUTH_SOCK = '/run/user/1000/keyring/ssh'
# XDG_SESSION_ID = '2'
# USER = 'elliot'
# DESKTOP_SESSION = 'ubuntu'
# QT4_IM_MODULE = 'xim'
# TEXTDOMAINDIR = '/usr/share/locale/'
# GNOME_TERMINAL_SCREEN = '/org/gnome/Terminal/screen/6060b567_f174_4465_a44c_793a9dd5947d'
# PWD = '/home/elliot/pizza'
# HOME = '/home/elliot'
# JOURNAL_STREAM = '9:28060'
# TEXTDOMAIN = 'im-config'
# SSH_AGENT_PID = '1416'
# QT_ACCESSIBILITY = '1'
# XDG_SESSION_TYPE = 'x11'
# XDG_DATA_DIRS = '/usr/share/ubuntu:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop'
# XDG_SESSION_DESKTOP = 'ubuntu'
# DBUS_STARTER_ADDRESS = 'unix:path=/run/user/1000/bus,guid=912fc43f7f8e25972c9e138e64d78841'
# GTK_MODULES = 'gail:atk-bridge'
# WINDOWPATH = '2'
# TERM = 'xterm-256color'
# SHELL = '/bin/bash'
# VTE_VERSION = '5202'
# QT_IM_MODULE = 'ibus'
# XMODIFIERS = '@im=ibus'
# IM_CONFIG_PHASE = '2'
# DBUS_STARTER_BUS_TYPE = 'session'
# XDG_CURRENT_DESKTOP = 'ubuntu:GNOME'
# GPG_AGENT_INFO = '/run/user/1000/gnupg/S.gpg-agent:0:1'
# GNOME_TERMINAL_SERVICE = ':1.329'
# XDG_SEAT = 'seat0'
# SHLVL = '1'
# GDMSESSION = 'ubuntu'
# GNOME_DESKTOP_SESSION_ID = 'this-is-deprecated'
# LOGNAME = 'elliot'
# DBUS_SESSION_BUS_ADDRESS = 'unix:path=/run/user/1000/bus,guid=912fc43f7f8e25972c9e138e64d78841'
# XDG_RUNTIME_DIR = '/run/user/1000'
# XAUTHORITY = '/run/user/1000/gdm/Xauthority'
# XDG_CONFIG_DIRS = '/etc/xdg/xdg-ubuntu:/etc/xdg'
# PATH = '/home/elliot/.buildozer/android/platform/apache-ant-1.9.4/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin'
# SESSION_MANAGER = 'local/elliot-VirtualBox:@/tmp/.ICE-unix/1321,unix/elliot-VirtualBox:/tmp/.ICE-unix/1321'
# LESSOPEN = '| /usr/bin/lesspipe %s'
# GTK_IM_MODULE = 'ibus'
# _ = '/usr/local/bin/buildozer'
# PACKAGES_PATH = '/home/elliot/.buildozer/android/packages'
# ANDROIDSDK = '/home/elliot/.buildozer/android/platform/android-sdk'
# ANDROIDNDK = '/home/elliot/.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
Reinstalled packages. But I'm not sure what's right