Reputation: 1
wanted to try out kivy, so I installed it and followed the Pong game code on the kivy tutorial. However, every time I run the programme, it says "Python has stopped working".. Any ideas what may be the problem?
Tried using different versions of Python (3.7 and 2.7), but it always crashes whenever I run the code. I simply used the code provided in the Pong game tutorial on the kivy site:
from kivy.app import App
from kivy.uix.widget import Widget
class PongGame(Widget):
pass
class PongApp(App):
def build(self):
return PongGame()
if __name__ == '__main__':
PongApp().run()
Any help would be greatly appreciated!
When I run:
[INFO ] [Logger ] Record log in C:\Users\HY\.kivy\logs\kivy_19-05-24_7.txt
[INFO ] [Kivy ] v1.10.1
[INFO ] [Python ] v3.7.1 (default, Dec 10 2018, 22:54:23) [MSC v.1915 64 bit (AMD64)]
[INFO ] [Factory ] 194 symbols loaded
[INFO ] [Image ] Providers: img_tex, img_dds, img_sdl2, img_pil, img_gif (img_ffpyplayer ignored)
[INFO ] [Window ] Provider: sdl2
[INFO ] [GL ] Using the "OpenGL" graphics system
[INFO ] [GL ] GLEW initialization succeeded
[INFO ] [GL ] Backend used <glew>
[INFO ] [GL ] OpenGL version <b'4.5.0 - Build 22.20.16.4749'>
[INFO ] [GL ] OpenGL vendor <b'Intel'>
[INFO ] [GL ] OpenGL renderer <b'Intel(R) UHD Graphics 620'>
[INFO ] [GL ] OpenGL parsed version: 4, 5
[INFO ] [GL ] Shading version <b'4.50 - Build 22.20.16.4749'>
[INFO ] [GL ] Texture max size <16384>
[INFO ] [GL ] Texture max units <32>
[INFO ] [Window ] auto add sdl2 input provider
[INFO ] [Window ] virtual keyboard not allowed, single mode, not docked
[INFO ] [Base ] Start application main loop
Upvotes: 0
Views: 116
Reputation: 43
Try this in your terminal:
pip install pipwin
then type this
pipwin install kivy
Upvotes: 1