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的问题。。翻个墙把包搞定就搞定问题了

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容