Error Installing on python3.11

65 views
Skip to first unread message

Hans Ototronic

unread,
Oct 25, 2022, 6:20:51 PM10/25/22
to Kivy development
warning: kivy/core/window/_window_sdl2.pyx:430:14: cpdef variables will not be supported in Cython 3; currently they are no different from cdef variables
      cythoning kivy/core/image/_img_sdl2.pyx to kivy/core/image/_img_sdl2.c
      cythoning kivy/core/text/_text_sdl2.pyx to kivy/core/text/_text_sdl2.c
      cythoning kivy/core/audio/audio_sdl2.pyx to kivy/core/audio/audio_sdl2.c
      cythoning kivy/core/clipboard/_clipboard_sdl2.pyx to kivy/core/clipboard/_clipboard_sdl2.c
      cythoning kivy/core/text/_text_pango.pyx to kivy/core/text/_text_pango.c
      cythoning kivy/lib/gstplayer/_gstplayer.pyx to kivy/lib/gstplayer/_gstplayer.c
      building 'kivy._event' extension
      creating build/temp.linux-x86_64-cpython-311
      building 'kivy.weakproxy' extension
      building 'kivy.properties' extension
      creating build/temp.linux-x86_64-cpython-311
      creating build/temp.linux-x86_64-cpython-311
      building 'kivy._clock' extension
      creating build/temp.linux-x86_64-cpython-311
      creating build/temp.linux-x86_64-cpython-311/kivy
      creating build/temp.linux-x86_64-cpython-311/kivy
      creating build/temp.linux-x86_64-cpython-311/kivy
      creating build/temp.linux-x86_64-cpython-311/kivy
      x86_64-linux-gnu-gcc -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Ikivy/include -I/home/sooko/venv311/include -I/usr/include/python3.11 -c kivy/properties.c -o build/temp.linux-x86_64-cpython-311/kivy/properties.o
      x86_64-linux-gnu-gcc -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/home/sooko/venv311/include -I/usr/include/python3.11 -c kivy/weakproxy.c -o build/temp.linux-x86_64-cpython-311/kivy/weakproxy.o
      x86_64-linux-gnu-gcc -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Ikivy/include -I/home/sooko/venv311/include -I/usr/include/python3.11 -c kivy/_event.c -o build/temp.linux-x86_64-cpython-311/kivy/_event.o
      x86_64-linux-gnu-gcc -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/home/sooko/venv311/include -I/usr/include/python3.11 -c kivy/_clock.c -o build/temp.linux-x86_64-cpython-311/kivy/_clock.o
      kivy/weakproxy.c: In function ‘__Pyx_AddTraceback’:
      kivy/weakproxy.c:438:62: error: invalid use of incomplete typedef ‘PyFrameObject’ {aka ‘struct _frame’}
        438 |   #define __Pyx_PyFrame_SetLineNumber(frame, lineno)  (frame)->f_lineno = (lineno)
            |                                                              ^~
      kivy/weakproxy.c:12479:5: note: in expansion of macro ‘__Pyx_PyFrame_SetLineNumber’
      12479 |     __Pyx_PyFrame_SetLineNumber(py_frame, py_line);
            |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      kivy/_event.c: In function ‘__Pyx_PyBytes_Equals’:
      kivy/_event.c:19716:13: warning: ‘ob_shash’ is deprecated [-Wdeprecated-declarations]
      19716 |             hash1 = ((PyBytesObject*)s1)->ob_shash;
            |             ^~~~~
      In file included from /usr/include/python3.11/bytesobject.h:62,
                       from /usr/include/python3.11/Python.h:50,
                       from kivy/_event.c:6:
      /usr/include/python3.11/cpython/bytesobject.h:7:35: note: declared here
          7 |     Py_DEPRECATED(3.11) Py_hash_t ob_shash;
            |                                   ^~~~~~~~
      kivy/_event.c:19717:13: warning: ‘ob_shash’ is deprecated [-Wdeprecated-declarations]

Sandip Nath

unread,
Feb 18, 2023, 9:45:20 PM2/18/23
to Kivy development
Kivy doesn't support the latest version of Python; i.e. 3.11. Kivy 2.0 can be used with 3.7>=Python<=3.10
Reply all
Reply to author
Forward
0 new messages