Thanks for the suggestions, but... On Monday, June 11, 2012 5:47:48 PM UTC+1, Andrzej Giniewicz wrote: > > Had similar issue some time ago on my document build server. Most > likely another sagetex.sty installed with texlive/package management? > It's easy to check which file is used in TeX by doing > > kpsewhich sagetex.sty >
This shows the correct one, i.e. the one under $HOME/texmf > > Another possibility is that you have to run "texhash" to make TeX > update files it knows, if $TEXMFHOME takes higher priority than system > wide install (it should I believe) then updating file database might > be enough. > > I did texhash but the same happens. I also tried again on a completely different computer, running a new ubuntu 12.04 install, with a freshly built 5.1.beta3, and the symptoms are identical. Bizarre. Can Dan Drake help? John > On Mon, Jun 11, 2012 at 6:37 PM, John Cremona <[email protected]> > wrote: > > I am following the instructions at > > http://www.sagemath.org/doc/installation/sagetex.html on a 64-bit > > ubuntu machine running sage-5.0, installed in SAGE_ROOT=$HOME/sage-5.0 > > . > > > > 1. I copied cp -R $SAGE_ROOT/local/share/texmf/tex $TEXMFHOME where > > $TEXMFHOME is $HOME/texmf (default, not changed). > > > > This created a directory $HOME/texmf/tex/generic/sagetex/ in which are > > carious files including sagetex.sty . > > > > 2. I created a file example.tex in $HOME (copying the file contents > > from http://www.sagemath.org/doc/tutorial/sagetex.html). > > > > 3. I ran latex on that file twice. A file example.sage was created. > > > > 4. I ran Sage on that file; to make sure I picked up the right Sage > > version from the many on this this machine I did directly > > > > $HOME/sage-5.0/sage example.sage > > > > Result-- output as follows: > > > > Traceback (most recent call last): > > File "example.py", line 5, in <module> > > _st_ = sagetex.SageTeXProcessor('example') > > File "/home/jec/sage-5.0/local/lib/python2.7/site-packages/sagetex.py", > > line 68, in __init__ > > raise VersionError, errstr > > sagetex.VersionError: versions of .sty and .py files do not match. > > example.sagetex.sage was generated by sagetex.sty version "None", but > > is being processed by sagetex.py version "2012/01/16 > v2.3.3-69dcb0eb93de". > > Please make sure that TeX is using the sagetex.sty > > from your current version of Sage; see > > http://www.sagemath.org/doc/installation/sagetex.html. > > > > [Note that the file mentioend in that message, "example.sagetex.sage", > > does not exist.] > > > > What did I do wrong? By the way, if I cd into > > $HOME/texmf/tex/generic/sagetex/ and there run latex on the > > example.tex file there, it creates a file example.sagetex.sage on > > which sage runs fine, and after rerunning latex (twice) I get a dvi > > file which looks perfect. > > > > John > > > > -- > > To post to this group, send email to [email protected] > > To unsubscribe from this group, send email to > [email protected] > > For more options, visit this group at > http://groups.google.com/group/sage-support > > URL: http://www.sagemath.org > -- To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
