gnupolt not found problem, though had configured gnuplot environment variable(means I can get gnuplot version when type in 'gnuplot --version'), So I solved this by delete the three lines, and It worked # if not getgnuplotversion(): # print 'gnuplot not found' # sys.exit(1)