Сергей Паньков, чувак я сел недавно на эту программу а уж тут я первый день,ошибки в консоли не нахожу либо я слепой.Но допустим вот
[INFO ] [Logger ] Record log in C:\Users\1\.kivy\logs\kivy_20-11-26_32.txt
[INFO ] [deps ] Successfully imported "kivy_deps.gstreamer" 0.1.18
[INFO ] [deps ] Successfully imported "kivy_deps.angle" 0.3.0
[INFO ] [deps ] Successfully imported "kivy_deps.glew" 0.1.12
[INFO ] [deps ] Successfully imported "kivy_deps.sdl2" 0.1.23
[INFO ] [Kivy ] v1.11.1
[INFO ] [Kivy ] Installed at "D:\Python\lib\site-packages\kivy\__init__.py"
[INFO ] [Python ] v3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)]
[INFO ] [Python ] Interpreter at "D:\Python\pythonw.exe"
[INFO ] [Factory ] 184 symbols loaded
[INFO ] [Image ] Providers: img_tex, img_dds, img_sdl2, img_gif (img_pil, img_ffpyplayer ignored)
[INFO ] [Window ] Provider: sdl2
[INFO ] [GL ] Using the "OpenGL" graphics system
[INFO ] [GL ] GLEW initialization succeeded
[INFO ] [GL ] Backend used
[INFO ] [GL ] OpenGL version
[INFO ] [GL ] OpenGL vendor
[INFO ] [GL ] OpenGL renderer
[INFO ] [GL ] OpenGL parsed version: 4, 0
[INFO ] [GL ] Shading version
[INFO ] [GL ] Texture max size <16384>
[INFO ] [GL ] Texture max units <16>
[INFO ] [Window ] auto add sdl2 input provider
[INFO ] [Window ] virtual keyboard not allowed, single mode, not docked
Traceback (most recent call last):
File "D:\Python\lib\site-packages\kivy\lang\builder.py", line 249, in create_handler
return eval(value, idmap), bound_list
File "C:\Users\1\Desktop\Новая папка (3)\pong.kv", line 7, in
pos: self.centre_x - 5, 0
File "kivy\weakproxy.pyx", line 32, in kivy.weakproxy.WeakProxy.__getattr__
AttributeError: 'PongGame' object has no attribute 'centre_x'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\Python\lib\site-packages\kivy\lang\builder.py", line 920, in _build_canvas
key, value, prule, idmap, True)
File "D:\Python\lib\site-packages\kivy\lang\builder.py", line 254, in create_handler
cause=tb)
kivy.lang.builder.BuilderException: Parser: File "C:\Users\1\Desktop\Новая папка (3)\pong.kv", line 7:
...
5: Rectangle:
6: ##Бордюр
>> 7: pos: self.centre_x - 5, 0
8: size: 10, self.height
9: Label:
...
AttributeError: 'PongGame' object has no attribute 'centre_x'
File "D:\Python\lib\site-packages\kivy\lang\builder.py", line 249, in create_handler
return eval(value, idmap), bound_list
File "C:\Users\1\Desktop\Новая папка (3)\pong.kv", line 7, in
pos: self.centre_x - 5, 0
File "kivy\weakproxy.pyx", line 32, in kivy.weakproxy.WeakProxy.__getattr__
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\1\Desktop\Новая папка (3)\main.py", line 12, in
PongApp().run()
File "D:\Python\lib\site-packages\kivy\app.py", line 829, in run
root = self.build()
File "C:\Users\1\Desktop\Новая папка (3)\main.py", line 9, in build
return PongGame()
File "D:\Python\lib\site-packages\kivy\uix\widget.py", line 361, in __init__
rule_children=rule_children)
File "D:\Python\lib\site-packages\kivy\uix\widget.py", line 469, in apply_class_lang_rules
rule_children=rule_children)
File "D:\Python\lib\site-packages\kivy\lang\builder.py", line 538, in apply
rule_children=rule_children)
File "D:\Python\lib\site-packages\kivy\lang\builder.py", line 596, in _apply_rule
rule.canvas_root, rootrule)
File "D:\Python\lib\site-packages\kivy\lang\builder.py", line 926, in _build_canvas
'{}: {}'.format(e.__class__.__name__, e), cause=tb)
kivy.lang.builder.BuilderException: Parser: File "C:\Users\1\Desktop\Новая папка (3)\pong.kv", line 7:
...
5: Rectangle:
6: ##Бордюр
>> 7: pos: self.centre_x - 5, 0
8: size: 10, self.height
9: Label:
...
BuilderException: Parser: File "C:\Users\1\Desktop\Новая папка (3)\pong.kv", line 7:
...
5: Rectangle:
6: ##Бордюр
>> 7: pos: self.centre_x - 5, 0
8: size: 10, self.height
9: Label:
...
AttributeError: 'PongGame' object has no attribute 'centre_x'
File "D:\Python\lib\site-packages\kivy\lang\builder.py", line 249, in create_handler
return eval(value, idmap), bound_list
File "C:\Users\1\Desktop\Новая папка (3)\pong.kv", line 7, in
pos: self.centre_x - 5, 0
File "kivy\weakproxy.pyx", line 32, in kivy.weakproxy.WeakProxy.__getattr__
File "D:\Python\lib\site-packages\kivy\lang\builder.py", line 920, in _build_canvas
key, value, prule, idmap, True)
File "D:\Python\lib\site-packages\kivy\lang\builder.py", line 254, in create_handler
cause=tb)
Написано
Войдите на сайт
Чтобы задать вопрос и получить на него квалифицированный ответ.