I found the same problem using SAGE 3.0 on a MacBook running OS X.
4.11. Same behavior in both command line and notebook.
Here's the error report that resulted from trying to plot from command
line:
*****
sage: plot(sin(x),0,10)
---------------------------------------------------------------------------
<type 'exceptions.ImportError'> Traceback (most recent call
last)
/Users/shapiro/<ipython console> in <module>()
/Applications/sage-3.0/local/lib/python2.5/site-packages/IPython/
Prompts.py in __call__(self, arg)
521
522 # and now call a possibly user-defined print
mechanism
--> 523 manipulated_val = self.display(arg)
524
525 # user display hooks can change the variable to be
stored in
/Applications/sage-3.0/local/lib/python2.5/site-packages/IPython/
Prompts.py in _display(self, arg)
545 """
546
--> 547 return self.shell.hooks.result_display(arg)
548
549 # Assign the default display method:
/Applications/sage-3.0/local/lib/python2.5/site-packages/IPython/
hooks.py in __call__(self, *args, **kw)
132 #print "prio",prio,"cmd",cmd #dbg
133 try:
--> 134 ret = cmd(*args, **kw)
135 return ret
136 except ipapi.TryNext, exc:
/Applications/sage-3.0/local/lib/python2.5/site-packages/IPython/
hooks.py in result_display(self, arg)
160
161 if self.rc.pprint:
--> 162 out = pformat(arg)
163 if '\n' in out:
164 # So that multi-line strings line up with the left
column of
/Applications/sage-3.0/local/lib/python/pprint.py in pformat(self,
object)
109 def pformat(self, object):
110 sio = _StringIO()
--> 111 self._format(object, sio, 0, 0, {}, 0)
112 return sio.getvalue()
113
/Applications/sage-3.0/local/lib/python/pprint.py in _format(self,
object, stream, indent, allowance, context, level)
127 self._readable = False
128 return
--> 129 rep = self._repr(object, context, level - 1)
130 typ = _type(object)
131 sepLines = _len(rep) > (self._width - 1 - indent -
allowance)
/Applications/sage-3.0/local/lib/python/pprint.py in _repr(self,
object, context, level)
193 def _repr(self, object, context, level):
194 repr, readable, recursive = self.format(object,
context.copy(),
--> 195 self._depth,
level)
196 if not readable:
197 self._readable = False
/Applications/sage-3.0/local/lib/python/pprint.py in format(self,
object, context, maxlevels, level)
205 and whether the object represents a recursive
construct.
206 """
--> 207 return _safe_repr(object, context, maxlevels, level)
208
209
/Applications/sage-3.0/local/lib/python/pprint.py in
_safe_repr(object, context, maxlevels, level)
290 return format % _commajoin(components), readable,
recursive
291
--> 292 rep = repr(object)
293 return rep, (rep and not rep.startswith('<')), False
294
/Users/shapiro/sage_object.pyx in
sage.structure.sage_object.SageObject.__repr__ (sage/structure/
sage_object.c:620)()
/Applications/sage-3.0/local/lib/python2.5/site-packages/sage/plot/
plot.py in _repr_(self)
736 """
737 if SHOW_DEFAULT:
--> 738 self.show()
739 return ''
740 else:
/Applications/sage-3.0/local/lib/python2.5/site-packages/sage/plot/
plot.py in show(self, xmin, xmax, ymin, ymax, figsize, filename, dpi,
axes, axes_labels, frame, fontsize, aspect_ratio)
1250 self.save(filename, xmin, xmax, ymin, ymax, figsize,
dpi=dpi, axes=axes,
1251 frame=frame, fontsize=fontsize,
-> 1252 aspect_ratio=aspect_ratio)
1253 os.system('%s %s 2>/dev/null 1>/dev/null &'%
(sage.misc.viewer.browser(), filename))
1254
/Applications/sage-3.0/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_labels, fontsize, frame, verify,
aspect_ratio)
1344 axes = self.__show_axes
1345
-> 1346 from matplotlib.figure import Figure
1347 if filename is None:
1348 filename = sage.misc.misc.graphics_filename()
/Applications/sage-3.0/local/lib/python2.5/site-packages/matplotlib/
figure.py in <module>()
8 import artist
9 from artist import Artist
---> 10 from axes import Axes, Subplot, PolarSubplot, PolarAxes
11 from cbook import flatten, allequal, Stack, iterable, dedent
12 import _image
/Applications/sage-3.0/local/lib/python2.5/site-packages/matplotlib/
axes.py in <module>()
18 from matplotlib import dates as mdates
19 from matplotlib import font_manager
---> 20 from matplotlib import image as mimage
21 from matplotlib import legend as mlegend
22 from matplotlib import lines as mlines
/Applications/sage-3.0/local/lib/python2.5/site-packages/matplotlib/
image.py in <module>()
17
18 # For clarity, names from _image are given explicitly in this
module:
---> 19 from matplotlib import _image
20
21 # For user convenience, the names from _image are also
imported into
<type 'exceptions.ImportError'>: dlopen(/Applications/sage-3.0/local/
lib/python2.5/site-packages/matplotlib/_image.so, 2): Library not
loaded: /sw/lib/libpng12.0.dylib
Referenced from: /Applications/sage-3.0/local/lib/python2.5/site-
packages/matplotlib/_image.so
Reason: image not found
**** Message in suppport of: ***
On Apr 29, 1:36 pm, sediment <[EMAIL PROTECTED]> wrote:
>
> with the new install SAGE 3.0 i cannot plot anything, and am really
> stuck. when i say
> sage> plot(sin(x), 0, 10)
> ------------------------------- begin error
> message----------------------------
> i get the following error message:
> Traceback (most recent call last):
> ...
> Reason: Incompatible library version: _image.so requires version
> 17.0.0 or later, but libpng12.0.dylib provides version 0.1.2
>
> -------------------------------- end error message
--~--~---------~--~----~------------~-------~--~----~
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://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---