On 8/8/07, Justin <[EMAIL PROTECTED]> wrote: > > Hi everyone, > > I'm trying the very simple examples listed in the plotting section of > the tutorial, however every time I try a p.save() or a p.show() I get > the output below. I've installed and played around with python2.5 and > I can plot just by going to a terminal and doing plot(x), but there > seems to be something wrong with the matplotlib in the SAGE directory > tree?
Did you install SAGE from a binary? Intel or powerpc OS X? As a test could you try sage-2.7.2 or 2.7.1 from here? http://sagemath.org/old/ William > > help is appreciated. > -Justin > > sage: p.show() > --------------------------------------------------------------------------- > <type 'exceptions.ImportError'> Traceback (most recent call > last) > > /Users/jmcurry/<ipython console> in <module>() > > /Applications/sage-2.7.3-i386-Darwin/local/lib/python2.5/site-packages/ > sage/plot/plot.py in show(self, xmin, xmax, ymin, ymax, figsize, > filename, dpi, axes, axes_label, frame, fontsize, **args) > 657 if filename is None: > 658 filename = sage.misc.misc.tmp_filename() + '.png' > --> 659 self.save(filename, xmin, xmax, ymin, ymax, figsize, > dpi=dpi, axes=axes,frame=frame, fontsize=fontsize) > 660 os.system('%s %s 2>/dev/null 1>/dev/null &'% > (sage.misc.viewer.browser(), filename)) > 661 > > /Applications/sage-2.7.3-i386-Darwin/local/lib/python2.5/site-packages/ > sage/plot/plot.py in save(self, filename, xmin, xmax, ymin, ymax, > figsize, figure, sub, savenow, dpi, axes, axes_label, fontsize, frame, > verify) > 724 axes = self.__show_axes > 725 > --> 726 from matplotlib.figure import Figure > 727 if filename is None: > 728 filename = sage.misc.misc.graphics_filename() > > /Applications/sage-2.7.3-i386-Darwin/local/lib/python2.5/site-packages/ > matplotlib/figure.py in <module>() > 5 import artist > 6 from artist import Artist > ----> 7 from axes import Axes, Subplot, PolarSubplot, PolarAxes > 8 from cbook import flatten, allequal, popd, Stack, iterable, > dedent > 9 import _image > > /Applications/sage-2.7.3-i386-Darwin/local/lib/python2.5/site-packages/ > matplotlib/axes.py in <module>() > 14 import artist > 15 from artist import Artist, setp > ---> 16 from axis import XAxis, YAxis > 17 from cbook import iterable, is_string_like, flatten, > enumerate, \ > 18 allequal, dict_delall, popd, popall, silent_list, > is_numlike, dedent > > /Applications/sage-2.7.3-i386-Darwin/local/lib/python2.5/site-packages/ > matplotlib/axis.py in <module>() > 23 from transforms import Value, blend_xy_sep_transform,\ > 24 translation_transform, bbox_all, identity_transform > ---> 25 from font_manager import FontProperties > 26 from text import Text, TextWithDash, _process_text_args > 27 from patches import bbox_artist > > /Applications/sage-2.7.3-i386-Darwin/local/lib/python2.5/site-packages/ > matplotlib/font_manager.py in <module>() > 37 import matplotlib > 38 from matplotlib import afm > ---> 39 from matplotlib import ft2font > 40 from matplotlib import rcParams, get_data_path, get_home, > get_configdir > 41 > > <type 'exceptions.ImportError'>: dlopen(/Applications/sage-2.7.3-i386- > Darwin/local/lib/python2.5/site-packages/matplotlib/ft2font.so, 2): > Symbol not found: __cg_png_create_info_struct > Referenced from: /System/Library/Frameworks/ > ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/ > Versions/A/ImageIO > Expected in: /Applications/sage-2.7.3-i386-Darwin/local/lib// > libPng.dylib --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~----------~----~----~----~------~----~------~--~---
