I have the kivy version 1.10.0 and python version 3.6.1. When I am running the very first example from https://media.readthedocs.org/pdf/kivy/latest/kivy.pdf I am getting an error.
Here is my code
from kivy.app import App
from kivy.uix.label import Label
class MyApp(App):
def build(self):
return Label(text='Hello world')
if __name__ == '__main__':
MyApp().run()$
This is the error that i am getting.
[CRITICAL] [App ] Unable to get a Window, abort.
An exception has occurred, use %tb to see the full traceback.
SystemExit: 1
I just had the same issue. I was able to fix it by running the following commands:
py -m pip install --upgrade pip wheel setuptools
py -m pip install docutils pygments pypiwin32 kivy.deps.sdl2 kivy.deps.glew
py -m pip install kivy.deps.gstreamer
good luck!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With