From: Samuel M. S. <sm...@sa...> - 2006-02-27 17:34:18
|
Onsi Fakhouri had the same problem and found a workaround. But I appreciate your help the WX_AGG environment variable fixed one problem and your information on the linking tool should prove useful to verify that things are getting build correctly. See my post today titled "Workaround for 0.87 WXAgg bug". Apparently according to Onsi there is a bug in the C code, memory is not being allocated correctly. On 27 Feb, 2006, at 10:24, Christopher Barker wrote: > Sam, > > I wish I could be more help,. but maybe I can help steer your > efforts bit: > >> /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 > > This sure looks like your error occurs when MPL is trying to > convert from the wxagg internal image storage to a wxBitmap. As a > test, I'd make sure the pure Agg back-end works fine (have it > create a PNG). If so then font,s etc have nothing to do withyour > trouble...it's all about the agg -> wx conversion. that's why I > thought it could be caused by liniking to the wrong version of wx. > > to make sure you have linked to the right version, you can use: > > otool -L > > on the wxagg libs that MPL builds. That should tell you which wx > libs you've actuallylinked to. > > > With any luck, I'll have a chance to try to get this working on my > system this week, and then maybe I'll be more help. > > -Chris > > > > > > > -- > Christopher Barker, Ph.D. > Oceanographer > > NOAA/OR&R/HAZMAT (206) 526-6959 voice > 7600 Sand Point Way NE (206) 526-6329 fax > Seattle, WA 98115 (206) 526-6317 main reception > > Chr...@no... ********************************************************************** Samuel M. Smith Ph.D. 2966 Fort Hill Road Eagle Mountain, Utah 84043 801-768-2768 voice 801-768-2769 fax ********************************************************************** "The greatest source of failure and unhappiness in the world is giving up what we want most for what we want at the moment" ********************************************************************** |