LoginSignup
nattokukun
@nattokukun

Are you sure you want to delete the question?

If your question is resolved, you may close it.

Leaving a resolved question undeleted may help others!

We hope you find it useful!

Github Action で Buildozer のエラーについて

Github Actionで Buildozerを実行しております。
2023年2月時点で成功しておりましたものを、ここ数日内に実行しますとエラーとなります。
以下は、エラー発生箇所と思われるログです。

[INFO]:    Building six for armeabi-v7a
[INFO]:    six apparently isn't already in site-packages
[INFO]:    Installing six into site-packages
[INFO]:    -> directory context /github/workspace/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/six/armeabi-v7a__ndk_target_21/six
stty: 'standard input': Inappropriate ioctl for device
[DEBUG]:   -> running python3 setup.py install -O2 --root=/github/workspace/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/un_official_launcher/armeabi-v7a --install-lib=.
[DEBUG]:   	/github/workspace/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/six/armeabi-v7a__ndk_target_21/six/setup.py:29: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
[DEBUG]:   	  from distutils.core import setup
[DEBUG]:   	/github/workspace/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/Lib/distutils/dist.py:274: UserWarning: Unknown distribution option: 'tests_require'
[DEBUG]:   	  warnings.warn(msg)
[DEBUG]:   	/github/workspace/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/Lib/distutils/dist.py:274: UserWarning: Unknown distribution option: 'python_requires'
[DEBUG]:   	  warnings.warn(msg)
[DEBUG]:   	running install
[DEBUG]:   	running build
[DEBUG]:   	running build_py
[DEBUG]:   	creating build
[DEBUG]:   	creating build/lib
[DEBUG]:   	copying six.py -> build/lib
[DEBUG]:   	running install_lib
[DEBUG]:   	copying build/lib/six.py -> /github/workspace/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/un_official_launcher/armeabi-v7a/.
[DEBUG]:   	byte-compiling /github/workspace/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/un_official_launcher/armeabi-v7a/./six.py to six.cpython-310.pyc
[DEBUG]:   	writing byte-compilation script '/tmp/tmp_r7qdvm8.py'
[DEBUG]:   	/github/workspace/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/native-build/python3 -Wignore:The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives:DeprecationWarning /tmp/tmp_r7qdvm8.py
[DEBUG]:   	removing /tmp/tmp_r7qdvm8.py
[DEBUG]:   	running install_egg_info
[DEBUG]:   	Writing /github/workspace/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/un_official_launcher/armeabi-v7a/./six-1.15.0-py3.10.egg-info
[INFO]:    <- directory context /github/workspace/.buildozer/android/platform/python-for-android
[INFO]:    Building pyjnius for armeabi-v7a
[INFO]:    jnius apparently isn't already in site-packages
[INFO]:    Cythonizing anything necessary in pyjnius
[INFO]:    -> directory context /github/workspace/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/pyjnius-sdl2/armeabi-v7a__ndk_target_21/pyjnius
stty: 'standard input': Inappropriate ioctl for device
[DEBUG]:   -> running python3 -c import sys; print(sys.path)
[DEBUG]:   	['', '/github/workspace/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/native-build/Lib', '/github/workspace/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/native-build/Lib/site-packages', '/github/workspace/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/native-build/build/scripts-3.10', '/github/workspace/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/native-build/build/lib.linux-x86_64-3.10', '/github/workspace/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/native-build/build/temp.linux-x86_64-3.10', '/usr/local/lib/python310.zip', '/github/workspace/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/Lib']
[DEBUG]:   cwd is /github/workspace/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/pyjnius-sdl2/armeabi-v7a__ndk_target_21/pyjnius
[INFO]:    Trying first build of pyjnius to get cython files: this is expected to fail
stty: 'standard input': Inappropriate ioctl for device
[DEBUG]:   -> running python3 setup.py build_ext -v
[DEBUG]:   	warning: [options] bootstrap class path not set in conjunction with -source 7
[DEBUG]:   	warning: [options] source value 7 is obsolete and will be removed in a future release
[DEBUG]:   	warning: [options] target value 7 is obsolete and will be removed in a future release
[DEBUG]:   	warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
[DEBUG]:   	4 warnings
[DEBUG]:   	running build_ext
[DEBUG]:   	building 'jnius' extension
[DEBUG]:   	creating build
[DEBUG]:   	creating build/temp.linux-x86_64-3.10
[DEBUG]:   	creating build/temp.linux-x86_64-3.10/jnius
[DEBUG]:   	/usr/bin/ccache /github/workspace/.buildozer_global/android/platform/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -target armv7a-linux-androideabi21 -fomit-frame-pointer -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -mthumb -fPIC -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -target armv7a-linux-androideabi21 -fomit-frame-pointer -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -mthumb -fPIC -I/github/workspace/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3/Include -DANDROID -I/github/workspace/.buildozer_global/android/platform/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include -I/github/workspace/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/un_official_launcher/armeabi-v7a/include/python3.1 -fPIC -I/github/workspace/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/Include -I/github/workspace/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/native-build -c jnius/jnius.c -o build/temp.linux-x86_64-3.10/jnius/jnius.o
[DEBUG]:   	clang-14: error: no such file or directory: 'jnius/jnius.c'
[DEBUG]:   	clang-14: error: no input files
[DEBUG]:   	error: command '/usr/bin/ccache' failed with exit code 1
Exception in thread background thread for pid 35214:
Traceback (most recent call last):
  File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.8/threading.py", line 870, in run
    self._target(*self._args, **self._kwargs)
  File "/home/user/.local/lib/python3.8/site-packages/sh.py", line 1637, in wrap
    fn(*rgs, **kwargs)
  File "/home/user/.local/lib/python3.8/site-packages/sh.py", line 2561, in background_thread
    handle_exit_code(exit_code)
  File "/home/user/.local/lib/python3.8/site-packages/sh.py", line 2265, in fn
    return self.command.handle_command_exit_code(exit_code)
  File "/home/user/.local/lib/python3.8/site-packages/sh.py", line 865, in handle_command_exit_code
    raise exc
sh.ErrorReturnCode_1: 

  RAN: /github/workspace/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/native-build/python3 setup.py build_ext -v

  STDOUT:
warning: [options] bootstrap class path not set in conjunction with -source 7
warning: [options] source value 7 is obsolete and will be removed in a future release
warning: [options] target value 7 is obsolete and will be removed in a future release
warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
4 warnings
running build_ext
building 'jnius' extension
creating build
creating build/temp.linux-x86_64-3.10
creating build/temp.linux-x86_64-3.10/jnius
/usr/bin/ccache /github/workspace/.buildozer_global/android/platform/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -target armv7a-linux-androideabi21 -fomit-frame-pointer -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -mthumb -fPIC -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -target armv7a-linux-androideabi21 -fomit-frame-pointer -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -mthumb -fPIC -I/github/workspace/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3/Include -DANDROID -I/github/workspace/.buildozer_global/android/platform/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include -I/github/workspace/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/un_official_launcher/armeabi-v7a/include/python3.1 -fPIC -I/github/workspace/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/Include -I/github/workspace/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/native-build -c jnius/jnius.c -o build/temp.linux-x86_64-3.10/jnius/jnius.o
clang-14: error: no such file or directory: 'jnius/jnius.c'
clang-14: error: no input files
error: command '/usr/bin/ccache' failed with exit code 1


  STDERR:


[INFO]:    pyjnius first build failed (as expected)
[INFO]:    Running cython where appropriate
[INFO]:    Cythonize jnius/jnius.pyx
stty: 'standard input': Inappropriate ioctl for device
[DEBUG]:   -> running python3 -cimport sys; from Cython.Compiler.Main import setuptools_main; sys.exit(setuptools_main()); ./jnius/jnius.pyx
[DEBUG]:   	/home/user/.local/lib/python3.8/site-packages/Cython/Compiler/Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /github/workspace/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/pyjnius-sdl2/armeabi-v7a__ndk_target_21/pyjnius/jnius/jnius.pyx
[DEBUG]:   	  tree = Parsing.p_module(s, pxd, full_module_name)
stty: 'standard input': Inappropriate ioctl for device
[DEBUG]:   -> running python3 setup.py build_ext -v
[DEBUG]:   	warning: [options] bootstrap class path not set in conjunction with -source 7
[DEBUG]:   	warning: [options] source value 7 is obsolete and will be removed in a future release
[DEBUG]:   	warning: [options] target value 7 is obsolete and will be removed in a future release
[DEBUG]:   	warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
[DEBUG]:   	4 warnings
[DEBUG]:   	running build_ext
[DEBUG]:   	building 'jnius' extension
[DEBUG]:   	/usr/bin/ccache /github/workspace/.buildozer_global/android/platform/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -target armv7a-linux-androideabi21 -fomit-frame-pointer -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -mthumb -fPIC -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -target armv7a-linux-androideabi21 -fomit-frame-pointer -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -mthumb -fPIC -I/github/workspace/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3/Include -DANDROID -I/github/workspace/.buildozer_global/android/platform/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include -I/github/workspace/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/un_official_launcher/armeabi-v7a/include/python3.1 -fPIC -I/github/workspace/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/Include -I/github/workspace/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/native-build -c jnius/jnius.c -o build/temp.linux-x86_64-3.10/jnius/jnius.o
[DEBUG]:   	jnius/jnius.c:12406:19: warning: assigning to 'jchar *' (aka 'unsigned short *') from 'const jchar *' (aka 'const unsigned short *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
[DEBUG]:   	  __pyx_v_j_chars = (__pyx_v_j_env[0])->GetStringChars(__pyx_v_j_env, __pyx_v_j_string, NULL);
[DEBUG]:   	                  ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[DEBUG]:   	jnius/jnius.c:54433:5: error: expression is not assignable
[DEBUG]:   	    ++Py_REFCNT(o);
[DEBUG]:   	    ^ ~~~~~~~~~~~~
[DEBUG]:   	jnius/jnius.c:54435:5: error: expression is not assignable
[DEBUG]:   	    --Py_REFCNT(o);
[DEBUG]:   	    ^ ~~~~~~~~~~~~
[DEBUG]:   	jnius/jnius.c:54549:5: error: expression is not assignable
[DEBUG]:   	    ++Py_REFCNT(o);
[DEBUG]:   	    ^ ~~~~~~~~~~~~
[DEBUG]:   	jnius/jnius.c:54551:5: error: expression is not assignable
[DEBUG]:   	    --Py_REFCNT(o);
[DEBUG]:   	    ^ ~~~~~~~~~~~~
[DEBUG]:   	jnius/jnius.c:54803:5: error: expression is not assignable
[DEBUG]:   	    ++Py_REFCNT(o);
[DEBUG]:   	    ^ ~~~~~~~~~~~~
[DEBUG]:   	jnius/jnius.c:54805:5: error: expression is not assignable
[DEBUG]:   	    --Py_REFCNT(o);
[DEBUG]:   	    ^ ~~~~~~~~~~~~
[DEBUG]:   	jnius/jnius.c:55697:5: error: expression is not assignable
[DEBUG]:   	    ++Py_REFCNT(o);
[DEBUG]:   	    ^ ~~~~~~~~~~~~
[DEBUG]:   	jnius/jnius.c:55699:5: error: expression is not assignable
[DEBUG]:   	    --Py_REFCNT(o);
[DEBUG]:   	    ^ ~~~~~~~~~~~~
[DEBUG]:   	jnius/jnius.c:56008:5: error: expression is not assignable
[DEBUG]:   	    ++Py_REFCNT(o);
[DEBUG]:   	    ^ ~~~~~~~~~~~~
[DEBUG]:   	jnius/jnius.c:56010:5: error: expression is not assignable
[DEBUG]:   	    --Py_REFCNT(o);
[DEBUG]:   	    ^ ~~~~~~~~~~~~
[DEBUG]:   	jnius/jnius.c:56258:5: error: expression is not assignable
[DEBUG]:   	    ++Py_REFCNT(o);
[DEBUG]:   	    ^ ~~~~~~~~~~~~
[DEBUG]:   	jnius/jnius.c:56260:5: error: expression is not assignable
[DEBUG]:   	    --Py_REFCNT(o);
[DEBUG]:   	    ^ ~~~~~~~~~~~~
[DEBUG]:   	jnius/jnius.c:59573:16: warning: 'PyUnicode_FromUnicode' is deprecated [-Wdeprecated-declarations]
[DEBUG]:   	        return PyUnicode_FromUnicode(NULL, 0);
[DEBUG]:   	               ^
[DEBUG]:   	/github/workspace/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3/Include/cpython/unicodeobject.h:551:1: note: 'PyUnicode_FromUnicode' has been explicitly marked deprecated here
[DEBUG]:   	Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_FromUnicode(
[DEBUG]:   	^
[DEBUG]:   	/github/workspace/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3/Include/pyport.h:513:54: note: expanded from macro 'Py_DEPRECATED'
[DEBUG]:   	#define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
[DEBUG]:   	                                                     ^
[DEBUG]:   	jnius/jnius.c:60809:16: warning: 'PyUnicode_FromUnicode' is deprecated [-Wdeprecated-declarations]
[DEBUG]:   	        return PyUnicode_FromUnicode(NULL, 0);
[DEBUG]:   	               ^
[DEBUG]:   	/github/workspace/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3/Include/cpython/unicodeobject.h:551:1: note: 'PyUnicode_FromUnicode' has been explicitly marked deprecated here
[DEBUG]:   	Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_FromUnicode(
[DEBUG]:   	^
[DEBUG]:   	/github/workspace/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3/Include/pyport.h:513:54: note: expanded from macro 'Py_DEPRECATED'
[DEBUG]:   	#define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
[DEBUG]:   	                                                     ^
[DEBUG]:   	3 warnings and 12 errors generated.
[DEBUG]:   	error: command '/usr/bin/ccache' failed with exit code 1
Exception in thread background thread for pid 35248:
Traceback (most recent call last):
  File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.8/threading.py", line 870, in run
    self._target(*self._args, **self._kwargs)
  File "/home/user/.local/lib/python3.8/site-packages/sh.py", line 1637, in wrap
    fn(*rgs, **kwargs)
  File "/home/user/.local/lib/python3.8/site-packages/sh.py", line 2561, in background_thread
    handle_exit_code(exit_code)
  File "/home/user/.local/lib/python3.8/site-packages/sh.py", line 2265, in fn
    return self.command.handle_command_exit_code(exit_code)
  File "/home/user/.local/lib/python3.8/site-packages/sh.py", line 865, in handle_command_exit_code
    raise exc
sh.ErrorReturnCode_1: 

  RAN: /github/workspace/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/native-build/python3 setup.py build_ext -v

  STDOUT:
warning: [options] bootstrap class path not set in conjunction with -source 7
warning: [options] source value 7 is obsolete and will be removed in a future release
warning: [options] target value 7 is obsolete and will be removed in a future release
warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
4 warnings
running build_ext
building 'jnius' extension
/usr/bin/ccache /github/workspace/.buildozer_global/android/platform/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -target armv7a-linux-androideabi21 -fomit-frame-pointer -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -mthumb -fPIC -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -target armv7a-linux-androideabi21 -fomit-frame-pointer -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -mthumb -fPIC -I/github/workspace/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3/Include -DANDROID -I/github/workspace/.buildozer_global/android/platform/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include -I/github/workspace/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/un_official_launcher/armeabi-v7a/include/python3.1 -fPIC -I/github/workspace/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/Include -I/github/workspace/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/native-build -c jnius/jnius.c -o build/temp.linux-x86_64-3.10/jnius/jnius.o
jnius/jnius.c:12406:19: warning: assigning to 'jchar *' (aka 'unsigned short *') from 'const jchar *' (aka 'const unsigned short *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
  __pyx_v_j_chars = (__pyx_v_j_env[0])->GetStringChars(__pyx_v_j_env, __pyx_v_j_string, NULL);
                  ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
jnius/jnius.c:54433:5: error: expression is not assignable
    ++Py_REFCNT(o);
    ^ ~~~~~~~~~~~~
jnius/jnius.c:54435:5: error: expression is not assignable
    --Py_REFCNT(o);
    ^ ~~~~~~~~~~~~
jnius/jnius.c:54549:5: error: expression is not assignable
    ++Py_REFCNT(o);
    ^ ~~~~~~~~~~~~
jnius/jnius.c:54551:5: error: expression is not assignable
    --Py_REFCNT(o);
    ^ ~~~~~~~~~~~~
jnius/jnius.c:54803:5: error: expression is not assignable
    ++Py_REFCNT(o);
    ^ ~~~~~~~~~~~~
jnius/jnius.c:54805:5: error: expression is not assignable
    --Py_REFCNT(o);
    ^ ~~~~~~~~~~~~
jnius/jnius.c:55697:5: error: expression is not assignable
    ++Py_REFCNT(o);
    ^ ~~~~~~~~~~~~
jnius/jnius.c:55699:5: error: expression is not assignable
    --Py_REFCNT(o);
    ^ ~~~~~~~~~~~~
jnius/jnius.c:56008:5: error: expression is not assignable
    ++Py_REFCNT(o);
    ^ ~~~~~~~~~~~~
jnius/jnius.c:56010:5: error: expression is not assignable
    --Py_REFCNT(o);
    ^ ~~~~~~~~~~~~
jnius/jnius.c:56258:5: error: expression is not assignable
    ++Py_REFCNT(o);
    ^ ~~~~~~~~~~~~
jnius/jnius.c:56260:5: error: expression is not assignable
    --Py_REFCNT(o);
    ^ ~~~~~~~~~~~~
jnius/jnius.c:59573:16: warning: 'PyUnicode_FromUnicode' is deprecated [-Wdeprecated-declarations]
        return PyUnicode_FromUnicode(NULL, 0);
               ^
/github/workspace/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3/Include/cpython/unicodeobject.h:551:1: note: 'PyUnicode_FromUnicode' has been explicitly marked deprecated here
Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_FromUnicode(
^
/github/workspace/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3/Include/pyport.h:513:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                     ^
jnius/jnius.c:60809:16: warning: 'PyUnicode_FromUnicode' is deprecated [-Wdeprecated-declarations]
        return PyUnicode_FromUnicode(NULL, 0);
               ^
/github/workspace/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3/Include/cpython/unicodeobject.h:551:1: note: 'PyUnicode_FromUnicode' has been explicitly marked deprecated here
Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_FromUnicode(
^
/github/workspace/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3/Include/pyport.h:513:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                     ^
3 warnings and 12 errors generated.
error: command '/usr/bin/ccache' failed with exit code 1


  STDERR:

[INFO]:    STDOUT (last 20 lines of 67):
	jnius/jnius.c:59573:16: warning: 'PyUnicode_FromUnicode' is deprecated [-Wdeprecated-declarations]	
        return PyUnicode_FromUnicode(NULL, 0);	
               ^	
/github/workspace/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3/Include/cpython/unicodeobject.h:551:1: note: 'PyUnicode_FromUnicode' has been explicitly marked deprecated here	
Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_FromUnicode(	
^	
/github/workspace/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3/Include/pyport.h:513:54: note: expanded from macro 'Py_DEPRECATED'	
#define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))	
                                                     ^	
jnius/jnius.c:60809:16: warning: 'PyUnicode_FromUnicode' is deprecated [-Wdeprecated-declarations]	
        return PyUnicode_FromUnicode(NULL, 0);	
               ^	
/github/workspace/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3/Include/cpython/unicodeobject.h:551:1: note: 'PyUnicode_FromUnicode' has been explicitly marked deprecated here	
Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_FromUnicode(	
^	
/github/workspace/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3/Include/pyport.h:513:54: note: expanded from macro 'Py_DEPRECATED'	
#define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))	
                                                     ^	
3 warnings and 12 errors generated.	
error: command '/usr/bin/ccache' failed with exit code 1
[INFO]:    STDERR:
	
[INFO]:    ENV:
export HOME='/home/user'
export CFLAGS='-target armv7a-linux-androideabi21 -fomit-frame-pointer -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -mthumb -fPIC -I/github/workspace/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3/Include'
export CXXFLAGS='-target armv7a-linux-androideabi21 -fomit-frame-pointer -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -mthumb -fPIC'
export CPPFLAGS='-DANDROID -I/github/workspace/.buildozer_global/android/platform/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include -I/github/workspace/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/un_official_launcher/armeabi-v7a/include/python3.1'
export LDFLAGS='  -L/github/workspace/.buildozer/android/platform/build-armeabi-v7a/build/libs_collections/un_official_launcher/armeabi-v7a -L/github/workspace/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3/android-build -lpython3.10 -L/github/workspace/.buildozer/android/platform/build-armeabi-v7a/build/libs_collections/un_official_launcher/armeabi-v7a -L/github/workspace/.buildozer/android/platform/build-armeabi-v7a/build/libs_collections/un_official_launcher  -L/github/workspace/.buildozer/android/platform/build-armeabi-v7a/build/bootstrap_builds/sdl2/obj/local/armeabi-v7a '
export LDLIBS='-lm'
export USE_CCACHE='1'
export NDK_CCACHE='/usr/bin/ccache'
export PATH='/github/workspace/.buildozer_global/android/platform/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/bin:/github/workspace/.buildozer_global/android/platform/android-ndk-r25b:/github/workspace/.buildozer_global/android/platform/android-sdk/tools:/github/workspace/./.buildozer_global/android/platform/apache-ant-1.9.4/bin:/home/user/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
export CC='/usr/bin/ccache /github/workspace/.buildozer_global/android/platform/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -target armv7a-linux-androideabi21 -fomit-frame-pointer -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -mthumb -fPIC'
export CXX='/usr/bin/ccache /github/workspace/.buildozer_global/android/platform/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ -target armv7a-linux-androideabi21 -fomit-frame-pointer -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -mthumb -fPIC'
export AR='/github/workspace/.buildozer_global/android/platform/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-ar'
export RANLIB='/github/workspace/.buildozer_global/android/platform/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-ranlib'
export STRIP='/github/workspace/.buildozer_global/android/platform/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-strip --strip-unneeded'
export READELF='/github/workspace/.buildozer_global/android/platform/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-readelf'
export OBJCOPY='/github/workspace/.buildozer_global/android/platform/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-objcopy'
export MAKE='make -j2'
export ARCH='armeabi-v7a'
export NDK_API='android-21'
export LDSHARED='/usr/bin/ccache /github/workspace/.buildozer_global/android/platform/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -target armv7a-linux-androideabi21 -fomit-frame-pointer -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -mthumb -fPIC -shared'
export BUILDLIB_PATH='/github/workspace/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/native-build/build/lib.linux-x86_64-3.10'
export PYTHONNOUSERSITE='1'
export LANG='en_GB.UTF-8'
export PYTHONPATH='/github/workspace/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/native-build/Lib:/github/workspace/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/native-build/Lib/site-packages:/github/workspace/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/native-build/build/scripts-3.10:/github/workspace/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/native-build/build/lib.linux-x86_64-3.10:/github/workspace/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/native-build/build/temp.linux-x86_64-3.10'
export LIBLINK='NOTNONE'
export COPYLIBS='1'
export LIBLINK_PATH='/github/workspace/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/pyjnius-sdl2/armeabi-v7a__ndk_target_21/objects_pyjnius'
export NDKPLATFORM='NOTNONE'

[INFO]:    COMMAND:
cd /github/workspace/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/pyjnius-sdl2/armeabi-v7a__ndk_target_21/pyjnius && /github/workspace/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/native-build/python3 setup.py build_ext -v

[WARNING]: ERROR: /github/workspace/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/native-build/python3 failed!
# Command failed: ['/bin/python3', '-m', 'pythonforandroid.toolchain', 'create', '--dist_name=un_official_launcher', '--bootstrap=sdl2', '--requirements=python3,kivy==master,hostpython3,android,requests,urllib3,charset-normalizer==2.1.1,idna', '--arch=armeabi-v7a', '--copy-libs', '--color=always', '--storage-dir=/github/workspace/.buildozer/android/platform/build-armeabi-v7a', '--ndk-api=21', '--ignore-setup-py', '--debug']
# ENVIRONMENT:
#     GITHUB_STATE = '/github/file_commands/save_state_ed027c3c-3bd2-4971-b9bf-01f9090bc760'
#     ACTIONS_RUNTIME_TOKEN = '***'
#     ACTIONS_CACHE_URL = 'https://artifactcache.actions.githubusercontent.com/aTosXnnF043yzejCMwIBhdpOgNpqBfPrQCxdHLBiO77QVxsmUZ/'
#     USER = 'user'
#     LANGUAGE = 'en_US.UTF-8'
#     CI = 'true'
#     HOSTNAME = '039ac36f1d31'
#     GITHUB_ENV = '/github/file_commands/set_env_ed027c3c-3bd2-4971-b9bf-01f9090bc760'
#     WORK_DIR = '/home/user/hostcwd'
#     HOME = '/home/user'
#     SRC_DIR = '/home/user/src'
#     GITHUB_EVENT_PATH = '/github/workflow/event.json'
#     RUNNER_TEMP = '/home/runner/work/_temp'
#     GITHUB_REPOSITORY_OWNER = 'nattokukun'
#     PYTHONUNBUFFERED = '1'
#     GITHUB_RETENTION_DAYS = '90'
#     GITHUB_HEAD_REF = ''
#     GITHUB_REPOSITORY_OWNER_ID = '102932105'
#     GITHUB_GRAPHQL_URL = 'https://api.github.com/graphql'
#     HOME_DIR = '/home/user'
#     BUILDOZER_WARN_ON_ROOT = '0'
#     RUNNER_OS = 'Linux'
#     ACTIONS_RUNTIME_URL = 'https://pipelines.actions.githubusercontent.com/aTosXnnF043yzejCMwIBhdpOgNpqBfPrQCxdHLBiO77QVxsmUZ/'
#     GITHUB_API_URL = 'https://api.github.com'
#     GITHUB_WORKFLOW = 'CI'
#     APP_ANDROID_ACCEPT_SDK_LICENSE = '1'
#     GITHUB_RUN_ID = '5116958449'
#     GITHUB_REF_TYPE = 'branch'
#     GITHUB_BASE_REF = ''
#     GITHUB_WORKFLOW_SHA = '06e4636414cd409a02841b8186f4e36ac7e9a922'
#     GITHUB_WORKFLOW_REF = 'nattokukun/kivy-launcher/.github/workflows/main.yaml@refs/heads/extended'
#     GITHUB_ACTION_REPOSITORY = 'ArtemSBulgakov/buildozer-action'
#     PATH = '/github/workspace/./.buildozer_global/android/platform/apache-ant-1.9.4/bin:/home/user/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
#     RUNNER_TOOL_CACHE = '/opt/hostedtoolcache'
#     GITHUB_TRIGGERING_ACTOR = 'nattokukun'
#     GITHUB_RUN_NUMBER = '106'
#     GITHUB_ACTION = 'buildozer'
#     RUNNER_ARCH = 'X64'
#     LANG = 'en_US.UTF-8'
#     INPUT_WORKDIR = '.'
#     GITHUB_REPOSITORY = 'nattokukun/kivy-launcher'
#     GITHUB_REF_NAME = 'extended'
#     RUNNER_NAME = 'GitHub Actions 2'
#     GITHUB_ACTION_REF = 'v1'
#     GITHUB_REPOSITORY_ID = '521463970'
#     GITHUB_ACTIONS = 'true'
#     GITHUB_REF_PROTECTED = 'false'
#     BUILDOZER_BIN = './bin'
#     GITHUB_JOB = 'build'
#     INPUT_COMMAND = 'buildozer android debug'
#     GITHUB_WORKSPACE = '/github/workspace'
#     BUILDOZER_BUILD_DIR = './.buildozer'
#     GITHUB_SHA = '06e4636414cd409a02841b8186f4e36ac7e9a922'
#     GITHUB_RUN_ATTEMPT = '1'
#     GITHUB_ACTOR = 'nattokukun'
#     GITHUB_REF = 'refs/heads/extended'
#     INPUT_BUILDOZER_VERSION = 'master'
#     RUNNER_WORKSPACE = '/home/runner/work/kivy-launcher'
#     GITHUB_PATH = '/github/file_commands/add_path_ed027c3c-3bd2-4971-b9bf-01f9090bc760'
#     GITHUB_ACTOR_ID = '102932105'
#     LC_ALL = 'en_US.UTF-8'
#     PWD = '/github/workspace'
#     GITHUB_SERVER_URL = 'https://github.com'
#     GITHUB_OUTPUT = '/github/file_commands/set_output_ed027c3c-3bd2-4971-b9bf-01f9090bc760'
#     GITHUB_EVENT_NAME = 'push'
#     INPUT_REPOSITORY_ROOT = '.'
#     GITHUB_STEP_SUMMARY = '/github/file_commands/step_summary_ed027c3c-3bd2-4971-b9bf-01f9090bc760'
#     PACKAGES_PATH = '/github/workspace/./.buildozer_global/android/packages'
#     ANDROIDSDK = '/github/workspace/./.buildozer_global/android/platform/android-sdk'
#     ANDROIDNDK = '/github/workspace/./.buildozer_global/android/platform/android-ndk-r25b'
#     ANDROIDAPI = '30'
#     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
Traceback (most recent call last):
  File "/action/entrypoint.py", line 159, in <module>
    main()
  File "/action/entrypoint.py", line 27, in main
    run_command(env["INPUT_COMMAND"])
  File "/action/entrypoint.py", line 135, in run_command
    retcode = subprocess.check_call(command, shell=True)
  File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command 'buildozer android debug' returned non-zero exit status 1.

また、Buildozer.specの requirementsは以下の通りです。

requirements = python3,kivy==master,hostpython3,android,requests,urllib3,charset-normalizer==2.1.1,idna

色々検索し、cython、pyjniusのバージョン指定をしてみましたが、状況は変わりません。

例えば以下の様に ...

requirements = python3=3.8.16,kivy==2.0.0,cython==3.0.0a11,pyjnius==1.4.2

見よう見まねでやっておりますので、知識が浅く先に進めません。
どなたかアドバイスをいただけますでしょうか?

0

1Answer

Your answer might help someone💌