我想讓我的Ubuntu系統上的kivy工作。我遵循其wesbite的指示。Kivy hello world not working
但是,當我試圖從他們的網站運行下面的hello world代碼:
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顯卡。
你可以嘗試更新到最新的GPU驅動程序,如果你還沒有使用它。 – 2013-03-08 08:23:43
我使用的是Ubuntu 12.04 LTS,無法使GPU(ATI 5400系列)驅動程序正常工作。這可能是問題的原因嗎? – akash 2013-03-09 11:58:36
是的,Kivy需要一個支持至少OpenGL ES 2.0的驅動程序。 – 2013-03-09 14:04:32