Repository navigation
P4a 2026 - severall problems about installation #3342
Description
Activity
@pakheper Please share full log, errors that are you describing are not errors but just warnings (yes labeled wrong).
Here is a compile log with targetsdk =30 (same error with targetsdk = 27)
context : Vmware ubuntu 26.0 (same result with ubuntu 22.04)
i installed p4a with pip install , i had similar result with the branch version@pakheper Ensure you have
Cython>=0.29,<3.1in your system.Then retry, also do post full command used.
- I installed Cython with pip3 install Cython==3.0.12 before building app apk I installed this version after i saw the p4a recipes for pyjnius and android modules: FYI the build of my app works fine in pa4 2023.05 and p4a 2024.01 but Cython version is older : Cython 0.29 for my P4a 2023. here is Cython version and path for my current P4a 2026 environment ***@***.***:~$ pip3 freeze | grep Cython Cython==3.0.12 ***@***.***:~$ locate Cython /home/pa/.local/lib/python3.14/site-packages/Cython /home/pa/.local/lib/python3.14/site-packages/Cython-3.0.12.dist-info /home/pa/.local/lib/python3.14/site-packages/Cython/Build /home/pa/.local/lib/python3.14/site-packages/Cython/CodeWriter.py /home/pa/.local/lib/python3.14/site-packages/Cython/Compiler /home/pa/.local/lib/python3.14/site-packages/Cython/Coverage.py /home/pa/.local/lib/python3.14/site-packages/Cython/Debugger /home/pa/.local/lib/python3.14/site-packages/Cython/Debugging.py /home/pa/.local/lib/python3.14/site-packages/Cython/Distutils …. is it a wrong path for Cython?…----------------------------------------- i join my apk build order below (it's launched by subprocerss) Subprocess.call ( ['/home/pa/.local/bin/p4a', 'apk', '--dist_name', 'listener_p4a_dist_64', '--private', '/home/pa/App-android', '--package', 'xo.p4a.mai26.listener64', '--name', 'listener', '--version', '26.5.64', '--icon', '/home/pa/App-android/listener_icon.png', '--presplash', '/home/pa/App-android/presplash.png', '--orientation', 'portrait', '--bootstrap=sdl2', '--requirements=python3,kivy,git+https://github.com/kivy/plyer.git, python-osc', '--sdk_dir', '/home/pa/android-sdk', '--android_api', '27', '--ndk_dir', '/home/pa/android-ndk-r28c', '--minsdk', '21', '--ndk-api', '21', '--window', '--enable-androidx', '--depend=androidx.core:core:1.6.0', '--permission=WINDOW', '--permission=WAKE_LOCK', '--permission=RECEIVE_BOOT_COMPLETED', '--permission=MANAGE_EXTERNAL_STORAGE', '--permission=QUERY_ALL_PACKAGES', '--permission=POST_NOTIFICATIONS', '--permission=ACCESS_NOTIFICATION_POLICY', '--permission=ACCESS_NOTIFICATIONS', '--permission=FOREGROUND_SERVICE', '--permission=FOREGROUND_SERVICE_MEDIA_PLAYBACK', '--permission=VIBRATE', '--permission=INTERNET', '--service=myservice:./services/listener_Myservice.py:foreground:foregroundServiceType=mediaPlayback', '--arch=arm64-v8a']) Envoyé avec un e-mail sécurisé [Proton Mail](https://proton.me/mail/home). Le lundi 1 juin 2026 à 20:45, Ansh Dadwal ***@***.***> a écrit :T-Dynamos left a comment [(kivy/python-for-android#3342)](#3342 (comment)) ***@***.***(https://github.com/pakheper) Ensure you have Cython>=0.29,<3.1 in your system. Then retry, also do post full command used. — Reply to this email directly, [view it on GitHub](#3342?email_source=notifications&email_token=BJ3LJDBM34WZPUUFBPXGRMT45XFMFA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTINJZGU2DQOJXG432M4TFMFZW63VHNVSW45DJN5XKKZLWMVXHJLDGN5XXIZLSL5RWY2LDNM#issuecomment-4595489777), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/BJ3LJDHVB2ZEDLTBHAKJ4LD45XFMFAVCNFSM6AAAAACZV2JGY6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHM2DKOJVGQ4DSNZXG4). Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for [iOS](https://github.com/notifications/mobile/ios/BJ3LJDBDHEDUYFXTHAHB7IT45XFMFA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTINJZGU2DQOJXG432M4TFMFZW63VHNVSW45DJN5XKKZLWMVXHJKTGN5XXIZLSL5UW64Y) and [Android](https://github.com/notifications/mobile/android/BJ3LJDEH5EA3T6YSQ3543YD45XFMFA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTINJZGU2DQOJXG432M4TFMFZW63VHNVSW45DJN5XKKZLWMVXHJLTGN5XXIZLSL5QW4ZDSN5UWI). Download it today! You are receiving this because you were mentioned.Message ID: ***@***.***>
Something is broken in build,
cythonis provided by hostpython3, which is missing, but android hashostpython_prerequisites = ["Cython>=0.29,<3.1"]-- so should have been installed before building android. But it's not. So could you clean build withP4A_FULL_DEBUG=1and then share logs?- Here is a new build.log after 'p4a clean_builds' and 'export P4A_FULL_DEBUG=1' commands Envoyé avec un e-mail sécurisé [Proton Mail](https://proton.me/mail/home). Le mardi 2 juin 2026 à 11:30, Ansh Dadwal ***@***.***> a écrit :T-Dynamos left a comment [(kivy/python-for-android#3342)](#3342 (comment)) Something is broken in build, cython is provided by hostpython3, which is missing, but android has hostpython_prerequisites = ["Cython>=0.29,<3.1"] -- so should have been installed before building android. But it's not. So could you clean build with P4A_FULL_DEBUG=1 and then share logs? — Reply to this email directly, [view it on GitHub](#3342?email_source=notifications&email_token=BJ3LJDHCALMIX2DKNPZIY63452NDFA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTINRQGEYDENZWG42KM4TFMFZW63VHNVSW45DJN5XKKZLWMVXHJLDGN5XXIZLSL5RWY2LDNM#issuecomment-4601027674), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/BJ3LJDATODNIXX74U6RMLML452NDFAVCNFSM6AAAAACZV2JGY6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHM2DMMBRGAZDONRXGQ). Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for [iOS](https://github.com/notifications/mobile/ios/BJ3LJDAJJMUMRQNKY5TXWX3452NDFA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTINRQGEYDENZWG42KM4TFMFZW63VHNVSW45DJN5XKKZLWMVXHJKTGN5XXIZLSL5UW64Y) and [Android](https://github.com/notifications/mobile/android/BJ3LJDGASTI75GFMCBROZNT452NDFA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTINRQGEYDENZWG42KM4TFMFZW63VHNVSW45DJN5XKKZLWMVXHJLTGN5XXIZLSL5QW4ZDSN5UWI). Download it today! You are receiving this because you were mentioned.Message ID: ***@***.***> >pa-6440-[INFO ] Lancement de la compilation['/home/pa/.local/bin/p4a', 'apk', '--dist_name', 'listener_p4a_dist_64', '--private', '/home/pa/App-android', '--package', 'xo.p4a.mai26.listener64', '--name', 'listener', '--version', '26.5.64', '--icon', '/home/pa/App-android/listener_icon.png', '--presplash', '/home/pa/App-android/presplash.png', '--orientation', 'portrait', '--bootstrap=sdl2', '--requirements=python3,kivy,git+https://github.com/kivy/plyer.git, python-osc', '--sdk_dir', '/home/pa/android-sdk', '--android_api', '30', '--ndk_dir', '/home/pa/android-ndk-r28c', '--minsdk', '21', '--ndk-api', '21', '--window', '--enable-androidx', '--depend=androidx.core:core:1.6.0', '--permission=WINDOW', '--permission=WAKE_LOCK', '--permission=RECEIVE_BOOT_COMPLETED', '--permission=MANAGE_EXTERNAL_STORAGE', '--permission=QUERY_ALL_PACKAGES', '--permission=POST_NOTIFICATIONS', '--permission=ACCESS_NOTIFICATION_POLICY', '--permission=ACCESS_NOTIFICATIONS', '--permission=FOREGROUND_SERVICE', '--permission=FOREGROUND_SERVICE_MEDIA_PLAYBACK', '--permission=VIBRATE', '--permission=INTERNET', '--service=myservice:./services/listener_Myservice.py:foreground:foregroundServiceType=mediaPlayback', '--arch=arm64-v8a'] [WARNING]: prerequisites.py is experimental and does not support all prerequisites yet. [WARNING]: Please report any issues to the python-for-android issue tracker. [INFO]: Will compile for the following archs: arm64-v8a [INFO]: Getting Android API version from user argument: 30 [INFO]: Available Android APIs are (27, 30, 31, 34, 36) [INFO]: Requested API target 30 is available, continuing. [INFO]: Getting NDK dir from from user argument [INFO]: Found NDK version 28c [WARNING]: Maximum recommended NDK version is 28c, but newer versions may work. [WARNING]: Newer NDKs may not be fully supported by p4a. [INFO]: Getting NDK API version (i.e. minimum supported API) from user argument [INFO]: No existing dists meet the given requirements! [INFO]: No dist exists that meets your requirements, so one will be built. [INFO]: Found a single valid recipe set: ['git+https://github.com/kivy/plyer.git', 'hostpython3', 'libffi', 'openssl', 'python-osc', 'sdl2_image', 'sdl2_mixer', 'sdl2_ttf', 'six', 'sqlite3', 'python3', 'sdl2', 'pyjnius', 'setuptools', 'android', 'kivy'] [INFO]: The selected bootstrap is sdl2 [INFO]: # Creating dist with sdl2 bootstrap [INFO]: Dist will have name listener_p4a_dist_64 and requirements (python3, kivy, git+https://github.com/kivy/plyer.git, python-osc) [INFO]: Dist contains the following requirements as recipes: ['hostpython3', 'libffi', 'openssl', 'sdl2_image', 'sdl2_mixer', 'sdl2_ttf', 'sqlite3', 'python3', 'sdl2', 'pyjnius', 'setuptools', 'android', 'kivy'] [INFO]: Dist will also contain modules (filetype, chardet, git+https://github.com/kivy/plyer.git, certifi, urllib3, python-osc, idna, six, requests) installed from pip [INFO]: Dist will be build in mode debug [INFO]: -> directory context /home/pa/.local/share/python-for-android/build/bootstrap_builds/sdl2 [INFO]: <- directory context /home/pa [INFO]: Recipe build order is ['hostpython3', 'libffi', 'openssl', 'sdl2_image', 'sdl2_mixer', 'sdl2_ttf', 'sqlite3', 'python3', 'sdl2', 'pyjnius', 'setuptools', 'android', 'kivy'] [INFO]: The requirements (certifi, chardet, filetype, git+https://github.com/kivy/plyer.git, idna, python-osc, requests, six, urllib3) were not found as recipes, they will be installed with pip. [INFO]: # Downloading recipes [INFO]: Downloading hostpython3 [INFO]: -> directory context /home/pa/.local/share/python-for-android/packages/hostpython3 [INFO]: -> running basename https://github.com/pyt...(and 44 more) [INFO]: hostpython3 download already cached, skipping [INFO]: <- directory context /home/pa [INFO]: Downloading libffi [INFO]: -> directory context /home/pa/.local/share/python-for-android/packages/libffi [INFO]: -> running basename https://github.com/lib...(and 32 more) [INFO]: libffi download already cached, skipping [INFO]: <- directory context /home/pa [INFO]: Downloading openssl [INFO]: -> directory context /home/pa/.local/share/python-for-android/packages/openssl [INFO]: -> running basename https://www.openssl.or...(and 29 more) [INFO]: openssl download already cached, skipping [INFO]: <- directory context /home/pa [INFO]: Downloading sdl2_image [INFO]: -> directory context /home/pa/.local/share/python-for-android/packages/sdl2_image [INFO]: -> running basename https://github.com/li...(and 74 more) [INFO]: sdl2_image download already cached, skipping [INFO]: <- directory context /home/pa [INFO]: Downloading sdl2_mixer [INFO]: -> directory context /home/pa/.local/share/python-for-android/packages/sdl2_mixer [INFO]: -> running basename https://github.com/li...(and 74 more) [INFO]: sdl2_mixer download already cached, skipping [INFO]: <- directory context /home/pa [INFO]: Downloading sdl2_ttf [INFO]: -> directory context /home/pa/.local/share/python-for-android/packages/sdl2_ttf [INFO]: -> running basename https://github.com/li...(and 72 more) [INFO]: sdl2_ttf download already cached, skipping [INFO]: <- directory context /home/pa [INFO]: Downloading sqlite3 [INFO]: -> directory context /home/pa/.local/share/python-for-android/packages/sqlite3 [INFO]: -> running basename https://github.com/sq...(and 51 more) [INFO]: sqlite3 download already cached, skipping [INFO]: <- directory context /home/pa [INFO]: Downloading python3 [INFO]: -> directory context /home/pa/.local/share/python-for-android/packages/python3 [INFO]: -> running basename https://github.com/pyt...(and 44 more) [INFO]: python3 download already cached, skipping [INFO]: <- directory context /home/pa [INFO]: Downloading sdl2 [INFO]: -> directory context /home/pa/.local/share/python-for-android/packages/sdl2 [INFO]: -> running basename https://github.com/li...(and 66 more) [INFO]: sdl2 download already cached, skipping [INFO]: <- directory context /home/pa [INFO]: Downloading pyjnius [INFO]: -> directory context /home/pa/.local/share/python-for-android/packages/pyjnius [INFO]: -> running basename https://github.com/kiv...(and 27 more) [INFO]: pyjnius download already cached, skipping [INFO]: <- directory context /home/pa [INFO]: Downloading setuptools [INFO]: Skipping setuptools download as no URL is set [INFO]: Downloading android [INFO]: Skipping android download as no URL is set [INFO]: Downloading kivy [INFO]: -> directory context /home/pa/.local/share/python-for-android/packages/kivy [INFO]: -> running basename https://github.com/kiv...(and 24 more) [INFO]: kivy download already cached, skipping [INFO]: <- directory context /home/pa [INFO]: # Building all recipes for arch arm64-v8a [INFO]: # Unpacking recipes [INFO]: Unpacking hostpython3 for arm64-v8a [INFO]: -> running basename https://github.com/pyt...(and 44 more) [INFO]: -> directory context /home/pa/.local/share/python-for-android/build/other_builds/hostpython3/desktop [INFO]: <- directory context /home/pa [INFO]: Unpacking libffi for arm64-v8a [INFO]: -> running basename https://github.com/lib...(and 32 more) [INFO]: -> directory context /home/pa/.local/share/python-for-android/build/other_builds/libffi/arm64-v8a__ndk_target_21 [INFO]: <- directory context /home/pa [INFO]: Unpacking openssl for arm64-v8a [INFO]: -> running basename https://www.openssl.or...(and 29 more) [INFO]: -> directory context /home/pa/.local/share/python-for-android/build/other_builds/openssl/arm64-v8a__ndk_target_21 [INFO]: <- directory context /home/pa [INFO]: Unpacking sdl2_image for arm64-v8a [INFO]: -> running basename https://github.com/li...(and 74 more) [INFO]: -> directory context /home/pa/.local/share/python-for-android/build/bootstrap_builds/sdl2/jni [INFO]: <- directory context /home/pa [INFO]: Unpacking sdl2_mixer for arm64-v8a [INFO]: -> running basename https://github.com/li...(and 74 more) [INFO]: -> directory context /home/pa/.local/share/python-for-android/build/bootstrap_builds/sdl2/jni [INFO]: <- directory context /home/pa [INFO]: Unpacking sdl2_ttf for arm64-v8a [INFO]: -> running basename https://github.com/li...(and 72 more) [INFO]: -> directory context /home/pa/.local/share/python-for-android/build/bootstrap_builds/sdl2/jni [INFO]: <- directory context /home/pa [INFO]: Unpacking sqlite3 for arm64-v8a [INFO]: -> running basename https://github.com/sq...(and 51 more) [INFO]: -> directory context /home/pa/.local/share/python-for-android/build/other_builds/sqlite3/arm64-v8a__ndk_target_21 [INFO]: <- directory context /home/pa [INFO]: Unpacking python3 for arm64-v8a [INFO]: -> running basename https://github.com/pyt...(and 44 more) [INFO]: -> directory context /home/pa/.local/share/python-for-android/build/other_builds/python3/arm64-v8a__ndk_target_21 [INFO]: <- directory context /home/pa [INFO]: Unpacking sdl2 for arm64-v8a [INFO]: -> running basename https://github.com/li...(and 66 more) [INFO]: -> directory context /home/pa/.local/share/python-for-android/build/bootstrap_builds/sdl2/jni [INFO]: <- directory context /home/pa [INFO]: Unpacking pyjnius for arm64-v8a [INFO]: -> running basename https://github.com/kiv...(and 27 more) [INFO]: -> directory context /home/pa/.local/share/python-for-android/build/other_builds/pyjnius-sdl2/arm64-v8a__ndk_target_21 [INFO]: <- directory context /home/pa [INFO]: Unpacking setuptools for arm64-v8a [INFO]: Skipping setuptools unpack as no URL is set [INFO]: -> running cp -a /home/pa/.local/lib/pyth...(and 163 more) [INFO]: Unpacking kivy for arm64-v8a [INFO]: -> running basename https://github.com/kiv...(and 24 more) [INFO]: -> directory context /home/pa/.local/share/python-for-android/build/other_builds/kivy-sdl2/arm64-v8a__ndk_target_21 [INFO]: <- directory context /home/pa [INFO]: # Prebuilding recipes [INFO]: python3 has no prebuild_arm64_v8a, skipping [INFO]: Prebuilding hostpython3 for arm64-v8a [INFO]: hostpython3 has no prebuild_arm64_v8a, skipping [INFO]: Applying patches for hostpython3[arm64-v8a] [INFO]: Applying patch fix_ensurepip.patch [INFO]: -> running patch -t -d /home/pa/.local/sh...(and 182 more) [INFO]: Prebuilding libffi for arm64-v8a [INFO]: libffi has no prebuild_arm64_v8a, skipping [INFO]: Applying patches for libffi[arm64-v8a] [INFO]: Applying patch remove-version-info.patch [INFO]: -> running patch -t -d /home/pa/.local/sh...(and 190 more) [INFO]: Prebuilding openssl for arm64-v8a [INFO]: openssl has no prebuild_arm64_v8a, skipping [INFO]: Prebuilding sdl2_image for arm64-v8a [INFO]: -> running git clone https://github.com/l...(and 149 more) [INFO]: -> running git clone https://github.com/l...(and 157 more) [INFO]: -> running git clone https://github.com/l...(and 157 more) [INFO]: -> running git clone https://github.com/l...(and 158 more) [INFO]: -> running git clone https://github.com/l...(and 150 more) [INFO]: -> running git clone https://github.com/l...(and 156 more) [INFO]: -> running git clone https://github.com/l...(and 158 more) [INFO]: -> running git clone https://github.com/l...(and 153 more) [INFO]: sdl2_image has no prebuild_arm64_v8a, skipping [INFO]: Applying patches for sdl2_image[arm64-v8a] [INFO]: Applying patch enable-webp.patch [INFO]: -> running patch -t -d /home/pa/.local/sh...(and 171 more) [INFO]: Prebuilding sdl2_mixer for arm64-v8a [INFO]: sdl2_mixer has no prebuild_arm64_v8a, skipping [INFO]: Prebuilding sdl2_ttf for arm64-v8a [INFO]: sdl2_ttf has no prebuild_arm64_v8a, skipping [INFO]: Prebuilding sqlite3 for arm64-v8a [INFO]: sqlite3 has no prebuild_arm64_v8a, skipping [INFO]: Prebuilding python3 for arm64-v8a [INFO]: python3 has no prebuild_arm64_v8a, skipping [INFO]: Applying patches for python3[arm64-v8a] [INFO]: Applying patch patches/cpython-311-ctypes-find-library.patch [INFO]: -> running patch -t -d /home/pa/.local/sh...(and 213 more) [INFO]: Applying patch patches/pyconfig_detection.patch [INFO]: -> running patch -t -d /home/pa/.local/sh...(and 200 more) [INFO]: Applying patch patches/py3.8.1_fix_cortex_a8.patch [INFO]: -> running patch -t -d /home/pa/.local/sh...(and 203 more) [INFO]: Applying patch patches/reproducible-buildinfo.diff [INFO]: -> running patch -t -d /home/pa/.local/sh...(and 203 more) [INFO]: Applying patch patches/3.14_armv7l_fix.patch [INFO]: -> running patch -t -d /home/pa/.local/sh...(and 197 more) [INFO]: Applying patch patches/3.14_fix_remote_debug.patch [INFO]: -> running patch -t -d /home/pa/.local/sh...(and 203 more) [INFO]: Prebuilding sdl2 for arm64-v8a [INFO]: sdl2 has no prebuild_arm64_v8a, skipping [INFO]: Prebuilding pyjnius for arm64-v8a [INFO]: pyjnius has no prebuild_arm64_v8a, skipping [INFO]: Applying patches for pyjnius[arm64-v8a] [INFO]: Applying patch use_cython.patch [INFO]: -> running patch -t -d /home/pa/.local/sh...(and 189 more) [INFO]: Prebuilding setuptools for arm64-v8a [INFO]: setuptools has no prebuild_arm64_v8a, skipping [INFO]: Prebuilding android for arm64-v8a [INFO]: android has no prebuild_arm64_v8a, skipping [INFO]: -> directory context /home/pa/.local/share/python-for-android/build/other_builds/android-sdl2/arm64-v8a__ndk_target_21/android [INFO]: <- directory context /home/pa [INFO]: Prebuilding kivy for arm64-v8a [INFO]: kivy has no prebuild_arm64_v8a, skipping [INFO]: Applying patches for kivy[arm64-v8a] [INFO]: -> directory context /home/pa/.local/share/python-for-android/build/other_builds/kivy-sdl2/arm64-v8a__ndk_target_21/kivy/kivy [INFO]: -> running python3 -c import _version; pri...(and 24 more) [INFO]: <- directory context /home/pa [INFO]: -> directory context /home/pa/.local/share/python-for-android/build/other_builds/kivy-sdl2/arm64-v8a__ndk_target_21/kivy/kivy [INFO]: -> running python3 -c import _version; pri...(and 24 more) [INFO]: <- directory context /home/pa [INFO]: Applying patch use_cython.patch [INFO]: -> running patch -t -d /home/pa/.local/sh...(and 180 more) [INFO]: Applying patch no-ast-str.patch [INFO]: -> running patch -t -d /home/pa/.local/sh...(and 180 more) [INFO]: # Building recipes [INFO]: Building hostpython3 for arm64-v8a [WARNING]: pkg-config location is not supported on linux for prerequisite: openssl [INFO]: -> directory context /home/pa/.local/share/python-for-android/build/other_builds/hostpython3/desktop/hostpython3/native-build [INFO]: -> running configure --prefix /home/pa/.l...(and 109 more) [INFO]: <- directory context /home/pa [INFO]: -> directory context /home/pa/.local/share/python-for-android/build/other_builds/hostpython3/desktop/hostpython3 [INFO]: -> running make -j 2 -C /home/pa/.local/s...(and 87 more) [INFO]: <- directory context /home/pa [INFO]: -> directory context /home/pa/.local/share/python-for-android/build/other_builds/hostpython3/desktop/hostpython3/native-build [INFO]: -> running make install [INFO]: <- directory context /home/pa [INFO]: -> directory context /home/pa/.local/share/python-for-android/build/other_builds/hostpython3/desktop/hostpython3 [INFO]: -> running cp /home/pa/.local/share/pytho...(and 215 more) [INFO]: <- directory context /home/pa [INFO]: -> running python -m ensurepip -U [INFO]: Building libffi for arm64-v8a [INFO]: -> directory context /home/pa/.local/share/python-for-android/build/other_builds/libffi/arm64-v8a__ndk_target_21/libffi [INFO]: -> running autogen.sh [INFO]: -> running autoreconf -vif [INFO]: -> running configure --host=aarch64-linux...(and 151 more) [INFO]: -> running make -j 2 libffi.la [INFO]: <- directory context /home/pa [INFO]: -> running cp /home/pa/.local/share/pytho...(and 182 more) [INFO]: Building openssl for arm64-v8a [INFO]: -> directory context /home/pa/.local/share/python-for-android/build/other_builds/openssl/arm64-v8a__ndk_target_21/openssl3 [INFO]: -> running perl Configure shared no-dso no...(and 48 more) [INFO]: -> running make -j 2 [INFO]: <- directory context /home/pa [INFO]: -> running cp /home/pa/.local/share/pytho...(and 294 more) [INFO]: Building sdl2_image for arm64-v8a [INFO]: Building sdl2_mixer for arm64-v8a [INFO]: Building sdl2_ttf for arm64-v8a [INFO]: Building sqlite3 for arm64-v8a [INFO]: -> directory context /home/pa/.local/share/python-for-android/build/other_builds/sqlite3/arm64-v8a__ndk_target_21/sqlite3 [INFO]: -> running configure --host=aarch64-linux...(and 132 more) [INFO]: -> running make -j 2 [INFO]: <- directory context /home/pa [INFO]: -> running cp /home/pa/.local/share/pytho...(and 182 more) [INFO]: Building python3 for arm64-v8a [INFO]: Activating flags for sqlite3 [INFO]: Activating flags for libffi [INFO]: Activating flags for openssl [INFO]: Activating flags for android's zlib [INFO]: -> directory context /home/pa/.local/share/python-for-android/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/android-build [INFO]: -> running configure --without-readline -...(and 706 more) [INFO]: -> running make all INSTSONAME=libpython3.14.so [INFO]: -> running make install [INFO]: <- directory context /home/pa [INFO]: -> running cp /home/pa/.local/share/pytho...(and 200 more) [INFO]: Building sdl2 for arm64-v8a [INFO]: -> directory context /home/pa/.local/share/python-for-android/build/bootstrap_builds/sdl2/jni [INFO]: -> running ndk-build V=1 NDK_DEBUG=1 [INFO]: <- directory context /home/pa [INFO]: Building pyjnius for arm64-v8a [INFO]: jnius apparently isn't already in site-packages [INFO]: -> running pip3 install pyjnius==1.7.0 --...(and 173 more) working: Exception in thread background thread for pid 60760: Traceback (most recent call last): File "/usr/lib/python3.14/threading.py", line 1082, in _bootstrap_inner self._context.run(self.run) ~~~~~~~~~~~~~~~~~^^^^^^^^^^ File "/usr/lib/python3.14/threading.py", line 1024, in run self._target(*self._args, **self._kwargs) ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/pa/.local/lib/python3.14/site-packages/sh.py", line 1642, in wrap fn(*rgs, **kwargs) ~~^^^^^^^^^^^^^^^^ File "/home/pa/.local/lib/python3.14/site-packages/sh.py", line 2647, in background_thread handle_exit_code(exit_code) ~~~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/pa/.local/lib/python3.14/site-packages/sh.py", line 2338, in fn return self.command.handle_command_exit_code(exit_code) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/pa/.local/lib/python3.14/site-packages/sh.py", line 823, in handle_command_exit_code raise exc sh.ErrorReturnCode_1: RAN: /home/pa/.local/share/python-for-android/build/other_builds/hostpython3/desktop/hostpython3/native-build/root/usr/local/bin/pip3 install pyjnius==1.7.0 --ignore-installed --disable-pip-version-check --python-version 3.14.2 --only-binary=:all: --no-deps --platform=android_21_arm64_v8a --platform=android_21_aarch64 --dry-run -q STDOUT: ERROR: Could not find a version that satisfies the requirement pyjnius==1.7.0 (from versions: none) ERROR: No matching distribution found for pyjnius==1.7.0 STDERR: [INFO]: -> running pip3 install build[virtualenv] ...(and 47 more) [INFO]: -> directory context /home/pa/.local/share/python-for-android/build/other_builds/pyjnius-sdl2/arm64-v8a__ndk_target_21/pyjnius [INFO]: -> running python -m build --wheel --conf...(and 143 more) [INFO]: <- directory context /home/pa [INFO]: Installing built wheel: pyjnius-1.7.0-cp314-cp314-android_21_arm64_v8a.whl [INFO]: Building setuptools for arm64-v8a [INFO]: setuptools apparently isn't already in site-packages [INFO]: -> running pip3 install setuptools --igno...(and 169 more) [INFO]: Prebuilt pip wheel found, skipping build_arch [INFO]: Installing prebuilt wheel [INFO]: -> running pip3 install setuptools --igno...(and 269 more) [INFO]: Building android for arm64-v8a [INFO]: android apparently isn't already in site-packages [INFO]: -> running pip3 install android --ignore-...(and 166 more) working: Exception in thread background thread for pid 60927: Traceback (most recent call last): File "/usr/lib/python3.14/threading.py", line 1082, in _bootstrap_inner self._context.run(self.run) ~~~~~~~~~~~~~~~~~^^^^^^^^^^ File "/usr/lib/python3.14/threading.py", line 1024, in run self._target(*self._args, **self._kwargs) ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/pa/.local/lib/python3.14/site-packages/sh.py", line 1642, in wrap fn(*rgs, **kwargs) ~~^^^^^^^^^^^^^^^^ File "/home/pa/.local/lib/python3.14/site-packages/sh.py", line 2647, in background_thread handle_exit_code(exit_code) ~~~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/pa/.local/lib/python3.14/site-packages/sh.py", line 2338, in fn return self.command.handle_command_exit_code(exit_code) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/pa/.local/lib/python3.14/site-packages/sh.py", line 823, in handle_command_exit_code raise exc sh.ErrorReturnCode_1: RAN: /home/pa/.local/share/python-for-android/build/other_builds/hostpython3/desktop/hostpython3/native-build/root/usr/local/bin/pip3 install android --ignore-installed --disable-pip-version-check --python-version 3.14.2 --only-binary=:all: --no-deps --platform=android_21_arm64_v8a --platform=android_21_aarch64 --dry-run -q STDOUT: ERROR: Could not find a version that satisfies the requirement android (from versions: none) ERROR: No matching distribution found for android STDERR: [INFO]: -> running pip3 install build[virtualenv]...(and 55 more) [INFO]: -> directory context /home/pa/.local/share/python-for-android/build/other_builds/android-sdl2/arm64-v8a__ndk_target_21/android [INFO]: -> running python -m build --wheel --conf...(and 143 more) working: ERROR Backend subprocess exited w...(and 49 more) Exception in thread background thread for pid 60973: Traceback (most recent call last): File "/usr/lib/python3.14/threading.py", line 1082, in _bootstrap_inner self._context.run(self.run) ~~~~~~~~~~~~~~~~~^^^^^^^^^^ File "/usr/lib/python3.14/threading.py", line 1024, in run self._target(*self._args, **self._kwargs) ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/pa/.local/lib/python3.14/site-packages/sh.py", line 1642, in wrap fn(*rgs, **kwargs) ~~^^^^^^^^^^^^^^^^ File "/home/pa/.local/lib/python3.14/site-packages/sh.py", line 2647, in background_thread handle_exit_code(exit_code) ~~~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/pa/.local/lib/python3.14/site-packages/sh.py", line 2338, in fn return self.command.handle_command_exit_code(exit_code) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/pa/.local/lib/python3.14/site-packages/sh.py", line 823, in handle_command_exit_code raise exc sh.ErrorReturnCode_1: RAN: /home/pa/.local/share/python-for-android/build/other_builds/hostpython3/desktop/hostpython3/native-build/root/usr/local/bin/python -m build --wheel --config-setting builddir=/home/pa/.local/share/python-for-android/build/other_builds/android-sdl2/arm64-v8a__ndk_target_21/android/p4a_android_build STDOUT: * Creating isolated environment: venv+pip... * Installing packages in isolated environment: - setuptools >= 40.8.0 * Getting build dependencies for wheel... Traceback (most recent call last): File "/home/pa/.local/lib/python3.14/site-packages/pyproject_hooks/_in_process/_in_process.py", line 389, in <module> main() ~~~~^^ File "/home/pa/.local/lib/python3.14/site-packages/pyproject_hooks/_in_process/_in_process.py", line 373, in main json_out["return_val"] = hook(**hook_input["kwargs"]) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/pa/.local/lib/python3.14/site-packages/pyproject_hooks/_in_process/_in_process.py", line 143, in get_requires_for_build_wheel return hook(config_settings) File "/tmp/build-env-h8a42uae/lib/python3.14/site-packages/setuptools/build_meta.py", line 333, in get_requires_for_build_wheel return self._get_build_requires(config_settings, requirements=[]) ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/build-env-h8a42uae/lib/python3.14/site-packages/setuptools/build_meta.py", line 301, in _get_build_requires self.run_setup() ~~~~~~~~~~~~~~^^ File "/tmp/build-env-h8a42uae/lib/python3.14/site-packages/setuptools/build_meta.py", line 520, in run_setup super().run_setup(setup_script=setup_script) ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/build-env-h8a42uae/lib/python3.14/site-packages/setuptools/build_meta.py", line 317, in run_setup exec(code, locals()) ~~~~^^^^^^^^^^^^^^^^ File "<string>", line 2, in <module> ModuleNotFoundError: No module named 'Cython' ERROR Backend subprocess exited when trying to invoke get_requires_for_build_wheel STDERR: Traceback (most recent call last): File "/home/pa/.local/bin/p4a", line 8, in <module> sys.exit(main()) ~~~~^^ File "/home/pa/.local/lib/python3.14/site-packages/pythonforandroid/entrypoints.py", line 18, in main ToolchainCL() ~~~~~~~~~~~^^ File "/home/pa/.local/lib/python3.14/site-packages/pythonforandroid/toolchain.py", line 721, in __init__ getattr(self, command)(args) ~~~~~~~~~~~~~~~~~~~~~~^^^^^^ File "/home/pa/.local/lib/python3.14/site-packages/pythonforandroid/toolchain.py", line 104, in wrapper_func build_dist_from_args(ctx, dist, args) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "/home/pa/.local/lib/python3.14/site-packages/pythonforandroid/toolchain.py", line 163, in build_dist_from_args build_recipes(build_order, python_modules, ctx, ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ getattr(args, "private", None), ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<2 lines>... ), ^^ ) ^ File "/home/pa/.local/lib/python3.14/site-packages/pythonforandroid/build.py", line 530, in build_recipes recipe.build_arch(arch) ~~~~~~~~~~~~~~~~~^^^^^^ File "/home/pa/.local/lib/python3.14/site-packages/pythonforandroid/recipe.py", line 1401, in build_arch shprint( ~~~~~~~^ sh.Command(self.real_hostpython_location), *build_args, _env=env ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/home/pa/.local/lib/python3.14/site-packages/pythonforandroid/logger.py", line 174, in shprint for line in output: ^^^^^^ File "/home/pa/.local/lib/python3.14/site-packages/sh.py", line 879, in __next__ self.wait() ~~~~~~~~~^^ File "/home/pa/.local/lib/python3.14/site-packages/sh.py", line 796, in wait self.handle_command_exit_code(exit_code) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ File "/home/pa/.local/lib/python3.14/site-packages/sh.py", line 823, in handle_command_exit_code raise exc sh.ErrorReturnCode_1: RAN: /home/pa/.local/share/python-for-android/build/other_builds/hostpython3/desktop/hostpython3/native-build/root/usr/local/bin/python -m build --wheel --config-setting builddir=/home/pa/.local/share/python-for-android/build/other_builds/android-sdl2/arm64-v8a__ndk_target_21/android/p4a_android_build STDOUT: * Creating isolated environment: venv+pip... * Installing packages in isolated environment: - setuptools >= 40.8.0 * Getting build dependencies for wheel... Traceback (most recent call last): File "/home/pa/.local/lib/python3.14/site-packages/pyproject_hooks/_in_process/_in_process.py", line 389, in <module> main() ~~~~^^ File "/home/pa/.local/lib/python3.14/site-packages/pyproject_hooks/_in_process/_in_process.py", line 373, in main json_out["return_val"] = hook(**hook_input["kwargs"]) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/pa/.local/lib/python3.14/site-packages/pyproject_hooks/_in_process/_in_process.py", line 143, in get_requires_for_build_wheel return hook(config_settings) File "/tmp/build-env-h8a42uae/lib/python3.14/site-packages/setuptools/build_meta.py", line 333, in get_requires_for_build_wheel return self._get_build_requires(config_settings, requirements=[]) ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/build-env-h8a42uae/lib/python3.14/site-packages/setuptools/build_meta.py", line 301, in _get_build_requires self.run_setup() ~~~~~~~~~~~~~~^^ File "/tmp/build-env-h8a42uae/lib/python3.14/site-packages/setuptools/build_meta.py", line 520, in run_setup super().run_setup(setup_script=setup_script) ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/build-env-h8a42uae/lib/python3.14/site-packages/setuptools/build_meta.py", line 317, in run_setup exec(code, locals()) ~~~~^^^^^^^^^^^^^^^^ File "<string>", line 2, in <module> ModuleNotFoundError: No module named 'Cython' ERROR Backend subprocess exited when trying to invoke get_requires_for_build_wheel
have you got infos about this build log?
👋 @pakheper,
Sorry to hear you are having difficulties with Kivy's python-for-android; 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 python-for-android.
However, this issue appears to be a support request. Please use our support channels to get help with the project.
If you're having trouble installing python-for-android, please see our quickstart guide.
If you're having trouble using python-for-android, please see our troubleshooting guide and FAQ.
Let us know if this comment was made in error, and we'll be happy to reopen the issue.
Hello
i tried to install p4a last version 2026 in a VMware ubuntu 22.04 and 26.04
NDK tried ndk 28c as recommanded and later 29 and 25c
SDK : latest
i use python-for-android not buildozer, i installed all previous p4a versions like that
compile apk p4a 2026 crashed in all cases with major errors
error messages : no version pyjnius 1.7.0 found , no module android found, no module cython
That'all so far.