Anybody had success with upgrading to Kivy 2.3.0?

72 views
Skip to first unread message

Anton Chivchalov

unread,
Oct 14, 2024, 5:44:38 AMOct 14
to Kivy users support
Hi, are there any special requirements or dependencies to build on Kivy version 2.3.0? I can build anything on 2.2.1, but after I change "kivy==2.2.1" to "kivy==2.3.0" in Buildozer, I get this:

Error compiling Cython file:
------------------------------------------------------------
...
    size_t(* read) ( SDL_RWops * context, void *ptr, size_t size, size_t maxnum)
    size_t(* write) (SDL_RWops * context, void *ptr,size_t size, size_t num)
    int (* close) (SDL_RWops * context)


cdef size_t rwops_bytesio_write(SDL_RWops *context, const void *ptr, size_t size, size_t num) noexcept:
                                                                                             ^
------------------------------------------------------------

kivy/core/image/_img_sdl2.pyx:17:94: Syntax error in C variable declaration


Is something wrong with this _img_sdl2.pyx that somebody can fix? Or there are any other workarounds? Of course, I did target clean, target update, distclean, appclean, built everything from scratch - nothing helps. But 2.2.1 works under all the same conditions.

Maybe Buildozer needs something else I don't know about to upgrade to 2.3.0? Anybody had success with 2.3.0?

Tomek CEDRO

unread,
Oct 14, 2024, 1:33:30 PMOct 14
to kivy-...@googlegroups.com
On Mon, Oct 14, 2024 at 11:44 AM Anton Chivchalov <ant...@gmail.com> wrote:
> Hi, are there any special requirements or dependencies to build on Kivy version 2.3.0? I can build anything on 2.2.1, but after I change "kivy==2.2.1" to "kivy==2.3.0" in Buildozer, I get this:

Works for me with 2.3.0 on Android and iOS :-)

You may want to check if android.ndk=25b. I had similar problem when
testing with ndk 27b it does not seem to be yet supported, maybe issue
needs to be open on P4A / buildozer repo?

Also provide your build host OS with version when reporting problems :-)

--
CeDeROM, SQ7MHZ, http://www.tomek.cedro.info

Robin Barrett

unread,
Oct 14, 2024, 8:12:49 PMOct 14
to kivy-...@googlegroups.com
kivy 2.3.0 seems to work ok for me. Using with  Cython 0.29.33:-
pip install cython==0.29.33


--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/34bbca2b-def8-4069-8c56-93b71cab89e1n%40googlegroups.com.

Anton Chivchalov

unread,
Oct 15, 2024, 3:12:30 AMOct 15
to Kivy users support
Ok, how interesting: after the error showed up, I just decided to try again (buildozer android debug), and this time it worked! Successfully packaged on Kivy 2.3.0. It looks like I can just ignore this error. Interesting behavior of errors, by the way.

вторник, 15 октября 2024 г. в 03:12:49 UTC+3, RDCB:
Reply all
Reply to author
Forward
0 new messages