I am trying to get the sample heatmap.py running from: http://jjguy.com/heatmap/
#image.py import heatmap import random if __name__ == \"__main__\":
Even though my PIL was up to date, I resolved this on Ubuntu 12.04 with:
pip uninstall PIL pip install PIL