<legend id='gk9yX'><style id='gk9yX'><dir id='gk9yX'><q id='gk9yX'></q></dir></style></legend>

      <bdo id='gk9yX'></bdo><ul id='gk9yX'></ul>
    <tfoot id='gk9yX'></tfoot>

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

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

      Kivy - windows - 根本找不到任何有价值的窗口提供程

      时间:2023-10-08

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

          • <small id='MDYuR'></small><noframes id='MDYuR'>

            <tfoot id='MDYuR'></tfoot>

            • <bdo id='MDYuR'></bdo><ul id='MDYuR'></ul>
                本文介绍了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 - 根本找不到任何有价值的窗口提供程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

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

                相关文章

                最新文章

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

                  <tfoot id='f9POM'></tfoot>
                1. <legend id='f9POM'><style id='f9POM'><dir id='f9POM'><q id='f9POM'></q></dir></style></legend>

                    <bdo id='f9POM'></bdo><ul id='f9POM'></ul>

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