python - Kivy application exits with exception SDL2: Unable to load image' -


i have installed kivy , want test simple app, simple app exits exception sdl2: unable load image'

my computer has following configuration.

windows 10 32bit python 2.7.13 kivy==1.10.0 kivy-garden==0.1.4 kivy.deps.glew==0.1.9 kivy.deps.gstreamer==0.1.12 kivy.deps.sdl2==0.1.17 

the source code of simple application follows:

import os import kivy #os.environ['kivy_image'] = 'pil,sdl2' #os.environ['kivy_window']='pil,sdl2' kivy.require('1.10.0') kivy.app import app kivy.uix.label import label class myapp(app):     def build(self):         return label(text='hello world') if __name__ == '__main__':     myapp().run() 

the output of application follows:

e:\workspace\kivy_test>python basic_test.py [info   ] [logger      ] record log in c:\users\liu\.kivy\logs\kivy_17-08-20_61.txt [info   ] [kivy        ] v1.10.0 [info   ] [python      ] v2.7.13 (v2.7.13:a06454b1afa1, dec 17 2016, 20:42:59) [msc v.1500 32 bit (intel)] [info   ] [factory     ] 194 symbols loaded [info   ] [image       ] providers: img_tex, img_dds, img_sdl2, img_pil, img_gif (img_ffpyplayer ignored) [info   ] [text        ] provider: sdl2 [info   ] [osc         ] using <thread> socket [info   ] [window      ] provider: sdl2 [info   ] [gl          ] using "opengl" graphics system [info   ] [gl          ] glew initialization succeeded [info   ] [gl          ] backend used <glew> [info   ] [gl          ] opengl version <3.3.11672 compatibility profile context> [info   ] [gl          ] opengl vendor <ati technologies inc.> [info   ] [gl          ] opengl renderer <ati mobility radeon hd 4300 series> [info   ] [gl          ] opengl parsed version: 3, 3 [info   ] [gl          ] shading version <3.30> [info   ] [gl          ] texture max size <8192> [info   ] [gl          ] texture max units <16> [info   ] [shader      ] fragment shader: <fragment shader compiled run on hardware.> [info   ] [shader      ] vertex shader: <vertex shader compiled run on hardware.> [info   ] [shader      ] program: <vertex shader(s) linked, fragment shader(s) linked.> [warning] [image       ] unable load image <c:\python27\lib\site-packages\kivy\data\glsl\default.png> [critical] [window      ] unable find valuable window provider. sdl2 - exception: sdl2: unable load image   file "c:\python27\lib\site-packages\kivy\core\__init__.py", line 67, in core_select_lib     cls = cls()   file "c:\python27\lib\site-packages\kivy\core\window\window_sdl2.py", line 140, in __init__     super(windowsdl, self).__init__()   file "c:\python27\lib\site-packages\kivy\core\window\__init__.py", line 899, in __init__     self.create_window()   file "c:\python27\lib\site-packages\kivy\core\window\window_sdl2.py", line 291, in create_window     super(windowsdl, self).create_window()   file "c:\python27\lib\site-packages\kivy\core\window\__init__.py", line 1051, in create_window     self.render_context = rendercontext()   file "kivy\graphics\instructions.pyx", line 758, in kivy.graphics.instructions.rendercontext.__init__ (kivy\graphics\instructions.c:12580)   file "c:\python27\lib\site-packages\kivy\core\image\__init__.py", line 538, in __init__     self.filename = arg   file "c:\python27\lib\site-packages\kivy\core\image\__init__.py", line 734, in _set_filename     mipmap=self._mipmap, nocache=self._nocache)   file "c:\python27\lib\site-packages\kivy\core\image\__init__.py", line 435, in load     im = loader(filename, **kwargs)   file "c:\python27\lib\site-packages\kivy\core\image\__init__.py", line 201, in __init__     self._data = self.load(filename)   file "c:\python27\lib\site-packages\kivy\core\image\img_sdl2.py", line 41, in load     raise exception('sdl2: unable load image')  [critical] [app         ] unable window, abort.  exception systemexit: 1 in 'kivy.properties.dpi2px' ignored [critical] [app         ] unable window, abort.  e:\workspace\kivy_test> 

i have uninstalled , reinstalled kivy , added c:\python27\share\gstreamer\bin, c:\python27\share\glew\bin, c:\python27\share\glew\bin environtment variable path, didn't work.


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -