I am trying a minimal example of Sage to start using it for my lectures:
When I try the following file (example.text)
\documentclass{article}
\usepackage{sagetex}
\begin{document}
one plus two is $\sage{1+2}$
\end{document}
>>> pdflatex example.text
>>> sage example.sage
it gives me the following error:
Processing Sage code for example.tex...
Inline formula 0
**** Error in Sage code on line 5 of example.tex! Traceback follows.
Traceback (most recent call last):
File "example.py", line 7, in <module>
_st_.inline(_sage_const_0 , _sage_const_1 +_sage_const_2 )
File
"/home/nin/sage-4.7/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:2790)
File "parent.pyx", line 277, in
sage.structure.parent.getattr_from_other_class
(sage/structure/parent.c:2930)
File "parent.pyx", line 175, in
sage.structure.parent.raise_attribute_error (sage/structure/parent.c:2699)
AttributeError: 'sage.rings.integer.Integer' object has no attribute
'rstrip'
**** Running Sage on example.sage failed! Fix example.tex and try again.
I moved $SAGEROOT/local/share/texmf/tex/ to /usr/local/share/texmf
following the instructions to install sagetex.
Does anybody knows what's wrong here?
Thanks
Jose
--
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