Skip to content

Install and Setup TileStache

26. October 2012

Today I made some first tests with TileStache and I have to document the installation, to be able to do it again šŸ˜‰ Especially, because I had some problems with the Python Imagine Library (PIL)!

Currently I am working with Ubuntu 12.04 64bit

First install dependencies:

sudo pip install -U modestmaps simplejson werkzeug

–> in the original instructions was also stated to install PIL but I had some problems with that…it was not able to load the zip-encoder, raising this error: raise IOError(“encoder %s not available” % encoder_name)
IOError: encoder zip not available

Thus, I followed these instructions and did the following:

sudo pip uninstall PIL

(optional, when already installed)

sudo apt-get install libjpeg8 libjpeg62-dev libfreetype6 libfreetype6-dev
sudo ln -s /usr/lib/x86_64-linux-gnu/ /usr/lib
sudo ln -s /usr/lib/x86_64-linux-gnu/ /usr/lib
sudo ln -s /usr/lib/x86_64-linux-gnu/ /usr/lib
sudo pip install -U PIL

For my system are now all dependencies correctly installed as Mapnik is already set up!

Now, download the source code:

cd ~/Software
git clone
cd TileStache

Finally, install TileStache globally:

sudo python install



…and Test it:


Very helpfull is also the zoom Example in the directory ‘examples’ as it shows how to define configuration files etc.!

cd examples/zoom_example -c zoom_example.cfg -i -p 7890

From → tutorial

Leave a Comment

Leave a Reply

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

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

Google photo

You are commenting using your Google 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 )

Connecting to %s

%d bloggers like this: