(Windows7) First attempt and error in launching Python app with kivy

60 views
Skip to first unread message

Giovanni Bucci

unread,
Mar 30, 2018, 4:55:42 AM3/30/18
to Kivy users support
Hi All,
I have tried to execute this simple python app in Windows 7 (from command prompt: python TestApp.py)

from kivy.app import App
from kivy.uix.button import Button

class TestApp(App):
    def build(self):
        return Button(text='Hello World')

TestApp().run()

The output of the execution is the following.

[INFO   ] [Logger      ] Record log in C:\Users\John\.kivy\logs\kivy_18-03-30_3.txt
[INFO   ] [Kivy        ] v1.10.1.dev0, git-5f62b6b, 20180103
[INFO   ] [Python      ] v3.4.4 (v3.4.4:737efcadf5a6, Dec 20 2015, 20:20:57) [MSC v.1600 64 bit (AMD64)]
[INFO   ] [Factory     ] 194 symbols loaded
[INFO   ] [Image       ] Providers: img_tex, img_dds, img_pil, img_gif (img_sdl2, img_ffpyplayer ignored)
[INFO   ] [Text        ] Provider: pil(['text_sdl2'] ignored)
[CRITICAL] [Window      ] Unable to find any valuable Window provider.
sdl2 - ImportError: DLL load failed: The specified module could not be found.
  File "C:\Python34\lib\site-packages\kivy\core\__init__.py", line 59, in core_select_lib
    fromlist=[modulename], level=0)
  File "C:\Python34\lib\site-packages\kivy\core\window\window_sdl2.py", line 26, in <module>
    from kivy.core.window._window_sdl2 import _WindowSDL2Storage
[CRITICAL] [App         ] Unable to get a Window, abort.

Any help will be greatly appreciated.
Thanks in advance for your kind support.
Regards,

     Giovanni

Daniel Lim

unread,
Mar 30, 2018, 5:59:17 PM3/30/18
to Kivy users support
Are you running the Kivy app from PyCharm?

Giovanni Bucci

unread,
Mar 31, 2018, 2:46:53 PM3/31/18
to Kivy users support
Hi Daniel,
No I have executed the app in dos window.

   Giovanni

ZenCODE

unread,
Apr 1, 2018, 6:58:54 AM4/1/18
to Kivy users support
The other post of your produced an error that required upgrading to python 3.5, and this is 3.4. If you still experience this error using 3.5, please re-post.

Thanks
Reply all
Reply to author
Forward
0 new messages