Kile was using the sagetex.sty that came with TeXLive. I removed the old version, and now sagetex is running with no problems.
Thanks for your help. On Oct 5, 7:02 pm, Dan Drake <dr...@kaist.edu> wrote: > On Wed, 05 Oct 2011 at 10:15AM -0700, David Hren wrote: > > **** Error in Sage code on line 8 of HWK7.tex! Traceback follows. > > Traceback (most recent call last): > > File "/home/dave/Desktop/HWK7.py", line 7, in <module> > > _st_.inline(_sage_const_0 , sin(pi)) > > File "/home/dave/sage-4.7.1/local/lib/python2.6/site-packages/ > > sagetex.py", line 73, in inline > > s.rstrip() + '}{}{}{}{}}\n') > > File "element.pyx", line 328, in > > sage.structure.element.Element.__getattr__ (sage/structure/element.c: > > 2794) > > File "parent.pyx", line 277, in > > sage.structure.parent.getattr_from_other_class (sage/structure/ > > parent.c:2940) > > File "parent.pyx", line 175, in > > sage.structure.parent.raise_attribute_error (sage/structure/parent.c: > > 2709) > > AttributeError: 'sage.symbolic.expression.Expression' object has no > > attribute 'rstrip' > > > **** Running Sage on HWK7.sage failed! Fix HWK7.tex and try again. > > > I'm not sure what is going on here; any idea? I'm running Ubuntu > > 11.04. > > With high probability, Kile used a outdated version of sagetex.sty > included with your TeX distribution, instead of the current version of > sagetex.sty from Sage. If you do > > kpsewhich sagetex.sty > > is it the file you got from your Sage installation, or something in the > TeXLive directories? If it's from TeXLive, I would delete it or rename > it, or make sure that the good sagetex.sty is found before the bad one. > > Dan > > -- > --- Dan Drake > ----- http://mathsci.kaist.ac.kr/~drake > ------- > > signature.asc > < 1KViewDownload -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org