error

44 views
Skip to first unread message

Debesh Mohanty

unread,
Apr 30, 2015, 2:45:29 PM4/30/15
to kivy-...@googlegroups.com
I am a begginer to kivy....

I wrote a hello world program in kivy...

from kivy.app import App

from kivy.uix.label import Label

class test(App):
        def build(self):
                return Label(text="hello world")

if __name__=="__main__":
        test().run()


This shows me error

[INFO   ] Kivy v1.8.0
[INFO   ] [Logger      ] Record log in /home/debesh/.kivy/logs/kivy_15-05-01_0.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_pil, img_gif (img_pygame ignored)
[DEBUG  ] [Cache       ] register <kv.texture> with limit=1000, timeout=60s
[DEBUG  ] [Cache       ] register <kv.shader> with limit=1000, timeout=3600s
[DEBUG  ] [Text        ] Ignored <pygame> (import error)
[DEBUG  ] [Text        ] Ignored <sdlttf> (import error)
[INFO   ] [Text        ] Provider: pil(['text_pygame', 'text_sdlttf'] ignored)
[DEBUG  ] [App         ] Loading kv <./test.kv>
[DEBUG  ] [App         ] kv <./test.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.
 Exception ignored in: 'kivy.properties.dpi2px'
 Traceback (most recent call last):
   File "/usr/lib/python3/dist-packages/kivy/utils.py", line 356, in __get__
     retval = self.func(inst)
   File "/usr/lib/python3/dist-packages/kivy/metrics.py", line 169, in dpi
     EventLoop.ensure_window()
   File "/usr/lib/python3/dist-packages/kivy/base.py", line 125, in ensure_window
     sys.exit(1)
 SystemExit: 1
[CRITICAL] [App         ] Unable to get a Window, abort.


Please any1 help me


Rafael Gottsfritz

unread,
May 5, 2015, 6:31:26 AM5/5/15
to kivy-...@googlegroups.com
Hi Debesh,

From your error log it's possible to see a lot of import errors like pygame, sdlttf, etc. So please check if you have all the requirements to run kivy.


Another thing are you using kivy 1.8.
Reply all
Reply to author
Forward
0 new messages