• <bdo id='ewpPR'></bdo><ul id='ewpPR'></ul>

    <small id='ewpPR'></small><noframes id='ewpPR'>

    <tfoot id='ewpPR'></tfoot>

        <legend id='ewpPR'><style id='ewpPR'><dir id='ewpPR'><q id='ewpPR'></q></dir></style></legend>
      1. <i id='ewpPR'><tr id='ewpPR'><dt id='ewpPR'><q id='ewpPR'><span id='ewpPR'><b id='ewpPR'><form id='ewpPR'><ins id='ewpPR'></ins><ul id='ewpPR'></ul><sub id='ewpPR'></sub></form><legend id='ewpPR'></legend><bdo id='ewpPR'><pre id='ewpPR'><center id='ewpPR'></center></pre></bdo></b><th id='ewpPR'></th></span></q></dt></tr></i><div id='ewpPR'><tfoot id='ewpPR'></tfoot><dl id='ewpPR'><fieldset id='ewpPR'></fieldset></dl></div>
      2. Kivy - windows - 根本找不到任何有价值的窗口提供程序

        时间:2023-06-06
        <legend id='Nk3lv'><style id='Nk3lv'><dir id='Nk3lv'><q id='Nk3lv'></q></dir></style></legend>

          <small id='Nk3lv'></small><noframes id='Nk3lv'>

              <tbody id='Nk3lv'></tbody>

              <bdo id='Nk3lv'></bdo><ul id='Nk3lv'></ul>
              <i id='Nk3lv'><tr id='Nk3lv'><dt id='Nk3lv'><q id='Nk3lv'><span id='Nk3lv'><b id='Nk3lv'><form id='Nk3lv'><ins id='Nk3lv'></ins><ul id='Nk3lv'></ul><sub id='Nk3lv'></sub></form><legend id='Nk3lv'></legend><bdo id='Nk3lv'><pre id='Nk3lv'><center id='Nk3lv'></center></pre></bdo></b><th id='Nk3lv'></th></span></q></dt></tr></i><div id='Nk3lv'><tfoot id='Nk3lv'></tfoot><dl id='Nk3lv'><fieldset id='Nk3lv'></fieldset></dl></div>

              1. <tfoot id='Nk3lv'></tfoot>

                  本文介绍了Kivy - windows - 根本找不到任何有价值的窗口提供程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我从 kivy 开始.这是我正在运行的示例代码.

                  I am starting with kivy. here is the sample code I am running.

                  import kivy
                  from kivy.app import App
                  from kivy.uix.button import Label
                  kivy.require('1.9.0')
                  
                  
                  class HelloApp(App):
                      def build(self):
                          return Label(text='Hello World!')
                  
                  if __name__ == "__main__":
                      HelloApp().run()
                  

                  这是我得到的回溯:

                  [INFO              ] [Logger      ] Record log in C:Usersmonac.kivylogskivy_16-11-23_9.txt
                  [INFO              ] [Kivy        ] v1.9.1
                  [INFO              ] [Python      ] v3.4.4 (v3.4.4:737efcadf5a6, Dec 20 2015, 20:20:57) [MSC v.1600 64 bit (AMD64)]
                  [INFO              ] [Factory     ] 179 symbols loaded
                  [INFO              ] [Image       ] Providers: img_tex, img_dds, img_gif, img_sdl2 (img_pil, img_ffpyplayer ignored)
                  [INFO              ] [Text        ] Provider: sdl2
                  [INFO              ] [OSC         ] using <thread> for socket
                  [INFO              ] [Window      ] Provider: sdl2
                  [INFO              ] [GL          ] GLEW initialization succeeded
                  [INFO              ] [GL          ] OpenGL version <b'4.5.0 NVIDIA 373.06'>
                  [INFO              ] [GL          ] OpenGL vendor <b'NVIDIA Corporation'>
                  [INFO              ] [GL          ] OpenGL renderer <b'GeForce GTX 960M/PCIe/SSE2'>
                  [INFO              ] [GL          ] OpenGL parsed version: 4, 5
                  [INFO              ] [GL          ] Shading version <b'4.50 NVIDIA'>
                  [INFO              ] [GL          ] Texture max size <16384>
                  [INFO              ] [GL          ] Texture max units <32>
                  [WARNING           ] [Image       ] Unable to load image <C:Python34libsite-packageskivydataglsldefault.png>
                  [CRITICAL          ] [Window      ] Unable to find any valuable Window provider at all!
                  sdl2 - Exception: SDL2: Unable to load image
                    File "C:Python34libsite-packageskivycore\__init__.py", line 67, in core_select_lib
                      cls = cls()
                    File "C:Python34libsite-packageskivycorewindowwindow_sdl2.py", line 138, in __init__
                      super(WindowSDL, self).__init__()
                    File "C:Python34libsite-packageskivycorewindow\__init__.py", line 722, in __init__
                      self.create_window()
                    File "C:Python34libsite-packageskivycorewindowwindow_sdl2.py", line 255, in create_window
                      super(WindowSDL, self).create_window()
                    File "C:Python34libsite-packageskivycorewindow\__init__.py", line 897, in create_window
                      self.render_context = RenderContext()
                    File "kivygraphicsinstructions.pyx", line 756, in kivy.graphics.instructions.RenderContext.__init__ (kivygraphicsinstructions.c:10729)
                    File "C:Python34libsite-packageskivycoreimage\__init__.py", line 512, in __init__
                      self.filename = arg
                    File "C:Python34libsite-packageskivycoreimage\__init__.py", line 700, in _set_filename
                      mipmap=self._mipmap, nocache=self._nocache)
                    File "C:Python34libsite-packageskivycoreimage\__init__.py", line 430, in load
                      im = loader(filename, **kwargs)
                    File "C:Python34libsite-packageskivycoreimage\__init__.py", line 198, in __init__
                      self._data = self.load(filename)
                    File "C:Python34libsite-packageskivycoreimageimg_sdl2.py", line 42, in load
                      raise Exception('SDL2: Unable to load image')
                  
                  [CRITICAL          ] [App         ] Unable to get a Window, abort.
                   Exception ignored in: 'kivy.properties.dpi2px'
                   Traceback (most recent call last):
                     File "C:Python34libsite-packageskivyutils.py", line 513, in __get__
                       retval = self.func(inst)
                     File "C:Python34libsite-packageskivymetrics.py", line 175, in dpi
                       EventLoop.ensure_window()
                     File "C:Python34libsite-packageskivyase.py", line 126, in ensure_window
                       sys.exit(1)
                   SystemExit: 1
                  [CRITICAL          ] [App         ] Unable to get a Window, abort.
                  

                  我在 Windows 10 64 位上运行.我已经安装了除了 gstreamer 之外的所有依赖项,目前我不需要.

                  I am running on windows 10 64bits. I have installed all the dependencies except gstreamer which I won't need at the moment.

                  我也不确定为什么会收到此错误:

                  I am also not sure why I am getting this error:

                  [WARNING           ] [Image       ] Unable to load image <C:Python34libsite-packageskivydataglsldefault.png>
                  

                  文件存在,我以管理员身份运行代码以避免访问权限问题.

                  The file exists and I am running my code as admin to avoid access rights problems.

                  谢谢.

                  推荐答案

                  您必须安装 Kivy 的依赖项.

                  You have to install the dependencies for Kivy.

                  按照此处

                  python -m pip install docutils pygments pypiwin32 kivy.deps.sdl2 kivy.deps.glew
                  

                  会做你需要的.

                  这篇关于Kivy - windows - 根本找不到任何有价值的窗口提供程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:出现错误:没有名为“calendar_ui"的模块.即使 KivyCalendar 已在 Windows 10 下一篇:Python TypeError:格式字符串的参数不足

                  相关文章

                  <tfoot id='QmZMO'></tfoot>

                    <legend id='QmZMO'><style id='QmZMO'><dir id='QmZMO'><q id='QmZMO'></q></dir></style></legend>
                        <bdo id='QmZMO'></bdo><ul id='QmZMO'></ul>
                    1. <small id='QmZMO'></small><noframes id='QmZMO'>

                    2. <i id='QmZMO'><tr id='QmZMO'><dt id='QmZMO'><q id='QmZMO'><span id='QmZMO'><b id='QmZMO'><form id='QmZMO'><ins id='QmZMO'></ins><ul id='QmZMO'></ul><sub id='QmZMO'></sub></form><legend id='QmZMO'></legend><bdo id='QmZMO'><pre id='QmZMO'><center id='QmZMO'></center></pre></bdo></b><th id='QmZMO'></th></span></q></dt></tr></i><div id='QmZMO'><tfoot id='QmZMO'></tfoot><dl id='QmZMO'><fieldset id='QmZMO'></fieldset></dl></div>