>    File"/usr/lib/pymodules/python2.6/mercurial/ui.py",line232,inwrite
>      sys.stdout.write(str(a))
> IOError:sys.stdout access restricted by mod_wsgi

Seems your second problem is a circular import problem in matplotlib
here is a reference 
https://groups.google.com/forum/#!topic/modwsgi/97bnQk9ojtY

And here goes gist of it,
Try adding as first import, before other matplotlib imports: 
  import matplotlib 
  import matplotlib.cbook 

Reply via email to