Skip to content Skip to sidebar Skip to footer

Kivy Gives 'Unable To Get A Window'

I installed kivy on my Window 7, Python 2.7. When I run the following code: import kivy from kivy.app import App from kivy.uix.label import Label class MyApp(App): def build

Solution 1:

There is an option that sdl2 can't find dlls needed to load *.png

  • Try to find libpng16-16.dll

on my PC is here: C:\Python27\share\gstreamer\bin

  • Add it to PATH

    set PATH=C:\Python27\share\gstreamer\bin;%PATH%

This is temporary solution but it works for me


Solution 2:

If you use Windows 10 then you may have two windows 10 installed on that same laptop which then has made it difficult for Python, Kivy and Kivmd to find the Windows to execute the program with so it gives an error.

That is why this commonly happens to partitioned laptops so check your laptop again to know how many windows are installed and delete one of the windows or you can also format your laptop properly to solve these issues. In my case my laptop was formatted.


Post a Comment for "Kivy Gives 'Unable To Get A Window'"