Kivy应用程序没有正确统计?无法找到任何有价值的Window提供商

时间:2017-10-01 13:46:19

标签: python debugging kivy kivy-language

您好我的kivy有些问题。虽然今晚一切正常,但现在我的应用程序不再运行了,这是ubuntu的日志:

Children < Uncle

所有其他python与kivy应用程序有同样的问题,我尝试安装所有的kivy模块,但它没有帮助。

    [INFO              ] [Logger      ] Record log in /home/phucquangho/.kivy/logs/kivy_17-10-02_0.txt
    [INFO              ] [Kivy        ] v1.9.0
    [INFO              ] [Python      ] v3.5.2 (default, Nov 17 2016, 17:05:23) 
    [GCC 5.4.0 20160609]
    [INFO              ] [Factory     ] 173 symbols loaded
    [INFO              ] [Image       ] Providers: img_tex, img_dds, img_gif, img_sdl2, img_pil (img_ffpyplayer ignored)
    [INFO              ] [OSC         ] using <multiprocessing> for socket
    [INFO              ] [Window      ] Provider: sdl2(['window_egl_rpi'] ignored)
    [CRITICAL          ] [Window      ] Unable to find any valuable Window provider at all!
    egl_rpi - ImportError: cannot import name 'bcm'
      File "/usr/lib/python3/dist-packages/kivy/core/__init__.py", line 57, in core_select_lib
        fromlist=[modulename], level=0)
      File "/usr/lib/python3/dist-packages/kivy/core/window/window_egl_rpi.py", line 12, in <module>
        from kivy.lib.vidcore_lite import bcm, egl

    sdl2 - TypeError: expected bytes, str found
      File "/usr/lib/python3/dist-packages/kivy/core/__init__.py", line 65, in core_select_lib
        cls = cls()
      File "/usr/lib/python3/dist-packages/kivy/core/window/window_sdl2.py", line 121, in __init__
        super(WindowSDL, self).__init__()
      File "/usr/lib/python3/dist-packages/kivy/core/window/__init__.py", line 616, in __init__
        self.create_window()
      File "/usr/lib/python3/dist-packages/kivy/core/window/window_sdl2.py", line 171, in create_window
        self.fullscreen, resizable, state)
      File "kivy/core/window/_window_sdl2.pyx", line 60, in kivy.core.window._window_sdl2._WindowSDL2Storage.setup_window (kivy/core/window/_window_sdl2.c:1447)

    x11 - ImportError: No module named 'kivy.core.window.window_x11'
      File "/usr/lib/python3/dist-packages/kivy/core/__init__.py", line 57, in core_select_lib
        fromlist=[modulename], level=0)

    [CRITICAL          ] [App         ] Unable to get a Window, abort.
    >>>  Unable to find any valuable Window provider 

当我在窗口上运行kivy并且不太确定它是什么时,有些不同。我试图在互联网上做所有主题,但没有得到任何好结果。所以希望有人可以帮助我。

1 个答案:

答案 0 :(得分:0)

您是否更改了设置(~/.kivy/config.ini)?似乎传递给窗口init的某些值未正确解码。这导致sdl2 init失败。