Tôi đang cố gắng thực hiện công việc kivy trên hệ thống Ubuntu của mình. Tôi làm theo hướng dẫn từ wesbite của họ.Kivy xin chào thế giới không hoạt động
Nhưng khi tôi cố gắng chạy đoạn mã sau hello world từ trang web của họ:
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()
tôi nhận được lỗi sau:
[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
Có điều gì đó để làm với card đồ họa của tôi không? Tôi đang sử dụng card đồ họa ATI Mobility Radeon HD 5400.
bạn có thể thử cập nhật lên trình điều khiển mới nhất cho GPU của mình không, nếu bạn chưa sử dụng. –
Tôi đang sử dụng ubuntu 12.04 LTS và không thể tải trình điều khiển GPU (ATI 5400 series) hoạt động. Đây có phải là nguyên nhân của vấn đề không? – akash
Có, Kivy cần một trình điều khiển hỗ trợ ít nhất OpenGL ES 2.0. –