Kivy is an Open source Python library for rapid development of applications.
Installation
Use the following on Debian Wheezy:
$ sudo apt-get install pkg-config 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 python-pip wget
Use the following on Debian Jessie:
$ sudo apt-get install pkg-config python-setuptools python-pygame python-opengl \ python-gst-1.0 python-enchant gstreamer1.0-plugins-good python-dev \ build-essential libgl1-mesa-dev libgles2-mesa-dev python-pip wget
Do not install Cython 0.21 as it does not work with Kivy 1.8. Install Cython 0.20 instead:
$ sudo pip install -I cython==0.20
Download Kivy tarball from https://kivy.org/#download.
$ wget https://pypi.python.org/packages/source/K/Kivy/Kivy-1.8.0.tar.gz $ tar xvfz Kivy-1.8.0.tar.gz && cd ./Kivy-1.8.0
Build Kivy:
$ python setup.py build_ext --inplace -f
Install Kivy:
$ sudo python setup.py install
Very Simple Usage Example
Create a file called hellp.py
with the following content:
from kivy.app import App from kivy.uix.button import Button class TestApp(App): def build(self): return Button(text='Hello World') TestApp().run()
Run it:
$ python ./hello.py
Very solid directions here! Worked great for me running Debain 7 Whezzy.
You’re welcome Aaron.
Very usefull. Thanks!
Great stuff. Worked for me. Thanks for sharing
man yo the best….also worked for me
using debian kali sana
Welcome. I’m on Kali Rolling release now, no issues.
ImportError: No module named Cython.Distutils.. I have this error.. help me please!!
Please post the versions of the OS, python-pip and Kivy that you use/try to install.
Hello .. Sorry for the delay. I use Debian 7.8 (Wheezy), python-pip 1.1-3 and Kivy 1.8.0 … The old problem was resolved using Cython 0.21 but I still have this problem when launching the command “python setup .py build_ext –inplace -f “:
Kivy / graphics / shader.pyx: 448: 63: Casting temporary Python object to non-numeric non-Python type
Building ‘kivy.graphics.shader’ extension
Gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I / usr / include / python2.7 -c kivy / graphics / shader.c -o build / temp. Linux-i686-2.7 / kivy / graphics / shader.o
Kivy / graphics / shader.c: 1: 2: error: #error Do not use this file, it is the result of a failed Cython compilation.
Error: command ‘gcc’ failed with exit status 1
I solved the problem using Kivy 1.9.0 .. Sorry for the inconvenience .. Thanks .. super tuto .. :-)
Sir thank you