Closed averagenetworkscienceenjoyer closed 1 year ago
Did you follow the install guide? https://buildozer.readthedocs.io/en/stable/installation.html
If yes, can you please attach the full log?
I've looked at the link you provided and I think I haven't activated the buildozer virtualenv. I looked in my ~/.buildozer folder and there is no venv folder, so I created one in the buildozer/android subdirectory and activated it and then ran the command from within that but I ended up getting the same error. The full log for this latest attempt is below. bdenv is what I called the buildozer vitual environment
(bdvenv) averagenetworkscienceenjoyer@LAPTOP-FMGMUHFC:~/pythonproject1$ buildozer android debug
https://github.com/kivy/python-for-android.git
[WARNING]: prerequisites.py is experimental and does not support all prerequisites yet. [WARNING]: Please report any issues to the python-for-android issue tracker. [WARNING]: prerequisites.py is experimental and does not support all prerequisites yet. [WARNING]: Please report any issues to the python-for-android issue tracker. usage: toolchain.py aab [-h] [--debug] [--color {always,never,auto}] [--sdk-dir SDK_DIR] [--ndk-dir NDK_DIR] [--android-api ANDROID_API] [--ndk-version NDK_VERSION] [--ndk-api NDK_API] [--symlink-bootstrap-files] [--storage-dir STORAGE_DIR] [--arch ARCH] [--dist-name DIST_NAME] [--requirements REQUIREMENTS] [--recipe-blacklist RECIPE_BLACKLIST] [--blacklist-requirements BLACKLIST_REQUIREMENTS] [--bootstrap BOOTSTRAP] [--hook HOOK] [--force-build] [--no-force-build] [--require-perfect-match] [--no-require-perfect-match] [--allow-replace-dist] [--no-allow-replace-dist] [--local-recipes LOCAL_RECIPES] [--activity-class-name ACTIVITY_CLASS_NAME] [--service-class-name SERVICE_CLASS_NAME] [--java-build-tool {auto,ant,gradle}] [--copy-libs] [--no-copy-libs] [--add-asset ASSETS] [--add-resource RESOURCES] [--private PRIVATE] [--use-setup-py] [--ignore-setup-py] [--release] [--with-debug-symbols] [--keystore KEYSTORE] [--signkey SIGNKEY] [--keystorepw KEYSTOREPW] [--signkeypw SIGNKEYPW]
options:
-h, --help show this help message and exit
--debug Display debug output and all build info
--color {always,never,auto}
Enable or disable color output (default enabled on
tty)
--sdk-dir SDK_DIR, --sdk_dir SDK_DIR
The filepath where the Android SDK is installed
--ndk-dir NDK_DIR, --ndk_dir NDK_DIR
The filepath where the Android NDK is installed
--android-api ANDROID_API, --android_api ANDROID_API
The Android API level to build against defaults to 33
if not specified.
--ndk-version NDK_VERSION, --ndk_version NDK_VERSION
DEPRECATED: the NDK version is now found automatically
or not at all.
--ndk-api NDK_API The Android API level to compile against. This should
be your minimal supported API, not normally the same
as your --android-api. Defaults to min(ANDROID_API,
21) if not specified.
--symlink-bootstrap-files, --ssymlink_bootstrap_files
If True, symlinks the bootstrap files creation. This
is useful for development only, it could also cause
weird problems.
--storage-dir STORAGE_DIR
Primary storage directory for downloads and builds
(default: /home/averagenetworkscienceenjoyer/.local/sh
are/python-for-android)
--arch ARCH The archs to build for.
--dist-name DIST_NAME, --dist_name DIST_NAME
The name of the distribution to use or create
--requirements REQUIREMENTS
Dependencies of your app, should be recipe names or
Python modules. NOT NECESSARY if you are using Python
3 with --use-setup-py
--recipe-blacklist RECIPE_BLACKLIST
Blacklist an internal recipe from use. Allows
disabling Python 3 core modules to save size
--blacklist-requirements BLACKLIST_REQUIREMENTS
Blacklist an internal recipe from use. Allows
disabling Python 3 core modules to save size
--bootstrap BOOTSTRAP
The bootstrap to build with. Leave unset to choose
automatically.
--hook HOOK Filename to a module that contains python-for-android
hooks
--local-recipes LOCAL_RECIPES, --local_recipes LOCAL_RECIPES
Directory to look for local recipes
--activity-class-name ACTIVITY_CLASS_NAME
The full java class name of the main activity
--service-class-name SERVICE_CLASS_NAME
Full java package name of the PythonService class
--java-build-tool {auto,ant,gradle}
The java build tool to use when packaging the APK,
defaults to automatically selecting an appropriate
tool.
--add-asset ASSETS Put this in the assets folder in the apk.
--add-resource RESOURCES
Put this in the res folder in the apk.
--private PRIVATE the directory with the app source code files
(containing your main.py entrypoint)
--use-setup-py Process the setup.py of a project if present.
(Experimental!
--ignore-setup-py Don't run the setup.py of a project if present. This
may be required if the setup.py is not designed to
work inside p4a (e.g. by installing dependencies that
won't work or aren't desired on Android
--release Build your app as a non-debug release build. (Disables
gdb debugging among other things)
--with-debug-symbols Will keep debug symbols from .so
files.
--keystore KEYSTORE Keystore for JAR signing key, will use jarsigner
default if not specified (release build only)
--signkey SIGNKEY Key alias to sign PARSER_APK. with (release build
only)
--keystorepw KEYSTOREPW
Password for keystore
--signkeypw SIGNKEYPW
Password for key alias
Whether to force compilation of a new distribution
--force-build --no-force-build (this is the default) --require-perfect-match --no-require-perfect-match (this is the default) --allow-replace-dist (this is the default) --no-allow-replace-dist --copy-libs --no-copy-libs (this is the default)
[WARNING]: prerequisites.py is experimental and does not support all prerequisites yet. [WARNING]: Please report any issues to the python-for-android issue tracker. [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, armeabi-v7a [INFO]: Found Android API target in $ANDROIDAPI: 34 [INFO]: Available Android APIs are (34) [INFO]: Requested API target 34 is available, continuing. [INFO]: Found NDK dir in $ANDROIDNDK: /home/averagenetworkscienceenjoyer/.buildozer/android/platform/android-ndk-r25b[INFO]: Found NDK version 25b [INFO]: Getting NDK API version (i.e. minimum supported API) from user argument [INFO]: ccache is missing, the build will not be optimized in the future. /home/averagenetworkscienceenjoyer/.buildozer/android/bdvenv/bin/python3: No module named cython [WARNING]: Cython for python3 missing. If you are building for a python 3 target (which is the default) then THINGS WILL BREAK. DEBUG: All possible dists: : Dist matching name and arch: : Dist matching ndk_api and recipe: [] [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: ['cython3', 'hostpython3', 'libffi', 'openssl', 'sdl2_image', 'sdl2_mixer', 'sdl2_ttf', 'sqlite3', 'python3', 'sdl2', 'setuptools', 'six', 'pyjnius', 'android', 'kivy'] [INFO]: The selected bootstrap is sdl2 [INFO]: # Creating dist with sdl2 bootstrap [INFO]: Dist will have name "brocr" and requirements (python3, kivy, cython3) [INFO]: Dist contains the following requirements as recipes: ['hostpython3', 'libffi', 'openssl', 'sdl2_image', 'sdl2_mixer', 'sdl2_ttf', 'sqlite3', 'python3', 'sdl2', 'setuptools', 'six', 'pyjnius', 'android', 'kivy'] [INFO]: Dist will also contain modules (idna, certifi, urllib3, cython3, requests, chardet) installed from pip [INFO]: Dist will be build in mode debug [INFO]: -> directory context /home/averagenetworkscienceenjoyer/pythonproject1/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/bootstrap_builds/sdl2 [INFO]: <- directory context /home/averagenetworkscienceenjoyer/pythonproject1/.buildozer/android/platform/python-for-android [INFO]: Recipe build order is ['hostpython3', 'libffi', 'openssl', 'sdl2_image', 'sdl2_mixer', 'sdl2_ttf', 'sqlite3', 'python3', 'sdl2', 'setuptools', 'six', 'pyjnius', 'android', 'kivy'] [INFO]: The requirements (certifi, chardet, cython3, idna, requests, urllib3) were not found as recipes, they will be installed with pip. [INFO]: # Downloading recipes [INFO]: Downloading hostpython3 DEBUG: -> running mkdir -p /home/averagenetworkscienceenjoyer/pythonproject1/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/packages/hostpython3 [INFO]: -> directory context /home/averagenetworkscienceenjoyer/pythonproject1/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/packages/hostpython3 DEBUG: -> running basename https://www.python.org/ftp/python/3.10.10/Python-3.10.10.tgz
[INFO]: hostpython3 download already cached, skipping [INFO]: <- directory context /home/averagenetworkscienceenjoyer/pythonproject1/.buildozer/android/platform/python-for-android [INFO]: Downloading libffi DEBUG: -> running mkdir -p /home/averagenetworkscienceenjoyer/pythonproject1/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/packages/libffi [INFO]: -> directory context /home/averagenetworkscienceenjoyer/pythonproject1/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/packages/libffi DEBUG: -> running basename https://github.com/libffi/libffi/archive/v3.4.2.tar.gz
[INFO]: libffi download already cached, skipping [INFO]: <- directory context /home/averagenetworkscienceenjoyer/pythonproject1/.buildozer/android/platform/python-for-android [INFO]: Downloading openssl DEBUG: -> running mkdir -p /home/averagenetworkscienceenjoyer/pythonproject1/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/packages/openssl [INFO]: -> directory context /home/averagenetworkscienceenjoyer/pythonproject1/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/packages/openssl DEBUG: -> running basename https://www.openssl.org/source/openssl-1.1.1m.tar.gz
[INFO]: openssl download already cached, skipping [INFO]: <- directory context /home/averagenetworkscienceenjoyer/pythonproject1/.buildozer/android/platform/python-for-android [INFO]: Downloading sdl2_image DEBUG: -> running mkdir -p /home/averagenetworkscienceenjoyer/pythonproject1/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/packages/sdl2_image [INFO]: -> directory context /home/averagenetworkscienceenjoyer/pythonproject1/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/packages/sdl2_image DEBUG: -> running basename https://github.com/libsdl-org/SDL_image/releases/download/release-2.6.2/SDL2_image-2.6.2.tar.gz
[INFO]: sdl2_image download already cached, skipping [INFO]: <- directory context /home/averagenetworkscienceenjoyer/pythonproject1/.buildozer/android/platform/python-for-android [INFO]: Downloading sdl2_mixer DEBUG: -> running mkdir -p /home/averagenetworkscienceenjoyer/pythonproject1/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/packages/sdl2_mixer [INFO]: -> directory context /home/averagenetworkscienceenjoyer/pythonproject1/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/packages/sdl2_mixer DEBUG: -> running basename https://github.com/libsdl-org/SDL_mixer/releases/download/release-2.6.2/SDL2_mixer-2.6.2.tar.gz
[INFO]: sdl2_mixer download already cached, skipping [INFO]: <- directory context /home/averagenetworkscienceenjoyer/pythonproject1/.buildozer/android/platform/python-for-android [INFO]: Downloading sdl2_ttf DEBUG: -> running mkdir -p /home/averagenetworkscienceenjoyer/pythonproject1/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/packages/sdl2_ttf [INFO]: -> directory context /home/averagenetworkscienceenjoyer/pythonproject1/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/packages/sdl2_ttf DEBUG: -> running basename https://github.com/libsdl-org/SDL_ttf/releases/download/release-2.20.1/SDL2_ttf-2.20.1.tar.gz
[INFO]: sdl2_ttf download already cached, skipping [INFO]: <- directory context /home/averagenetworkscienceenjoyer/pythonproject1/.buildozer/android/platform/python-for-android [INFO]: Downloading sqlite3 DEBUG: -> running mkdir -p /home/averagenetworkscienceenjoyer/pythonproject1/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/packages/sqlite3 [INFO]: -> directory context /home/averagenetworkscienceenjoyer/pythonproject1/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/packages/sqlite3 DEBUG: -> running basename https://www.sqlite.org/2021/sqlite-amalgamation-3350500.zip
[INFO]: sqlite3 download already cached, skipping [INFO]: <- directory context /home/averagenetworkscienceenjoyer/pythonproject1/.buildozer/android/platform/python-for-android [INFO]: Downloading python3 DEBUG: -> running mkdir -p /home/averagenetworkscienceenjoyer/pythonproject1/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/packages/python3 [INFO]: -> directory context /home/averagenetworkscienceenjoyer/pythonproject1/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/packages/python3 DEBUG: -> running basename https://www.python.org/ftp/python/3.10.10/Python-3.10.10.tgz
[INFO]: python3 download already cached, skipping [INFO]: <- directory context /home/averagenetworkscienceenjoyer/pythonproject1/.buildozer/android/platform/python-for-android [INFO]: Downloading sdl2 DEBUG: -> running mkdir -p /home/averagenetworkscienceenjoyer/pythonproject1/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/packages/sdl2 [INFO]: -> directory context /home/averagenetworkscienceenjoyer/pythonproject1/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/packages/sdl2 DEBUG: -> running basename https://github.com/libsdl-org/SDL/releases/download/release-2.26.1/SDL2-2.26.1.tar.gz
[INFO]: sdl2 download already cached, skipping [INFO]: <- directory context /home/averagenetworkscienceenjoyer/pythonproject1/.buildozer/android/platform/python-for-android [INFO]: Downloading setuptools DEBUG: -> running mkdir -p /home/averagenetworkscienceenjoyer/pythonproject1/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/packages/setuptools [INFO]: -> directory context /home/averagenetworkscienceenjoyer/pythonproject1/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/packages/setuptools DEBUG: -> running basename https://pypi.python.org/packages/source/s/setuptools/setuptools-51.3.3.tar.gz
[INFO]: setuptools download already cached, skipping [INFO]: <- directory context /home/averagenetworkscienceenjoyer/pythonproject1/.buildozer/android/platform/python-for-android [INFO]: Downloading six DEBUG: -> running mkdir -p /home/averagenetworkscienceenjoyer/pythonproject1/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/packages/six [INFO]: -> directory context /home/averagenetworkscienceenjoyer/pythonproject1/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/packages/six DEBUG: -> running basename https://pypi.python.org/packages/source/s/six/six-1.15.0.tar.gz
[INFO]: six download already cached, skipping [INFO]: <- directory context /home/averagenetworkscienceenjoyer/pythonproject1/.buildozer/android/platform/python-for-android [INFO]: Downloading pyjnius DEBUG: -> running mkdir -p /home/averagenetworkscienceenjoyer/pythonproject1/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/packages/pyjnius [INFO]: -> directory context /home/averagenetworkscienceenjoyer/pythonproject1/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/packages/pyjnius DEBUG: -> running basename https://github.com/kivy/pyjnius/archive/1.5.0.zip
[INFO]: pyjnius download already cached, skipping [INFO]: <- directory context /home/averagenetworkscienceenjoyer/pythonproject1/.buildozer/android/platform/python-for-android [INFO]: Downloading android [INFO]: Skipping android download as no URL is set [INFO]: Downloading kivy DEBUG: -> running mkdir -p /home/averagenetworkscienceenjoyer/pythonproject1/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/packages/kivy [INFO]: -> directory context /home/averagenetworkscienceenjoyer/pythonproject1/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/packages/kivy DEBUG: -> running basename https://github.com/kivy/kivy/archive/2.2.0.zip
[INFO]: kivy download already cached, skipping [INFO]: <- directory context /home/averagenetworkscienceenjoyer/pythonproject1/.buildozer/android/platform/python-for-android [INFO]: # Building all recipes for arch arm64-v8a [INFO]: # Unpacking recipes [INFO]: Unpacking hostpython3 for arm64-v8a DEBUG: -> running basename https://www.python.org/ftp/python/3.10.10/Python-3.10.10.tgz
[INFO]: -> directory context /home/averagenetworkscienceenjoyer/pythonproject1/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop [INFO]: hostpython3 is already unpacked, skipping [INFO]: <- directory context /home/averagenetworkscienceenjoyer/pythonproject1/.buildozer/android/platform/python-for-android [INFO]: Unpacking libffi for arm64-v8a DEBUG: -> running basename https://github.com/libffi/libffi/archive/v3.4.2.tar.gz
[INFO]: -> directory context /home/averagenetworkscienceenjoyer/pythonproject1/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/libffi/arm64-v8a__ndk_target_21 [INFO]: libffi is already unpacked, skipping [INFO]: <- directory context /home/averagenetworkscienceenjoyer/pythonproject1/.buildozer/android/platform/python-for-android [INFO]: Unpacking openssl for arm64-v8a DEBUG: -> running basename https://www.openssl.org/source/openssl-1.1.1m.tar.gz
[INFO]: -> directory context /home/averagenetworkscienceenjoyer/pythonproject1/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/openssl/arm64-v8a__ndk_target_21 [INFO]: openssl is already unpacked, skipping [INFO]: <- directory context /home/averagenetworkscienceenjoyer/pythonproject1/.buildozer/android/platform/python-for-android [INFO]: Unpacking sdl2_image for arm64-v8a DEBUG: -> running basename https://github.com/libsdl-org/SDL_image/releases/download/release-2.6.2/SDL2_image-2.6.2.tar.gz
[INFO]: -> directory context /home/averagenetworkscienceenjoyer/pythonproject1/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/bootstrap_builds/sdl2/jni [INFO]: sdl2_image is already unpacked, skipping [INFO]: <- directory context /home/averagenetworkscienceenjoyer/pythonproject1/.buildozer/android/platform/python-for-android [INFO]: Unpacking sdl2_mixer for arm64-v8a DEBUG: -> running basename https://github.com/libsdl-org/SDL_mixer/releases/download/release-2.6.2/SDL2_mixer-2.6.2.tar.gz
[INFO]: -> directory context /home/averagenetworkscienceenjoyer/pythonproject1/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/bootstrap_builds/sdl2/jni [INFO]: sdl2_mixer is already unpacked, skipping [INFO]: <- directory context /home/averagenetworkscienceenjoyer/pythonproject1/.buildozer/android/platform/python-for-android [INFO]: Unpacking sdl2_ttf for arm64-v8a DEBUG: -> running basename https://github.com/libsdl-org/SDL_ttf/releases/download/release-2.20.1/SDL2_ttf-2.20.1.tar.gz
[INFO]: -> directory context /home/averagenetworkscienceenjoyer/pythonproject1/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/bootstrap_builds/sdl2/jni [INFO]: sdl2_ttf is already unpacked, skipping [INFO]: <- directory context /home/averagenetworkscienceenjoyer/pythonproject1/.buildozer/android/platform/python-for-android [INFO]: Unpacking sqlite3 for arm64-v8a DEBUG: -> running basename https://www.sqlite.org/2021/sqlite-amalgamation-3350500.zip
[INFO]: -> directory context /home/averagenetworkscienceenjoyer/pythonproject1/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/sqlite3/arm64-v8a__ndk_target_21 [INFO]: sqlite3 is already unpacked, skipping [INFO]: <- directory context /home/averagenetworkscienceenjoyer/pythonproject1/.buildozer/android/platform/python-for-android [INFO]: Unpacking python3 for arm64-v8a DEBUG: -> running basename https://www.python.org/ftp/python/3.10.10/Python-3.10.10.tgz
[INFO]: -> directory context /home/averagenetworkscienceenjoyer/pythonproject1/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/arm64-v8a__ndk_target_21 [INFO]: python3 is already unpacked, skipping [INFO]: <- directory context /home/averagenetworkscienceenjoyer/pythonproject1/.buildozer/android/platform/python-for-android [INFO]: Unpacking sdl2 for arm64-v8a DEBUG: -> running basename https://github.com/libsdl-org/SDL/releases/download/release-2.26.1/SDL2-2.26.1.tar.gz
[INFO]: -> directory context /home/averagenetworkscienceenjoyer/pythonproject1/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/bootstrap_builds/sdl2/jni [INFO]: sdl2 is already unpacked, skipping [INFO]: <- directory context /home/averagenetworkscienceenjoyer/pythonproject1/.buildozer/android/platform/python-for-android [INFO]: Unpacking setuptools for arm64-v8a DEBUG: -> running basename https://pypi.python.org/packages/source/s/setuptools/setuptools-51.3.3.tar.gz
[INFO]: -> directory context /home/averagenetworkscienceenjoyer/pythonproject1/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/setuptools/arm64-v8a__ndk_target_21 [INFO]: setuptools is already unpacked, skipping [INFO]: <- directory context /home/averagenetworkscienceenjoyer/pythonproject1/.buildozer/android/platform/python-for-android [INFO]: Unpacking six for arm64-v8a DEBUG: -> running basename https://pypi.python.org/packages/source/s/six/six-1.15.0.tar.gz
[INFO]: -> directory context /home/averagenetworkscienceenjoyer/pythonproject1/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/six/arm64-v8a__ndk_target_21 [INFO]: six is already unpacked, skipping [INFO]: <- directory context /home/averagenetworkscienceenjoyer/pythonproject1/.buildozer/android/platform/python-for-android [INFO]: Unpacking pyjnius for arm64-v8a DEBUG: -> running basename https://github.com/kivy/pyjnius/archive/1.5.0.zip
[INFO]: -> directory context /home/averagenetworkscienceenjoyer/pythonproject1/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/pyjnius-sdl2/arm64-v8andk_target_21 [INFO]: pyjnius is already unpacked, skipping [INFO]: <- directory context /home/averagenetworkscienceenjoyer/pythonproject1/.buildozer/android/platform/python-for-android DEBUG: -> running rm -rf /home/averagenetworkscienceenjoyer/pythonproject1/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/android-sdl2/arm64-v8andk_target_21/android DEBUG: -> running cp -a /home/averagenetworkscienceenjoyer/pythonproject1/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/android/src /home/averagenetworkscienceenjoyer/pythonproject1/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/android-sdl2/arm64-v8a__ndk_target_21/android [INFO]: Unpacking kivy for arm64-v8a DEBUG: -> running basename https://github.com/kivy/kivy/archive/2.2.0.zip
[INFO]: -> directory context /home/averagenetworkscienceenjoyer/pythonproject1/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/kivy/arm64-v8andk_target_21
[INFO]: kivy is already unpacked, skipping
[INFO]: <- directory context /home/averagenetworkscienceenjoyer/pythonproject1/.buildozer/android/platform/python-for-android
[INFO]: # Prebuilding recipes
[INFO]: Prebuilding hostpython3 for arm64-v8a
[INFO]: hostpython3 has no prebuild_arm64_v8a, skipping
[INFO]: Applying patches for hostpython3[arm64-v8a]
[INFO]: hostpython3 already patched, skipping
[INFO]: Prebuilding libffi for arm64-v8a
[INFO]: libffi has no prebuild_arm64_v8a, skipping
[INFO]: Applying patches for libffi[arm64-v8a]
[INFO]: libffi already patched, skipping
[INFO]: Prebuilding openssl for arm64-v8a
[INFO]: openssl has no prebuild_arm64_v8a, skipping
[INFO]: Prebuilding sdl2_image for arm64-v8a
[INFO]: sdl2_image has no prebuild_arm64_v8a, skipping
[INFO]: Applying patches for sdl2_image[arm64-v8a]
[INFO]: sdl2_image already patched, skipping
[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]: python3 already patched, skipping
[INFO]: Prebuilding sdl2 for arm64-v8a
[INFO]: sdl2 has no prebuild_arm64_v8a, skipping
[INFO]: Applying patches for sdl2[arm64-v8a]
[INFO]: sdl2 already patched, skipping
[INFO]: Prebuilding setuptools for arm64-v8a
[INFO]: setuptools has no prebuild_arm64_v8a, skipping
[INFO]: Prebuilding six for arm64-v8a
[INFO]: six 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]: pyjnius already patched, skipping
[INFO]: Prebuilding android for arm64-v8a
[INFO]: android has no prebuild_arm64_v8a, skipping
[INFO]: -> directory context /home/averagenetworkscienceenjoyer/pythonproject1/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/android-sdl2/arm64-v8andk_target_21/android
[INFO]: <- directory context /home/averagenetworkscienceenjoyer/pythonproject1/.buildozer/android/platform/python-for-android
[INFO]: Prebuilding kivy for arm64-v8a
[INFO]: kivy has no prebuild_arm64_v8a, skipping
[INFO]: Applying patches for kivy[arm64-v8a]
[INFO]: kivy already patched, skipping
[INFO]: # Building recipes
[INFO]: Building hostpython3 for arm64-v8a
[INFO]: hostpython3 said it is already built, skipping
[INFO]: Building libffi for arm64-v8a
[INFO]: libffi said it is already built, skipping
DEBUG: -> running cp /home/averagenetworkscienceenjoyer/pythonproject1/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/libffi/arm64-v8andk_target_21/libffi/.libs/libffi.so /home/averagenetworkscienceenjoyer/pythonproject1/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/libs_collections/"brocr"/arm64-v8a
[INFO]: Building openssl for arm64-v8a
[INFO]: openssl said it is already built, skipping
DEBUG: -> running cp /home/averagenetworkscienceenjoyer/pythonproject1/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/openssl/arm64-v8andk_target_21/openssl1.1/libssl1.1.so /home/averagenetworkscienceenjoyer/pythonproject1/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/openssl/arm64-v8andk_target_21/openssl1.1/libcrypto1.1.so /home/averagenetworkscienceenjoyer/pythonproject1/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/libs_collections/"brocr"/arm64-v8a
[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]: sqlite3 said it is already built, skipping
[INFO]: Building python3 for arm64-v8a
[INFO]: python3 said it is already built, skipping
[INFO]: Building sdl2 for arm64-v8a
[INFO]: sdl2 said it is already built, skipping
[INFO]: Building setuptools for arm64-v8a
[INFO]: setuptools apparently isn't already in site-packages
[INFO]: Installing setuptools into site-packages
[INFO]: -> directory context /home/averagenetworkscienceenjoyer/pythonproject1/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/setuptools/arm64-v8a__ndk_target_21/setuptools
DEBUG: -> running python3 setup.py install -O2 --root=/home/averagenetworkscienceenjoyer/pythonproject1/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/python-installs/"brocr"/arm64-v8a --install-lib=.
DEBUG: Traceback (most recent call last):
DEBUG: File "/home/averagenetworkscienceenjoyer/pythonproject1/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/setuptools/arm64-v8andk_target_21/setuptools/setup.py", line 7, in
RAN: /home/averagenetworkscienceenjoyer/pythonproject1/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/native-build/python3 setup.py install -O2 '--root=/home/averagenetworkscienceenjoyer/pythonproject1/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/python-installs/"brocr"/arm64-v8a' --install-lib=.
STDOUT:
Traceback (most recent call last):
File "/home/averagenetworkscienceenjoyer/pythonproject1/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/setuptools/arm64-v8andk_target_21/setuptools/setup.py", line 7, in
STDERR:
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/averagenetworkscienceenjoyer/pythonproject1/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 1312, in
RAN: /home/averagenetworkscienceenjoyer/pythonproject1/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/native-build/python3 setup.py install -O2 '--root=/home/averagenetworkscienceenjoyer/pythonproject1/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/python-installs/"brocr"/arm64-v8a' --install-lib=.
STDOUT:
Traceback (most recent call last):
File "/home/averagenetworkscienceenjoyer/pythonproject1/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/setuptools/arm64-v8andk_target_21/setuptools/setup.py", line 7, in
STDERR:
'\w\a\]${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ')
'Files/Common Files/Oracle/Java/javapath:/mnt/c/Program Files (x86)/Common ' 'Files/Oracle/Java/javapath:/mnt/c/Program ' 'Files/Microsoft/jdk-11.0.16.101-hotspot/bin:/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/dotnet/:/mnt/c/Users/User/Documents/gpgstuff/GnuPG/bin:/mnt/c/Program ' 'Files/MATLAB/R2022b/runtime/win64:/mnt/c/Program ' 'Files/MATLAB/R2022b/bin:/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/Git/cmd:/mnt/c/Program Files/Microsoft SQL ' 'Server/150/Tools/Binn/:/mnt/c/Program Files/Microsoft SQL Server/Client ' 'SDK/ODBC/170/Tools/Binn/:/mnt/c/Users/User/AppData/Local/Android/Sdk/cmdline-tools/latest/bin:/mnt/c/Users/User/AppData/Local/Programs/Python/Python310/Scripts/:/mnt/c/Users/User/AppData/Local/Programs/Python/Python310/:/mnt/c/Users/User/AppData/Local/Microsoft/WindowsApps:/mnt/c/Users/User/.dotnet/tools:/mnt/c/Users/User/AppData/Roaming/Python/Python310/Scripts:/mnt/c/Users/User/AppData/Local/Programs/Microsoft ' 'VS ' 'Code/bin:/mnt/c/Users/User/Downloads/sqlite-dll-win64-x64-3430000:/snap/bin:/home/averagenetworkscienceenjoyer/.local/bin:/usr/lib/android-sdk/tools:/usr/lib/android-sdk/platform-tools')
#
update: In my ~/.buildozer file the android-ndk-r25b-linux.zip is still zipped. I dont know if this could be causing the issue but it might be helpful
ModuleNotFoundError: No module named '_ctypes'
You are correct that this is due to a missing libffi-dev, this can be installed as described in the install instructions.
I suspect the issue is related to pyenv, but I'm not a pyenv user so I can't guide you.
android-ndk-r25b-linux.zip is still zipped.
I expect this is a symptom (an incomplete Android tools install) of the crash, not the cause.
I tried including libffi-dev in the buildozer.spec file, but for some reason I still keep getting the same error. Is it something to do with the buildozer virtual environment? Im out of ideas
No, libffi-dev is a system dependency. It has nothing to do with Python requirements. Install it on your system and try again.
EDIT: As was suggested earlier, I highly recommend you read the install instructions.
update: I tried copying the directory again from windows, while following the steps in the documentation, and trying the build again. This time I get the following error:
STDERR:
[INFO]: kivy first build failed (as expected) [INFO]: Running cython where appropriate [INFO]: Cythonize kivy/_clock.pyx DEBUG: -> running python3 -cimport sys; from Cython.Compiler.Main import setuptools_main; sys.exit(setuptools_main()); ./kivy/_clock.pyx DEBUG: /home/averagenetworkscienceenjoyer/.buildozer/android/bdvenv/lib/python3.10/site-packages/Cython/Compiler/Main.py:384: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /home/averagenetworkscienceenjoyer/pythonprojectretry/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/kivy/arm64-v8andk_target_21/kivy/kivy/_clock.pxd DEBUG: tree = Parsing.p_module(s, pxd, full_module_name) [INFO]: Cythonize kivy/weakproxy.pyx DEBUG: -> running python3 -cimport sys; from Cython.Compiler.Main import setuptools_main; sys.exit(setuptools_main()); ./kivy/weakproxy.pyx DEBUG: /home/averagenetworkscienceenjoyer/.buildozer/android/bdvenv/lib/python3.10/site-packages/Cython/Compiler/Main.py:384: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /home/averagenetworkscienceenjoyer/pythonprojectretry/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/kivy/arm64-v8andk_target_21/kivy/kivy/weakproxy.pyx DEBUG: tree = Parsing.p_module(s, pxd, full_module_name) DEBUG: warning: kivy/include/config.pxi:2:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310 DEBUG: warning: kivy/include/config.pxi:3:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310 DEBUG: warning: kivy/include/config.pxi:4:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310 DEBUG: warning: kivy/include/config.pxi:5:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310 DEBUG: warning: kivy/include/config.pxi:6:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310 DEBUG: warning: kivy/include/config.pxi:7:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310 DEBUG: warning: kivy/include/config.pxi:8:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310 DEBUG: warning: kivy/include/config.pxi:9:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310 DEBUG: warning: kivy/include/config.pxi:10:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310 DEBUG: warning: kivy/include/config.pxi:11:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310 DEBUG: warning: kivy/include/config.pxi:12:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310 DEBUG: warning: kivy/include/config.pxi:13:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310 DEBUG: warning: kivy/include/config.pxi:14:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310 DEBUG: warning: kivy/include/config.pxi:15:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310 DEBUG: warning: kivy/include/config.pxi:16:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310 DEBUG: warning: kivy/include/config.pxi:17:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310 DEBUG: warning: kivy/include/config.pxi:18:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310 DEBUG: warning: kivy/include/config.pxi:19:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310 DEBUG: warning: kivy/include/config.pxi:20:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310 [INFO]: Cythonize kivy/_metrics.pyx DEBUG: -> running python3 -cimport sys; from Cython.Compiler.Main import setuptools_main; sys.exit(setuptools_main()); ./kivy/_metrics.pyx DEBUG: /home/averagenetworkscienceenjoyer/.buildozer/android/bdvenv/lib/python3.10/site-packages/Cython/Compiler/Main.py:384: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /home/averagenetworkscienceenjoyer/pythonprojectretry/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/kivy/arm64-v8andk_target_21/kivy/kivy/_metrics.pxd DEBUG: tree = Parsing.p_module(s, pxd, full_module_name) [INFO]: Cythonize kivy/properties.pyx DEBUG: -> running python3 -cimport sys; from Cython.Compiler.Main import setuptools_main; sys.exit(setuptools_main()); ./kivy/properties.pyx DEBUG: /home/averagenetworkscienceenjoyer/.buildozer/android/bdvenv/lib/python3.10/site-packages/Cython/Compiler/Main.py:384: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /home/averagenetworkscienceenjoyer/pythonprojectretry/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/kivy/arm64-v8andk_target_21/kivy/kivy/properties.pxd DEBUG: tree = Parsing.p_module(s, pxd, full_module_name) DEBUG: warning: kivy/include/config.pxi:2:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310 DEBUG: warning: kivy/include/config.pxi:3:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310 DEBUG: warning: kivy/include/config.pxi:4:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310 DEBUG: warning: kivy/include/config.pxi:5:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310 DEBUG: warning: kivy/include/config.pxi:6:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310 DEBUG: warning: kivy/include/config.pxi:7:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310 DEBUG: warning: kivy/include/config.pxi:8:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310 DEBUG: warning: kivy/include/config.pxi:9:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310 DEBUG: warning: kivy/include/config.pxi:10:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310 DEBUG: warning: kivy/include/config.pxi:11:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310 DEBUG: warning: kivy/include/config.pxi:12:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310 DEBUG: warning: kivy/include/config.pxi:13:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310 DEBUG: warning: kivy/include/config.pxi:14:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310 DEBUG: warning: kivy/include/config.pxi:15:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310 DEBUG: warning: kivy/include/config.pxi:16:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310 DEBUG: warning: kivy/include/config.pxi:17:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310 DEBUG: warning: kivy/include/config.pxi:18:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310 DEBUG: warning: kivy/include/config.pxi:19:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310 DEBUG: warning: kivy/include/config.pxi:20:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310 [INFO]: Cythonize kivy/_event.pyx DEBUG: -> running python3 -cimport sys; from Cython.Compiler.Main import setuptools_main; sys.exit(setuptools_main()); ./kivy/_event.pyx DEBUG: /home/averagenetworkscienceenjoyer/.buildozer/android/bdvenv/lib/python3.10/site-packages/Cython/Compiler/Main.py:384: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /home/averagenetworkscienceenjoyer/pythonprojectretry/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/kivy/arm64-v8andk_target_21/kivy/kivy/_event.pxd DEBUG: tree = Parsing.p_module(s, pxd, full_module_name) [INFO]: Cythonize kivy/lib/vidcore_lite/bcm.pyx DEBUG: -> running python3 -cimport sys; from Cython.Compiler.Main import setuptools_main; sys.exit(setuptools_main()); ./kivy/lib/vidcore_lite/bcm.pyx DEBUG: /home/averagenetworkscienceenjoyer/.buildozer/android/bdvenv/lib/python3.10/site-packages/Cython/Compiler/Main.py:384: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /home/averagenetworkscienceenjoyer/pythonprojectretry/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/kivy/arm64-v8a__ndk_target_21/kivy/kivy/lib/vidcore_lite/bcm.pxd DEBUG: tree = Parsing.p_module(s, pxd, full_module_name) [INFO]: Cythonize kivy/lib/vidcore_lite/egl.pyx DEBUG: -> running python3 -cimport sys; from Cython.Compiler.Main import setuptools_main; sys.exit(setuptools_main()); ./kivy/lib/vidcore_lite/egl.pyx DEBUG: /home/averagenetworkscienceenjoyer/.buildozer/android/bdvenv/lib/python3.10/site-packages/Cython/Compiler/Main.py:384: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /home/averagenetworkscienceenjoyer/pythonprojectretry/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/kivy/arm64-v8andk_target_21/kivy/kivy/lib/vidcore_lite/egl.pyx DEBUG: tree = Parsing.p_module(s, pxd, full_module_name) [INFO]: Cythonize kivy/lib/gstplayer/_gstplayer.pyx DEBUG: -> running python3 -cimport sys; from Cython.Compiler.Main import setuptools_main; sys.exit(setuptools_main()); ./kivy/lib/gstplayer/_gstplayer.pyx DEBUG: /home/averagenetworkscienceenjoyer/.buildozer/android/bdvenv/lib/python3.10/site-packages/Cython/Compiler/Main.py:384: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /home/averagenetworkscienceenjoyer/pythonprojectretry/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/kivy/arm64-v8a__ndk_target_21/kivy/kivy/lib/gstplayer/_gstplayer.pyx DEBUG: tree = Parsing.p_module(s, pxd, full_module_name) DEBUG: DEBUG: Error compiling Cython file:
DEBUG: raise GstPlayerException('Unable to get the bus from the pipeline') DEBUG:
DEBUG: if self.eos_cb or self.message_cb: DEBUG: self.hid_message = c_bus_connect_message( DEBUG: self.bus, _on_gstplayer_message, <void *>self)
DEBUG: DEBUG: kivy/lib/gstplayer/_gstplayer.pyx:228:30: Cannot assign type 'void (void , GstMessage ) except nogil' to 'buscallback_t'. Exception values are incompatible. Suggest adding 'noexcept' to type 'void (void , GstMessage ) except nogil'. DEBUG: DEBUG: Error compiling Cython file:
DEBUG: # attach the callback DEBUG: # NOTE no need to create a weakref here, as we manage to grab/release DEBUG: # the reference of self in the set_sample_callback() method. DEBUG: if self.sample_cb: DEBUG: self.hid_sample = c_appsink_set_sample_callback( DEBUG: self.appsink, _on_appsink_sample, <void *>self)
DEBUG: DEBUG: kivy/lib/gstplayer/_gstplayer.pyx:269:34: Cannot assign type 'void (void , int, int, char , int) except nogil' to 'appcallback_t'. Exception values are incompatible. Suggest adding 'noexcept' to type 'void (void , int, int, char , int) except nogil'. DEBUG: DEBUG: Error compiling Cython file:
DEBUG: if self.appsink != NULL:
DEBUG: gst_element_get_state(self.pipeline, ¤t_state,
DEBUG: &pending_state,
DEBUG: self.appsink, _on_appsink_sample, <void *>self)
DEBUG: DEBUG: kivy/lib/gstplayer/_gstplayer.pyx:418:34: Cannot assign type 'void (void , int, int, char , int) except nogil' to 'appcallback_t'. Exception values are incompatible. Suggest adding 'noexcept' to type 'void (void , int, int, char , int) except nogil'. Exception in thread background thread for pid 2676: Traceback (most recent call last): File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner self.run() File "/usr/lib/python3.10/threading.py", line 953, in run self._target(*self._args, *self._kwargs) File "/home/averagenetworkscienceenjoyer/.local/lib/python3.10/site-packages/sh.py", line 1641, in wrap fn(rgs, **kwargs) File "/home/averagenetworkscienceenjoyer/.local/lib/python3.10/site-packages/sh.py", line 2569, in background_thread handle_exit_code(exit_code) File "/home/averagenetworkscienceenjoyer/.local/lib/python3.10/site-packages/sh.py", line 2269, in fn return self.command.handle_command_exit_code(exit_code) File "/home/averagenetworkscienceenjoyer/.local/lib/python3.10/site-packages/sh.py", line 869, in handle_command_exit_code raise exc sh.ErrorReturnCode_1:
RAN: /home/averagenetworkscienceenjoyer/.buildozer/android/bdvenv/bin/python3 '-cimport sys; from Cython.Compiler.Main import setuptools_main; sys.exit(setuptools_main());' ./kivy/lib/gstplayer/_gstplayer.pyx
STDOUT: /home/averagenetworkscienceenjoyer/.buildozer/android/bdvenv/lib/python3.10/site-packages/Cython/Compiler/Main.py:384: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /home/averagenetworkscienceenjoyer/pythonprojectretry/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/kivy/arm64-v8a__ndk_target_21/kivy/kivy/lib/gstplayer/_gstplayer.pyx tree = Parsing.p_module(s, pxd, full_module_name)
... raise GstPlayerException('Unable to get the bus from the pipeline')
gst_bus_enable_sync_message_emission(self.bus)
if self.eos_cb or self.message_cb:
self.hid_message = c_bus_connect_message(
self.bus, _on_gstplayer_message, <void *>self)
^
...
# NOTE no need to create a weakref here, as we manage to grab/release
# the reference of self in the set_sample_callback() method.
if self.sample_cb:
self.hid_sample = c_appsink_set_sample_callback(
self.appsink, _on_appsink_sample, <void *>self)
^
kivy/lib/gstplayer/_gstplayer.pyx:269:34: Cannot assign type 'void (void , int, int, char , int) except nogil' to 'appcallback_t'. Exception values are incompatible. Suggest adding 'noexcept' to type 'void (void , int, int, char , int) except nogil'.
kivy/lib/gstplayer/_gstplayer.pyx:418:34: Cannot assign type 'void (void , int, int, char , int) except nogil' to 'appcallback_t'. Exception values are incompatible. Suggest adding 'noexcept' to type 'void (void , int, int, char , int) except nogil'.
STDERR:
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/averagenetworkscienceenjoyer/pythonprojectretry/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 1312, in
RAN: /home/averagenetworkscienceenjoyer/.buildozer/android/bdvenv/bin/python3 '-cimport sys; from Cython.Compiler.Main import setuptools_main; sys.exit(setuptools_main());' ./kivy/lib/gstplayer/_gstplayer.pyx
STDOUT: /home/averagenetworkscienceenjoyer/.buildozer/android/bdvenv/lib/python3.10/site-packages/Cython/Compiler/Main.py:384: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /home/averagenetworkscienceenjoyer/pythonprojectretry/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/kivy/arm64-v8a__ndk_target_21/kivy/kivy/lib/gstplayer/_gstplayer.pyx tree = Parsing.p_module(s, pxd, full_module_name)
... raise GstPlayerException('Unable to get the bus from the pipeline')
gst_bus_enable_sync_message_emission(self.bus)
if self.eos_cb or self.message_cb:
self.hid_message = c_bus_connect_message(
self.bus, _on_gstplayer_message, <void *>self)
^
...
# NOTE no need to create a weakref here, as we manage to grab/release
# the reference of self in the set_sample_callback() method.
if self.sample_cb:
self.hid_sample = c_appsink_set_sample_callback(
self.appsink, _on_appsink_sample, <void *>self)
^
kivy/lib/gstplayer/_gstplayer.pyx:269:34: Cannot assign type 'void (void , int, int, char , int) except nogil' to 'appcallback_t'. Exception values are incompatible. Suggest adding 'noexcept' to type 'void (void , int, int, char , int) except nogil'.
kivy/lib/gstplayer/_gstplayer.pyx:418:34: Cannot assign type 'void (void , int, int, char , int) except nogil' to 'appcallback_t'. Exception values are incompatible. Suggest adding 'noexcept' to type 'void (void , int, int, char , int) except nogil'.
STDERR:
But, I am no longer getting the ctypes error? Does this mean that issue is fixed somehow, and also what do I do to fix this new issue? seems like the supply of issues is infinite lol
Cython <= 3
is required, as suggested in the above-mentioned install instructions.
I'm closing the issue as the original one has been triaged by @Cheaterman, feel free to reach out us on our Discord server.
👋 @averagenetworkscienceenjoyer, we use the issue tracker exclusively for bug reports and feature requests. However, this issue appears to be a support request. Please use our support channels to get help with the project. Let us know if this comment was made in error, and we'll be happy to reopen the issue.
Versions
Description
when I run the build command below I get the error message "no module named "_ctypes" ". I have installed libffi-dev, and used pyenv to uninstall and reinstall python to make sure it's used, but I get the same error message.
buildozer.spec
Command:
Spec file:
Logs