jnius/jnius_utils.pxi:323:37: undeclared name not builtin: long

217 views
Skip to first unread message

net...@virgilio.it

unread,
Aug 18, 2025, 8:42:47 PMAug 18
to Kivy users support
Hello at all.
I have never had problems buildings app with buildozer, but since this morning I am having this error:
"""""""""
   RAN: /usr/bin/python3 '-cimport sys; from Cython.Compiler.Main import setuptools_main; sys.exit(setuptools_main());' ./jnius/jnius.pyx

  STDOUT:
warning: jnius/jnius.pyx:102:0: The 'IF' statement is deprecated and will be removed in a future Cython version. Consider using runtime conditions or C macros instead. See https://github.com/cython/cython/issues/4310

Error compiling Cython file:
------------------------------------------------------------
...
            score += 10
            continue

        if r == 'S' or r == 'I':
            if isinstance(arg, int) or (
                    (isinstance(arg, long) and arg < 2147483648)):
                                     ^
------------------------------------------------------------

jnius/jnius_utils.pxi:323:37: undeclared name not builtin: long

""""""""""

It seems that it is still the declaration of an integer varbiable as LONG instead of INT inside the jnius library. It is deprecated in python 3. Right? How can I solve?

Fabian Joseph

unread,
Dec 14, 2025, 11:40:27 PM (9 days ago) Dec 14
to Kivy users support
I had this issue almost gave up, but i found the cause it should be the same for you,
You must have missed this step during your initial install

Note run this first
`rm -rf ./.buildozer && rm -rf venv/`

```sh
pip3 install --user --upgrade Cython==0.29.33 virtualenv  # the --user should be removed if you do this in a venv
```
Reply all
Reply to author
Forward
0 new messages