Results 1 to 3 of 3

Thread: Kivy easy_install problem

  1. #1
    Join Date
    Mar 2006
    Location
    Waaaaaaaaay too far north
    Beans
    217
    Distro
    Ubuntu 14.04 Trusty Tahr

    Kivy easy_install problem

    I'm having a problem installing kivy on Ubuntu 12.04. I've installed Cython as instructed and then tried...
    sudo easy_install kivy

    error:
    Code:
    [sudo] password for asdf: 
    Searching for kivy
    Reading http://pypi.python.org/simple/kivy/
    Best match: Kivy 1.2.0
    Downloading http://pypi.python.org/packages/source/K/Kivy/Kivy-1.2.0.tar.gz#md5=468da8a353c2ea4936eb92d71403c960
    Processing Kivy-1.2.0.tar.gz
    Running Kivy-1.2.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-6_dj0o/Kivy-1.2.0/egg-dist-tmp-vCKZig
    [INFO   ] Kivy v1.2.0
    WARNING: GLES 2.0 headers are not found
    Fallback to Desktop opengl headers.
    Build configuration is:
     * use_opengl_es2  =  False
     * use_glew  =  False
     * use_opengl_debug  =  False
     * use_mesagl  =  False
    Generate config.h
    Generate config.pxi
    /tmp/easy_install-6_dj0o/Kivy-1.2.0/kivy/graphics/texture.c:4:20: fatal error: Python.h: No such file or directory
    compilation terminated.
     error: Setup script exited with error: command 'gcc' failed with exit status 1
    asdf@asdf:~$
    Any ideas?
    Thanks.
    I'm using ubuntu 12.04

  2. #2
    Join Date
    Oct 2009
    Beans
    12

    Re: Kivy easy_install problem

    I don't even know, what kivy is, but the error complaining about not finding python.h looks like you might be missing a *-dev package.
    Maybe sudo apt-get install python-dev will help.

  3. #3

    Re: Kivy easy_install problem

    I just ran across this myself (it's still an issue). You just need to install the rest of the deps for kivy.

    Code:
    sudo apt-get install python-setuptools python-pygame python-opengl \
      python-gst0.10 python-enchant gstreamer0.10-plugins-good cython python-dev \
      build-essential libgl1-mesa-dev libgles2-mesa-dev
    Code:
    sudo pip install kivy
    http://kivy.org/docs/installation/in...on-ubuntu.html

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •