sdl2 - Exception: SDL2: Unable to load image

and i went to kivy IRC for help. two guys helped me out. i did:

python -m pip uninstall pillow
python -m pip install --use-wheel pillow

and after that i would run my app, but with some modification and it is working now

import os
os.environ['KIVY_IMAGE'] = 'pil,sdl2'
from kivy.app import App
from kivy.uix.button import Button
class TestApp(App):
    def build(self):
        return Button(text='Hello World')
TestApp().run()

One more time thank to quanon and kived from the IRC channel. They are the best :)

https://github.com/kivy/kivy/issues/4115

——————————————————————
2017.02.26
本根原因为gstreamer的问题。。翻个墙把包搞定就搞定问题了

你可能感兴趣的:(sdl2 - Exception: SDL2: Unable to load image)