Хотел написать приложение, импортировал все. Builder светился красным, не обратил внимания. Но похоже именно из-за него ошибка.
from kivy.app import App
from kivy.lang import Builder
from kivy.uix.boxlayout import BoxLayout
from kivy.properties import StringProperty
KV = """
MyBL:
Label:
font_size: "30sp"
text: root.data_label
"""
class MyBL(BoxLayout):
data_label = StringProperty("Абоба")
class MyApp(App):
running = True
def build(self):
return Builder.load_string(KV)
def on_stop(self):
self.running = False
MyApp().run()
[INFO ] [Logger ] Record log in C:\Users\remez\.kivy\logs\kivy_22-12-28_6.txt
[INFO ] [deps ] Successfully imported "kivy_deps.angle" 0.3.3
[INFO ] [deps ] Successfully imported "kivy_deps.glew" 0.3.1
[INFO ] [deps ] Successfully imported "kivy_deps.sdl2" 0.5.1
[INFO ] [Kivy ] v2.2.0.dev0, git-a7c6688, 20221228
[INFO ] [Kivy ] Installed at "C:\Games\Python\Lib\site-packages\kivy\__init__.py"
[INFO ] [Python ] v3.11.0a5 (main, Feb 3 2022, 19:32:53) [MSC v.1929 64 bit (AMD64)]
[INFO ] [Python ] Interpreter at "C:\Games\Python\python.exe"
[INFO ] [Logger ] Purge log fired. Processing...
[INFO ] [Logger ] Purge finished!
Traceback (most recent call last):
File "C:\Games\Desktop App\main.py", line 1, in <module>
from kivy.app import App
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Games\Python\Lib\site-packages\kivy\app.py", line 417, in <module>
from kivy.base import runTouchApp, async_runTouchApp, stopTouchApp
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Games\Python\Lib\site-packages\kivy\base.py", line 29, in <module>
from kivy.event import EventDispatcher
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Games\Python\Lib\site-packages\kivy\event.py", line 8, in <module>
import kivy._event
^^^^^^^^^^^^^^^^^^
File "kivy\_event.pyx", line 1, in init kivy._event
ValueError: builtins.type size changed, may indicate binary incompatibility. Expected 904 from C header, got 896 from PyObject