On Fri, 22 Feb 2013 at 07:05AM -0800, Nathan Carter wrote:
>    6. Whether I run with the TeXShop engine (which indeed runs sage on the 
>    .sage file) or do it manually (just LaTeX the file within TeXShop, then 
> run 
>    sage from Terminal myself) I get the same error as the original poster, 
> AttributeError: 
>    'module' object has no attribute 'openout'.

That's very strange. You have Sage 5.3, so you should have a pretty
recent version of SageTeX, but as far as I can tell, the openout problem
can only arise if you're using a really, really old version of SageTeX. 

Can you look at the top of the generated .sagetex.sage file and see if
it starts with something like:

## -*- encoding: utf-8 -*-
## This file (example.sagetex.sage) was *autogenerated* from example.tex
## with sagetex.sty version 2012/01/16 v2.3.3-69dcb0eb93de.

Your TeX installation might somehow be using an older .sty file (despite
your symlink, which seems like it should work fine) and generating a bad
.sage file. That's my best guess right now.

Inside Sage, you could do

       import sagetex
       sagetex.__version__

and see if it matches what the generated .sage file says.

Dan

--
---  Dan Drake
-----  http://math.pugetsound.edu/~ddrake
-------

Attachment: signature.asc
Description: Digital signature

Reply via email to