Tuesday, July 14, 2009

Install PIL locally for Google App Engine

Google has introduced an imaging API for Google Application Engine for Python. If your application is using imaging you will need to install the PIL (Python Imaging Library) for testing it within the development server.

If you do not install PIL If you will see the following message output when you run dev_appserver.py:

WARNING 2009-07-15 02:52:32,562 dev_appserver.py:3296] Could not initialize images API; you are likely missing the Python "PIL" module. ImportError: No module named _imaging

Installation is as simple as installing it from the PIL website (Windows) or pythonmac.org or running an APT command on linux. Google Code has detailed instructions if you need them.


  1. For OS X there is a universal build of PIL at pythonmac.org. http://pythonmac.org/packages/py25-fat/index.html