From: Darren D. <dd...@co...> - 2005-03-17 15:48:16
|
On Thursday 17 March 2005 10:05 am, Vinj Vinj wrote: > I'm getting the followign exception on fedora core3. > Any suggestions. This code works on windows: > > from matplotlib.matlab import * > File > "/usr/lib/python2.3/site-packages/matplotlib/matlab.py", > line 12, in ? > from matplotlib.pylab import * > File > "/usr/lib/python2.3/site-packages/matplotlib/pylab.py", > line 722, in ? > figimage.__doc__ = Figure.figimage.__doc__ + """ > TypeError: unsupported operand type(s) for +: > 'NoneType' and 'str' Hi Vinj, What version of MPL are you using? Have you tried to remove your site-packages/matplotlib directory, and install from a fresh tarball (or are you using rpm)? By the way, "from matplotlib.matlab import" statements are deprecated. You should start using "fom matplotlib.pylab import ..." or simply "from pylab import ..." Darren |