From: Samuel M. S. <sm...@sa...> - 2006-02-24 17:15:17
|
I wanted to test out all the tex related fixes that are in matplotlib 0.87. Since I couldn't find a binary distribution anywhere I tried building it from source. I have python 2.4.2 framework wxPython 2.6.2.1 I have zlib, freetype, and libpng installed I downloaded 0.87 ran python setup.py build there were no errors but a few warnings about mulitiply defined types that seemed innocuous This warning was the only one that seemed like it might be a problem. rc/_tkagg.cpp: In function `int PyAggImagePhoto(void*, Tcl_Interp*, int, char**)': src/_tkagg.cpp:71: warning: unused variable `int srcstride' src/_tkagg.cpp:72: warning: unused variable `int srcwidth' gcc: -framework: linker input file unused because linking not done gcc: Tcl: linker input file unused because linking not done gcc: -framework: linker input file unused because linking not done gcc: Tk: linker input file unused because linking not done I ran sudo python setup.py install no problems. but when I try to do a simple plot I get the following error ipython -pylab In [4]: plot([4,3,2]) ------------------------------------------------------------------------ --- exceptions.MemoryError Traceback (most recent call last) /Install/Python/MacPython/Python2.4.2/MatPlotLib/matplotlib-0.87/ <ipython console> /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site- packages/matplotlib/pylab.py in plot(*args, **kwargs) 2128 try: 2129 ret = gca().plot(*args, **kwargs) -> 2130 draw_if_interactive() 2131 except: 2132 hold(b) /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 any ideas? |