Installing Kivy on Debian Mint

Kivy is a free development environment kivyfor building portable python apps for iOS and android, supporting Linux, Windows, and OSX.

Installation

Here’s how I installed it:

  1. Ran: sudo add-apt-repository ppa:kivy-team/kivy
  2. Ran: sudo apt-get update
  3. Ran: sudo apt-get install python-kivy
  4. When prompted whether to allow the installation to restart services, clicked Yes. In my case, only ntpd (the network time protocol daemon) was restarted.
  5. Ran: sudo apt-get install python-kivy-examples

Running the Example Programs

To run the examples:

  1. Find the examples by running: dpkg-query -L python-kivy-examples
  2. Change to the directory printed by this command. E.g. run: cd /usr/share/kivy-examples
  3. Run: cd demo/touchtracer
  4. Run: python main.py

Problems Found

If you try to install the kivy examples as documented on the kivy website (User’s Guide » Installation on Linux) by running:

sudo apt-get install kivy-examples

It fails with:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package kivy-examples

If you search for the examples with:

python -c “import pkg_resources; print(pkg_resources.resource_filename(‘kivy’, ‘../share/kivy-examples’))”

The directory found is invalid:

[INFO   ] Kivy v1.7.2
[WARNING] [Config      ] Older configuration version detected (0 instead of 9)
[WARNING] [Config      ] Upgrading configuration in progress.
/usr/lib/python2.7/dist-packages/kivy/../share/kivy-examples

jim@bifrost ~ $ cd /usr/lib/python2.7/dist-packages/kivy/../share/kivy-examples
bash: cd: /usr/lib/python2.7/dist-packages/kivy/../share/kivy-examples: No such file or directory

Advertisements

About jimbelton

I'm a software developer, and a writer of both fiction and non-fiction, and I blog about movies, books, and philosophy. My interest in religious philosophy and the search for the truth inspires much of my writing.
This entry was posted in programming and tagged , , , , , . Bookmark the permalink.

Leave a Comment

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s