Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SystemExit: 1 Error on using kivy

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

like image 720
Debobrata Avatar asked Jun 30 '26 20:06

Debobrata


1 Answers

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!

like image 176
Fernando Avatar answered Jul 06 '26 15:07

Fernando