On Tue, 29 Sep 2009 at 08:21PM -0700, Jaasiel Ornelas wrote:
> Then, when I run sage in the file, I get this error:
> 
> """"""
> sanponpon:~ jaasiel$ /Applications/sage/sage Documents/latex_example/
> xample2/Untitled1.sage
> Traceback (most recent call last):
>   File "Documents/latex_example/xample2/Untitled1.py", line 5, in
> <module>
>     sagetex.openout('Untitled1')
> AttributeError: 'module' object has no attribute 'openout'
> 
> """"""

That's from an older version of SageTeX, so I'm guessing the Python
module and style file are from different versions. I recommend doing
"sage -i sagetex-2.1.1" which will install the Python module into Sage
(so you don't need to worry about the .py file) and then copying
sagetex.sty from $SAGE_ROOT/local/share/texmf/tex/generic/sagetex into
your current directory.

Then the two parts of SageTeX will be using the same version, and it
should work.

Dan

-- 
---  Dan Drake
-----  http://mathsci.kaist.ac.kr/~drake
-------

Attachment: signature.asc
Description: Digital signature

Reply via email to