Setting the WX_CONFIG environment variable before the build fixed one problem. It is now finding my matplotlibrc file.
I thought maybe it was a font corruption problem but it I use TkAgg everything works fine with my 0.87.1cvs build. So
I think maybe I have uncovered a bug in the WXAgg? I would like to help fix it but I don't have a clue of where to start.
I also tried WxAgg with the first fonts in the rc file set to the ones that come installed with matplotlib
font.serif : Bitstream Vera Serif
font.sans-serif : Bitstream Vera Sans
and it still crashes. So something is wrong. Maybe its my environment. It would be nice if someone could verify
if they get the same problem
Here is the debug output
AlBook:smithsm$ ipython -pylab
loaded rc file /Users/smithsm/.matplotlib/matplotlibrc
matplotlib version 0.87.1cvs
verbose.level debug
interactive is False
platform is darwin
loaded modules: ['IPython.Prompts', '_bisect', 'distutils', 'IPython.iplib', 'IPython.signal', 'random', 'IPython.FakeModule', 'datetime', 'matplotlib.tempfile', 'IPython.bdb', 'distutils.sysconfig', 'pytz.datetime', 'IPython.time', 'struct', 're', 'tempfile', 'pprint', 'IPython.copy_reg', 'imp', 'IPython.OInspect', 'collections', 'IPython.pydoc', 'IPython.cStringIO', 'zipimport', 'IPython.codecs', 'string', 'matplotlib.dateutil', 'IPython.imp', 'repr', 'matplotlib.__future__', 'pytz.tzinfo', 'IPython.Itpl', 'IPython.Debugger', 'new', 'distutils.re', 'IPython.excolors', 'IPython.Queue', 'IPython.os', 'resource', 'bisect', 'IPython.glob', 'signal', 'cmd', 'pydoc', 'threading', 'token', 'shlex', 'pytz.bisect', 'IPython.shlex', 'matplotlib.pytz', 'IPython.exceptions', 'IPython.new', 'dis', 'cStringIO', 'locale', 'IPython.path', 'Queue', 'IPython.types', 'atexit', 'IPython.commands', 'encodings', 'IPython.threading', 'bdb', 'IPython.ConfigLoader', 'matplotlib.warnings', 'matplotlib.sys', 'encodings.types', 'posix', 'encodings.ascii', 'math', 'IPython.platutils_dummy', 'fcntl', 'IPython.profile', 'IPython.platutils_win32', 'dateutil', 'optparse', 'UserDict', 'inspect', 'distutils.os', 'matplotlib', 'IPython.hooks', 'exceptions', 'codecs', 'getopt', 'md5', 'IPython.ColorANSI', 'commands', 'socket', 'thread', 'sre', 'IPython.StringIO', 'traceback', 'IPython.pstats', 'pkg_resources', 'itertools', 'opcode', 'pstats', 'IPython.tokenize', 'distutils.sys', 'os', 'pdb', 'IPython.traceback', '__future__', '_sre', 'IPython.Shell', '__builtin__', 'IPython', 'distutils.string', 'matplotlib.datetime', 'IPython.codeop', 'posixpath', 'popen2', 'errno', '_socket', 'binascii', 'IPython.sys', 'IPython.re', 'sre_constants', 'IPython.platutils_posix', 'IPython.PyColorize', 'matplotlib.md5', 'types', 'IPython.genutils', 'tokenize', 'IPython.pdb', 'cPickle', 'pytz.sys', 'IPython.platutils', 'IPython.macro', '_codecs', 'IPython.token', '_locale', 'IPython.keyword', 'IPython.IPython', 'IPython.string', 'pytz', 'IPython.__builtin__', 'copy', 'matplotlib.os', 'IPython.socket', 'IPython.resource', 'IPython.cmd', 'keyword', 'StringIO', 'IPython.linecache', 'IPython.__main__', 'encodings.aliases', 'fnmatch', 'sre_parse', 'IPython.ultraTB', 'IPython.tempfile', 'IPython.Release', 'IPython.OutputTrap', 'copy_reg', 'sre_compile', '_random', 'site', 'IPython.getopt', 'IPython.ipstruct', 'IPython.inspect', '__main__', 'shutil', 'IPython.Magic', 'IPython.pprint', 'strop', 'IPython.bisect', 'IPython.textwrap', 'IPython.shutil', 'encodings.codecs', 'gettext', 'IPython.Logger', 'IPython.fnmatch', 'encodings.exceptions', 'pytz.sets', 'profile', 'IPython.wildcard', 'stat', '_ssl', 'warnings', 'IPython.deep_reload', 'glob', 'sets', 'textwrap', 'sys', 'IPython.ipmaker', 'codeop', 'os.path', 'IPython.background_jobs', 'IPython.DPyGetOpt', 'IPython.cPickle', 'IPython.usage', 'matplotlib.distutils', 'distutils.errors', 'marshal', 'IPython.__future__', 'linecache', 'matplotlib.shutil', 'time', 'IPython.ipapi']
numerix numpy 0.9.5.2006
font search path ['/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/mpl-data']
trying fontname /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/mpl-data/cmtt10.ttf
trying fontname /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/mpl-data/VeraMoBd.ttf
trying fontname /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/mpl-data/VeraMoBI.ttf
trying fontname /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/mpl-data/VeraBd.ttf
trying fontname /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/mpl-data/VeraSeBd.ttf
trying fontname /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/mpl-data/VeraMono.ttf
trying fontname /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/mpl-data/cmsy10.ttf
trying fontname /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/mpl-data/cmex10.ttf
trying fontname /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/mpl-data/cmmi10.ttf
trying fontname /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/mpl-data/VeraIt.ttf
trying fontname /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/mpl-data/cmr10.ttf
trying fontname /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/mpl-data/Vera.ttf
$HOME=/Users/smithsm
CONFIGDIR=/Users/smithsm/.matplotlib
loaded ttfcache file /Users/smithsm/.matplotlib/ttffont.cache
matplotlib data path /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/mpl-data
backend WXAgg version 2.6.2.1
Python 2.4.2 (#3, Jan 8 2006, 20:33:07)
Type "copyright", "credits" or "license" for more information.
IPython 0.7.1.fix1 -- An enhanced Interactive Python.
? -> Introduction to IPython's features.
%magic -> Information about IPython's 'magic' % functions.
help -> Python's own help system.
object? -> Details about 'object'. ?object also works, ?? prints more.
Welcome to pylab, a matplotlib-based Python environment.
For more information, type 'help(pylab)'.
In [1]: plot([-2.345,-12.349])
···
---------------------------------------------------------------------------
exceptions.MemoryError Traceback (most recent call last)
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/backends/backend_wx.py in _onPaint(self, evt)
1046 self.realize()
1047 # Render to the bitmap
-> 1048 self.draw(repaint=False)
1049 # Update the display using a PaintDC
1050 self.gui_repaint(drawDC=wx.PaintDC(self))
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/backends/backend_wxagg.py in draw(self, repaint)
60 FigureCanvasAgg.draw(self)
61
---> 62 self.bitmap = _convert_agg_to_wx_bitmap(self.get_renderer(), None)
63 if repaint:
64 self.gui_repaint()
MemoryError: _wxagg.convert_agg_to_wx_bitmap(): could not create the wx.Bitmap
---------------------------------------------------------------------------
exceptions.MemoryError Traceback (most recent call last)
/Install/Python/MacPython/Python2.4.2/MatPlotLib/examples/<ipython
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/pylab.py in plot(*args, **kwargs)
2122 def plot(*args, **kwargs):
2123 # allow callers to override the hold state by passing hold=True|False
-> 2124 b = ishold()
2125 h = popd(kwargs, 'hold', None)
2126 if h is not None:
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/pylab.py in ishold()
962 Return the hold status of the current axes
963 """
--> 964 return gca().ishold()
965
966 def isinteractive():
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/pylab.py in gca(**kwargs)
913 """
914
--> 915 ax = gcf().gca(**kwargs)
916 return ax
917
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/pylab.py in gcf()
923 return figManager.canvas.figure
924 else:
--> 925 return figure()
926
927 def gci():
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/pylab.py in figure(num, figsize, dpi, facecolor, edgecolor, frameon)
893 figManager.canvas.figure.number = num
894
--> 895 draw_if_interactive()
896 return figManager.canvas.figure
897
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/IPython/genutils.py in wrapper(*args, **kw)
802 def wrapper(*args,**kw):
803 wrapper.called = False
--> 804 out = func(*args,**kw)
805 wrapper.called = True
806 return out
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/backends/backend_wx.py in draw_if_interactive()
1170 figManager = Gcf.get_active()
1171 if figManager is not None:
-> 1172 figManager.canvas.draw()
1173
1174
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/backends/backend_wxagg.py in draw(self, repaint)
60 FigureCanvasAgg.draw(self)
61
---> 62 self.bitmap = _convert_agg_to_wx_bitmap(self.get_renderer(), None)
63 if repaint:
64 self.gui_repaint()
MemoryError: _wxagg.convert_agg_to_wx_bitmap(): could not create the wx.Bitmap
In [2]: ---------------------------------------------------------------------------
exceptions.MemoryError Traceback (most recent call last)
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/backends/backend_wx.py in _onPaint(self, evt)
1046 self.realize()
1047 # Render to the bitmap
-> 1048 self.draw(repaint=False)
1049 # Update the display using a PaintDC
1050 self.gui_repaint(drawDC=wx.PaintDC(self))
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/backends/backend_wxagg.py in draw(self, repaint)
60 FigureCanvasAgg.draw(self)
61
---> 62 self.bitmap = _convert_agg_to_wx_bitmap(self.get_renderer(), None)
63 if repaint:
64 self.gui_repaint()
MemoryError: _wxagg.convert_agg_to_wx_bitmap(): could not create the wx.Bitmap