Has anyone got matplotlib to work with IIS- 3-line script fails


I have active python pages and regular cgi-python working with iis. However, when I try and call the script:


from pylab import *


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__
  File "D

Part of the problem seems related to accessing the default font?

Many thanks, Simon