Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Kivy execution error

Tags:

python

kivy

Iam trying to run a simple sample code of Hello World which is as follows:

import kivy
kivy.require('1.8.0') # 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()

and i have saved this as hello.py which then i run by using kivy-1.8.0 which in turn gives me an error message titled Kivy Fatal Error and the rest of the description is in Chinese,Japanese or Korean language.

Is there a problem of graphics card? or Is there any other way to a Kivy application

please help.

like image 618
chanchal pardeshi Avatar asked Aug 12 '26 17:08

chanchal pardeshi


1 Answers

Please post the full terminal output from when the app is run.

I don't remember what the funny character message means (it's nonsense, not real text), but I think it indicates a too-low opengl version. The appearance of the garbled message is itself a bug that I think is fixed in kivy master.

like image 146
inclement Avatar answered Aug 15 '26 10:08

inclement



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!