The story
pandas, numpy, seaborn, matplotlib are installed on the system without errors. I took this code example from http://seaborn.pydata.org/example
At the beginning of the file
import matplotlib matplotlib.use('Agg')