美文网首页
sdl2 - Exception: SDL2: Unable t

sdl2 - Exception: SDL2: Unable t

作者: Jeanswear | 来源:发表于2016-12-13 21:22 被阅读0次

    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 t

          本文链接:https://www.haomeiwen.com/subject/livbmttx.html