Skip to content
Advertisement

Error When Trying to Run Simple Kivy Program (Windows)

When trying to run the following program on my computer:

# First import an App class from kivy
from kivy.app import App
# Define App subclass
class TutorialApp(App):
    pass
if __name__=="__main__":
    TutorialApp().run()

After I added what was suggested( The last two lines ), I get two syntax errors, the first telling me to delete the colon and the second telling me to remove the indent, and then this:

[INFO              ] Kivy v1.8.0
[INFO              ] [Logger      ] Record log in C:Usersrabbitrabbit.kivy       logskivy_14-08-15_5.txt
[INFO              ] [Factory     ] 157 symbols loaded
[DEBUG             ] [Cache       ] register <kv.lang> with limit=None, timeout=Nones
[DEBUG             ] [Cache       ] register <kv.image> with limit=None, timeout=60s
[DEBUG             ] [Cache       ] register <kv.atlas> with limit=None, timeout=Nones
[INFO              ] [Image       ] Providers: img_tex, img_dds, img_gif (img_pygame,  img_pil ignored)
[DEBUG             ] [Cache       ] register <kv.texture> with limit=1000, timeout=60s
[DEBUG             ] [Cache       ] register <kv.shader> with limit=1000, timeout=3600s
[DEBUG             ] [App         ] Loading kv <C:Python33tutorial.kv>
[DEBUG             ] [App         ] kv <C:Python33tutorial.kv> not found
[DEBUG             ] [Window      ] Ignored <egl_rpi> (import error)
[DEBUG             ] [Window      ] Ignored <pygame> (import error)
[WARNING           ] [WinPygame   ] SDL wrapper failed to import!
[DEBUG             ] [Window      ] Ignored <sdl> (import error)
[DEBUG             ] [Window      ] Ignored <x11> (import error)
[CRITICAL          ] [Window      ] Unable to find any valuable Window provider at all!
[CRITICAL          ] [App         ] Unable to get a Window, abort.

According to the tutorial I’m following( http://inclem.net/2014/01/09/kivy-crash-course/1_making-a-simple-app/ ), the program should be able to run without problems. I’ve installed Kivy and Python 3.3.

Advertisement

Answer

Looks like you’re missing an install of pygame – it’s not pulled in as a dependency by the Kivy install so you need to install it separately — see http://kivy.org/docs/installation/troubleshooting-macosx.html#unable-to-find-any-valuable-window-provider-error

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement