From: Simon H. <sim...@jp...> - 2005-03-24 15:30:11
|
Hi, I have active python pages and regular cgi-python working with iis. However, when I try and call the script: #!d:\apps\python23\python.exe from pylab import * plot([1,2,3,4]) savefig('tmp.png') print "Content-type: text/html\n" print "<html><B>Hello world2!</B></html>" I get the error: CGI ErrorThe specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are: Traceback (most recent call last): File "D:\Inetpub\pyscripts\plot.py", line 3, in ? from pylab import * File "D:\apps\Python23\Lib\site-packages\pylab.py", line 1, in ? from matplotlib.pylab import * File "D:\apps\Python23\Lib\site-packages\matplotlib\pylab.py", line 193, in ? from axes import Axes, PolarAxes File "D:\apps\Python23\Lib\site-packages\matplotlib\axes.py", line 12, in ? from axis import XAxis, YAxis File "D:\apps\Python23\Lib\site-packages\matplotlib\axis.py", line 20, in ? from font_manager import FontProperties File "D:\apps\Python23\Lib\site-packages\matplotlib\font_manager.py", line 957, in ? fontManager = FontManager() File "D:\apps\Python23\Lib\site-packages\matplotlib\font_manager.py", line 801, in __init__ rebuild() File "D Part of the problem seems related to accessing the default font? Many thanks, Simon |