Genius.  All three failing scripts have "-n" in the filename, and the 
renaming to "a.sage" allows the file to succeed.  And the rest that do 
succeed do not have a "-n."

I'll make a ticket soon unless I hear that this is known already.

Thanks, William!

Rob

On Thursday, January 29, 2015 at 8:15:27 PM UTC-8, William wrote:
>
> On Thu, Jan 29, 2015 at 8:12 PM, Rob Beezer <goo...@beezer.cotse.net 
> <javascript:>> wrote: 
> > I have a short chunk of Sage code that I am running from the command 
> line. 
> > It produces errors with newer versions of Sage, but works as intended 
> with 
> > older versions (producing a graphics file).  Of about 20 such chunks, 3 
> > appear to be failing.  Is this a known problem?  Should I make a ticket? 
> > Any ideas or suggestions? 
> > 
> > (These are produced automatically, which is why some parts look bit odd, 
> but 
> > it also means they are consistent in many ways.)  Facts follow - I can 
> > provide more if needed. 
> > 
> > Invocation: 
> > /sage/sage-6.5.beta6/sage firstlook02-newton-cooling.sage svg 
> > 
> > 
> > Error: 
> > CRITICAL:root:unknown notebook: None 
> > Error, notebook must be one of default, ipython, sagenb but got None 
> > 
>
> Does your code have absolutely nothing whatever to do with the Sage or 
> IPython notebookes? 
> This makes me wonder -- what happens if you rename 
> "firstlook02-newton-cooling.sage" to 
> "a.sage" and try again.   I am suspicious that the "-n" inside the 
> filename is causing a problem. 
>
>
> > 
> > firstlook02-newton-cooling.sage: 
> > import sys 
> > suffix = sys.argv[1] 
> > f(x) = 28.6 * exp(-0.0725 * x) + 70 
> > p = plot(f, (x, 0, 50), ymin = 55, ymax = 110, thickness=2, 
> > aspect_ratio=0.4, axes_labels=['$t$','$T(t)$'], fontsize=18) 
> > plot_idp37915040 = p 
> > try: 
> >     
> plot_idp37915040.save("firstlook02-newton-cooling.{}".format(suffix)) 
> > except ValueError: 
> >     plot_idp37915040.save("firstlook02-newton-cooling.png") 
> > 
> > 
> > Fails: 6.4 (Linux), 6.5.beta6 (Linux), 6.4.1 (Mac) 
> > Succeeds: 6.0, 6.2, 6.3 (all Linux) 
> > 
> > Linux testing is on built-from-source (unsure about Mac binaries). 
> > 
> > The following very similar file succeeds with a similar invocation: 
> > 
> > firstlook01-exercise-slope-field-1.sage: 
> > import sys 
> > suffix = sys.argv[1] 
> > t = var('t') 
> > f(x) = 2*x*(1 - x) 
> > v = plot_slope_field(f, (t,-2,2), (x,-2,2), headaxislength=3, 
> headlength=3, 
> > axes_labels=['$t$','$x$'], fontsize=18) 
> > plot_idp38572272 = v 
> > try: 
> > 
> > 
> plot_idp38572272.save("firstlook01-exercise-slope-field-1.{}".format(suffix)) 
>
> > except ValueError: 
> >     plot_idp38572272.save("firstlook01-exercise-slope-field-1.png") 
> > 
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> Groups 
> > "sage-devel" group. 
> > To unsubscribe from this group and stop receiving emails from it, send 
> an 
> > email to sage-devel+...@googlegroups.com <javascript:>. 
> > To post to this group, send email to sage-...@googlegroups.com 
> <javascript:>. 
> > Visit this group at http://groups.google.com/group/sage-devel. 
> > For more options, visit https://groups.google.com/d/optout. 
>
>
>
> -- 
> William Stein 
> Professor of Mathematics 
> University of Washington 
> http://wstein.org 
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to