I
I
Ilya1992018-05-27 19:38:08
Python
Ilya199, 2018-05-27 19:38:08

python file won't run. What is the problem?

Operating system - linux ubuntu 17.10

from kivy.app import App
from kivy.uix.button import Button

class MyFirstProgramApp(App):
  def build(self):
    return Button(
      text = 'Кнопка', 
      font_size = 30)

if __name__ == '__main__':	
  MyFirstProgramApp().run()]

Program code, actually
Traceback (most recent call last):
File "main.py", line 1, in
from kivy.app import App
File "/usr/lib/python3/dist-packages/kivy/app.py", line 319, in
from kivy.base import runTouchApp, stopTouchApp
File "/usr/lib/python3/dist-packages/kivy/base.py", line 30, in
from kivy.event import EventDispatcher
File "/usr/lib/python3/ dist-packages/kivy/event.py", line 8, in
import kivy._event
ImportError: /usr/lib/python3/dist-packages/kivy/_event.cpython-36m-x86_64-linux-gnu.so: undefined symbol : PyFPE_jbuf
is what is output when I type python main.py into the terminal
installed in this order: sudo add-apt-repository ppa:kivy-team/kivy, then sudo apt-get update, then sudo apt-get install python3-kivy. I tried everything exactly the same, only the last command sudo apt-get install python-kivy did not help

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Marat Nagayev, 2018-06-01
@nagayev

No ] is needed at the end of the last line

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question