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

<tfoot id='sawcI'></tfoot>

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

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

      Kivy你好世界不工作

      时间:2023-06-07

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

            <small id='2TdYR'></small><noframes id='2TdYR'>

                <tbody id='2TdYR'></tbody>

                本文介绍了Kivy你好世界不工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我正在尝试让 kivy 在我的 Ubuntu 系统上运行.我按照他们的 wesbite 中的说明进行操作.

                I am trying to make kivy work on my Ubuntu system. I followed the instructions from their wesbite.

                但是当我尝试从他们的网站运行以下 hello world 代码时:

                But when I try to run the following hello world code from their website:

                import kivy
                kivy.require('1.5.1') # replace with your current kivy version !
                
                from kivy.app import App
                from kivy.uix.button import Button
                
                class MyApp(App):
                    def build(self):
                        return Button(text='Hello World')
                
                if __name__ == '__main__':
                    MyApp().run()
                

                我收到以下错误:

                [INFO   ] Kivy v1.5.1
                [INFO   ] [Logger      ] Record log in /home/malik/.kivy/logs/kivy_13-03-08_6.txt
                [INFO   ] [Factory     ] 137 symbols loaded
                [DEBUG  ] [Cache       ] register <kv.lang> with limit=None, timeout=Nones
                [DEBUG  ] [Cache       ] register <kv.image> with limit=None, timeout=60s
                [DEBUG  ] [Cache       ] register <kv.atlas> with limit=None, timeout=Nones
                [DEBUG  ] [Cache       ] register <kv.texture> with limit=1000, timeout=60s
                [DEBUG  ] [Cache       ] register <kv.shader> with limit=1000, timeout=3600s
                [INFO   ] [Text        ] using <pygame> as text provider
                [DEBUG  ] [App         ] Loading kv <./my.kv>
                [DEBUG  ] [App         ] kv <./my.kv> not found
                [INFO   ] [Window      ] using <pygame> as window provider
                  X Error of failed request:  BadRequest (invalid request code or no such operation)
                    Major opcode of failed request:  138 (ATIFGLEXTENSION)
                    Minor opcode of failed request:  66 ()
                    Serial number of failed request:  14
                    Current serial number in output stream:  14
                

                跟我的显卡有关系吗?我正在使用 ATI Mobility Radeon HD 5400 显卡.

                Has it something to do with my graphics card? I am using ATI Mobility Radeon HD 5400 graphics card.

                推荐答案

                终于通过将 Ubuntu 更新到 12.10 让它工作了 似乎问题出在图形驱动程序上.现在该示例按预期工作.谢谢琼杰和qua-non.

                Finally got it working by updating Ubuntu to 12.10 Seems like the issue was the graphics driver. Now the example is working as expected. Thanks Qiongjie and qua-non.

                这篇关于Kivy你好世界不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                上一篇:在使用 PyInstaller --onefile 打包 kivy 时包含 .kv/.json 文件? 下一篇:在 Kivy for Python 中按下按钮时更新标签的文本

                相关文章

                <tfoot id='Hl7dB'></tfoot>
                  <bdo id='Hl7dB'></bdo><ul id='Hl7dB'></ul>
              1. <small id='Hl7dB'></small><noframes id='Hl7dB'>

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

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