[OS X TeX] sagetex

Michael Sharpe msharpe at ucsd.edu
Wed Nov 4 13:05:43 EST 2009


On Nov 4, 2009, at 6:52 AM, Alessandro Andretta wrote:

> Dear TeXperts,
>
> this morning I decided to update my installation of Sage from  
> 3.something to 4.2,
> and now sagetex is not working anymore. I am using a MacBook Pro  
> Core2 Duo running 10.6.1
> and MacTex 2009 updated via TeX Live Utility.
> First of all I did try to install the version of Sage for 10.6  
> 64bits, but this seems not to work.
> So I scaled down to the 32bit version and now sage seems to run.
> But sagetex, which used to work nicely until early this morning, now  
> does not work any more.
> when I run latex on this minimal example
>
> % !TEX TS-program = sage
> \documentclass{article}
> \usepackage{sagetex}
> \begin{document}
> \[
> 2+2 = \sage{2+2}
> \]
> \end{document}
>
> the output is:
>
> 	2+2 = ??
>
> For the interested reader, below is the console output.
>
> Thanks in advance,
>
> 	--aa
>
>
> ========== LOG FILE =====
> This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009)
> entering extended mode
> (./minimal.tex
> LaTeX2e <2009/09/24>
> Babel <v3.8l> and hyphenation patterns for english, usenglishmax,  
> dumylang, noh
> yphenation, german-x-2009-06-19, ngerman-x-2009-06-19, ancientgreek,  
> ibycus, ar
> abic, basque, bulgarian, catalan, pinyin, coptic, croatian, czech,  
> danish, dutc
> h, esperanto, estonian, farsi, finnish, french, galician, german,  
> ngerman, mono
> greek, greek, hungarian, icelandic, indonesian, interlingua, irish,  
> italian, ku
> rmanji, latin, latvian, lithuanian, mongolian, mongolian2a, bokmal,  
> nynorsk, po
> lish, portuguese, romanian, russian, sanskrit, serbian, slovak,  
> slovenian, span
> ish, swedish, turkish, ukenglish, ukrainian, uppersorbian, welsh,  
> loaded.
> (/usr/local/texlive/2009/texmf-dist/tex/latex/base/article.cls
> Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
> (/usr/local/texlive/2009/texmf-dist/tex/latex/base/size10.clo))
> (/usr/local/texlive/2009/texmf-dist/tex/latex/sagetex/sagetex.sty
> (/usr/local/texlive/2009/texmf-dist/tex/latex/tools/verbatim.sty)
> (/usr/local/texlive/2009/texmf-dist/tex/latex/graphics/graphicx.sty
> (/usr/local/texlive/2009/texmf-dist/tex/latex/graphics/keyval.sty)
> (/usr/local/texlive/2009/texmf-dist/tex/latex/graphics/graphics.sty
> (/usr/local/texlive/2009/texmf-dist/tex/latex/graphics/trig.sty)
> (/usr/local/texlive/2009/texmf-dist/tex/latex/latexconfig/ 
> graphics.cfg)
> (/usr/local/texlive/2009/texmf-dist/tex/latex/pdftex-def/pdftex.def)))
> (/usr/local/texlive/2009/texmf-dist/tex/latex/makecmds/makecmds.sty)
> (/usr/local/texlive/2009/texmf-dist/tex/generic/oberdiek/ifpdf.sty)
> (/usr/local/texlive/2009/texmf-dist/tex/latex/base/ifthen.sty)
> No file minimal.sout.
> ) (./minimal.aux)
> (/usr/local/texlive/2009/texmf-dist/tex/context/base/supp-pdf.mkii
> [Loading MPS to PDF converter (version 2006.09.02).]
> )
>
> LaTeX Warning: Reference `@sageinline0' on page 1 undefined on input  
> line 6.
>
>
> Package sagetex Warning: There were undefined Sage formulas and/or  
> plots.
> Run Sage on minimal.sage, and then run LaTeX on minimal.tex again.
>
> [1{/usr/local/texlive/2009/texmf-var/fonts/map/pdftex/updmap/ 
> pdftex.map}]
> (./minimal.aux)
>
> LaTeX Warning: There were undefined references.
>
> )</usr/local/texlive/2009/texmf-dist/fonts/type1/public/amsfonts/cm/ 
> cmbx10.pfb
> ></usr/local/texlive/2009/texmf-dist/fonts/type1/public/amsfonts/cm/ 
> cmr10.pfb>
> Output written on minimal.pdf (1 page, 18749 bytes).
> Transcript written on minimal.log.
> Traceback (most recent call last):
>  File "minimal.py", line 2, in <module>
>    from sage.all_cmdline import *   # import sage library
>  File "/Users/alessandroandretta/Documents/TeX-experiments/sage/ 
> sage.py", line 2, in <module>
>    from sage.all_cmdline import *   # import sage library
> ImportError: No module named all_cmdline
> This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009)
> entering extended mode
> (./minimal.tex
> LaTeX2e <2009/09/24>
> Babel <v3.8l> and hyphenation patterns for english, usenglishmax,  
> dumylang, noh
> yphenation, german-x-2009-06-19, ngerman-x-2009-06-19, ancientgreek,  
> ibycus, ar
> abic, basque, bulgarian, catalan, pinyin, coptic, croatian, czech,  
> danish, dutc
> h, esperanto, estonian, farsi, finnish, french, galician, german,  
> ngerman, mono
> greek, greek, hungarian, icelandic, indonesian, interlingua, irish,  
> italian, ku
> rmanji, latin, latvian, lithuanian, mongolian, mongolian2a, bokmal,  
> nynorsk, po
> lish, portuguese, romanian, russian, sanskrit, serbian, slovak,  
> slovenian, span
> ish, swedish, turkish, ukenglish, ukrainian, uppersorbian, welsh,  
> loaded.
> (/usr/local/texlive/2009/texmf-dist/tex/latex/base/article.cls
> Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
> (/usr/local/texlive/2009/texmf-dist/tex/latex/base/size10.clo))
> (/usr/local/texlive/2009/texmf-dist/tex/latex/sagetex/sagetex.sty
> (/usr/local/texlive/2009/texmf-dist/tex/latex/tools/verbatim.sty)
> (/usr/local/texlive/2009/texmf-dist/tex/latex/graphics/graphicx.sty
> (/usr/local/texlive/2009/texmf-dist/tex/latex/graphics/keyval.sty)
> (/usr/local/texlive/2009/texmf-dist/tex/latex/graphics/graphics.sty
> (/usr/local/texlive/2009/texmf-dist/tex/latex/graphics/trig.sty)
> (/usr/local/texlive/2009/texmf-dist/tex/latex/latexconfig/ 
> graphics.cfg)
> (/usr/local/texlive/2009/texmf-dist/tex/latex/pdftex-def/pdftex.def)))
> (/usr/local/texlive/2009/texmf-dist/tex/latex/makecmds/makecmds.sty)
> (/usr/local/texlive/2009/texmf-dist/tex/generic/oberdiek/ifpdf.sty)
> (/usr/local/texlive/2009/texmf-dist/tex/latex/base/ifthen.sty)
> No file minimal.sout.
> ) (./minimal.aux)
> (/usr/local/texlive/2009/texmf-dist/tex/context/base/supp-pdf.mkii
> [Loading MPS to PDF converter (version 2006.09.02).]
> )
>
> LaTeX Warning: Reference `@sageinline0' on page 1 undefined on input  
> line 6.
>
>
> Package sagetex Warning: There were undefined Sage formulas and/or  
> plots.
> Run Sage on minimal.sage, and then run LaTeX on minimal.tex again.
>
> [1{/usr/local/texlive/2009/texmf-var/fonts/map/pdftex/updmap/ 
> pdftex.map}]
> (./minimal.aux)
>
> LaTeX Warning: There were undefined references.
>
> )</usr/local/texlive/2009/texmf-dist/fonts/type1/public/amsfonts/cm/ 
> cmbx10.pfb
> ></usr/local/texlive/2009/texmf-dist/fonts/type1/public/amsfonts/cm/ 
> cmr10.pfb>
> Output written on minimal.pdf (1 page, 18749 bytes).
> Transcript written on minimal.log.

I have exactly the same installation of Sage and mactex that you  
describe above. Sage 4.2 seems to be slower in processing than earlier  
versions, but after waiting a few seconds and typesetting your file  
again a couple of times, I got the expected output.

Michael




More information about the MacOSX-TeX mailing list