Python Kivy install

Discussion in 'Linux Ubuntu' started by hiro.kaneko, Sep 1, 2014.

  1. hiro.kaneko

    hiro.kaneko New Member

    Joined:
    Jul 24, 2014
    Messages:
    12
    Likes Received:
    0
    I can not run Kivy, help me !

    I installed Kivy, the following.
    My enviroment is Linaro ubuntu 12.04 on UDOO quad.
    ---------------------------
    ubuntu@udoo:$sudo apt-get clean
    ubuntu@udoo:$sudo apt-get update
    ubuntu@udoo:$sudo apt-get upgrade
    ubuntu@udoo:$sudo apt-get install python-setuptools python-pygame python-opengl python-gst0.10 python-enchant gstreamer0.10-plugins-good python-dev build-essential libgl1-mesa-dev libgles2-mesa-dev cython
    ubuntu@udoo:$sudo apt-get install python-pip
    ubuntu@udoo:$sudo pip install --upgrade cython
    ubuntu@udoo:$sudo apt-get install git
    ubuntu@udoo:$git clone git://github.com/kivy/kivy.git
    $cd kivy
    ubuntu@udoo:kivy$python setup.py build_ext --inplace -f
    ubuntu@udoo:kivy$sudo python setup.py install
    ---------------------------

    Then, "main.py" in Desktop directory runned.
    Error message is displaied "Fatal Python error: (pygame parachute) Segmentation Fault".

    "main.py" code is the following
    --------------------------
    import kivy
    from kivy.base import EventLoop
    EventLoop.ensure_window()
    from kivy.app import App
    from kivy.uix.button import Button
    class MyApp(App):
    title="Sample App"
    def build(self):
    self.get_application_config()
    return Button(text="hello world")
    if __name__=="__main__":
    MyApp().run()
    ------------------------------

    and the kivy's log is the following.
    ------------------------------
    [INFO] Logger: Record log in /home/ubuntu/.kivy/logs/kivy_14-09-02_9.txt
    [INFO] Kivy v1.8.1-dev
    [INFO] Python: v2.7.3 (default, Apr 21 2012, 00:58:12)
    [GCC 4.6.3]
    [INFO] Factory: 169 symbols loaded
    [INFO] Image: Providers: img_tex, img_dds, img_pygame, img_gif (img_ffpyplayer, img_pil ignored)
    [INFO] Text: Provider: pygame
    [INFO] Window: Provider: pygame(['window_egl_rpi'] ignored)
    [WARNING] WinPygame: Video: failed (multisamples=2)
    [WARNING] WinPygame: trying without antialiasing
    [INFO] GL: OpenGL version <2.1 2.0.1>
    [INFO] GL: OpenGL vendor <Vivante Corporation>
    [INFO] GL: OpenGL renderer <GC2000 Graphics Engine>
    [INFO] GL: OpenGL parsed version: 2, 1
    [INFO] GL: Shading version <1.20>
    [INFO] GL: Texture max size <8192>
    [INFO] GL: Texture max units <16>
     
  2. Andrea Rovai

    Andrea Rovai Well-Known Member

    Joined:
    Oct 27, 2014
    Messages:
    1,703
    Likes Received:
    240
    Hi hiro.kaneko! Actually I haven't tested it yet, so I can't solve your problem at the moment. Have you tried in the meanwhile to look for an answer on the Kivy forum? http://kivy.org/#forum
     

Share This Page