Buildozer Cythonize messages

15 views
Skip to first unread message

Henrik R.

unread,
Jul 10, 2024, 12:25:52 PM (6 days ago) Jul 10
to Kivy users support
I have added the geomag python module to my app, and thus to my buildozer.spec, so I did a:

$ buildozer appclean
$ buildozer android debug deploy run

Now it will not compile.
I get a lot of log messages like these:

[INFO]:    Cythonize kivy/graphics/cgl_backend/cgl_mock.pyx
[DEBUG]:   -> running python3 -cimport sys; from Cython.Compiler.Main import setuptools_main; sys.exit(setuptools_main()); ./kivy/graphics/cgl_backend/cgl_mock.pyx
[DEBUG]:   /mnt/4AF15A0435E762B4/mypython/GeoESP-android/newvenv/lib/python3.8/site-packages/Cython/Compiler/Main.py:381: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /mnt/4AF15A0435E762B4/mypython/GeoESP-android/.buildozer/android/platform/build-armeabi-v7a_arm64-v8a/build/other_builds/kivy/arm64-v8a__ndk_target_21/kivy/kivy/graphics/cgl_backend/cgl_mock.pyx
[DEBUG]:     tree = Parsing.p_module(s, pxd, full_module_name)
[DEBUG]:   performance hint: kivy/graphics/cgl_backend/cgl_mock.pyx:43:5: Exception check on 'mockActiveTexture' will always require the GIL to be acquired.
[DEBUG]:   Possible solutions:
[DEBUG]:   1. Declare 'mockActiveTexture' as 'noexcept' if you control the definition and you're sure you don't want the function to raise exceptions.
[DEBUG]:   2. Use an 'int' return type on 'mockActiveTexture' to allow an error code to be returned.
[DEBUG]:   performance hint: kivy/graphics/cgl_backend/cgl_mock.pyx:45:5: Exception check on 'mockAttachShader' will always require the GIL to be acquired.
[DEBUG]:   Possible solutions:
[DEBUG]:   1. Declare 'mockAttachShader' as 'noexcept' if you control the definition and you're sure you don't want the function to raise exceptions.
[DEBUG]:   2. Use an 'int' return type on 'mockAttachShader' to allow an error code to be returned.

Does anyone know what these messages mean?

Henrik R.

unread,
Jul 10, 2024, 4:08:28 PM (6 days ago) Jul 10
to Kivy users support
I upgraded to the latest version of python-for-android-master. That made the messages above disappear. So you can disregard this question!
Reply all
Reply to author
Forward
0 new messages