Hi there,

I just last night installed sage 4.7.1 on my Ubuntu 10.04 LTS.
I first removed sage 4.3 from my system by deleting the sage
directory. I have not seen any evidence of any vestiges elsewhere.

I installed sage 4.7.1 into /usr/lib/sagemath, as the system otherwise
whined that there was no sage in /usr/lib. Now sage starts fine from
the command line, and the notebook option launches as well. I've
executed sage code within the notebook.

I copied /usr/lib/sagemath//local/share/texmf/tex/generic/sagetex into
my /home/me/texmf directory (such that "ls texmf" results in: generic
sagetex).

I'm running a test latex file (copied at the bottom of this post)
called sagetest.tex. It's location is, for example: /home/me/Documents/
research/papers/tests/sagetest.tex.
I've also copied sagetex.sty and (just now, out of desperation)
sagetexparse.py into the same directory.

When I latex the file, I get a few errors and generate files
sagetest.aux, sagetest.dvi, sagetest.log, sagetest.sage.

ERRORS:
  No file sagetest.sout.
  )
  No file sagetest.aux.
  (/usr/share/texmf-texlive/tex/latex/ucs/ucsencs.def) [1] (./
sagetest.aux) )
  Output written on sagetest.dvi (1 page, 712 bytes).
  Transcript written on sagetest.log.

If I next issue the command: sage sagetest.sage, I get the message:
  /usr/lib/sagemath/local/bin/sage-preparse: File 'sagetest.sage' is
missing
  python: can't open file 'sagetest.py': [Errno 2] No such file or
directory

If, instead, I issue the command: sage /home/me/Documents/research/
papers/tests/sagetest.sage, I get the messages:
  Processing Sage code for sagetest.tex...
  Traceback (most recent call last):
    File "/home/kingb/Documents/research/papers/tests/sagetest.py",
line 13, in <module>
      _st_.endofdoc()
    File "/usr/lib/sagemath/local/lib/python2.6/site-packages/
sagetex.py", line 173, in   endofdoc
      sagef = open(self.filename + '.sage', 'r')
  IOError: [Errno 2] No such file or directory: 'sagetest.sage'

So it seems that somehow the scripts do not where to look for the
file???

HELP!

Regards,

Brian King

**************** sagetest.tex**************************
\documentclass[a4paper,10pt]{article}
\usepackage[utf8x]{inputenc}
\usepackage{sagetex}

%opening
\title{Testing Kyle with sage}
\author{Brian King}

\begin{document}

\maketitle

\begin{abstract}
The purpose of this document is to figure out if/how sage works in
tex.
\end{abstract}

\section{The test}
This is the test here: %%$\sage{diff(f, x, 2)(x)}$.


\end{document}


-- 
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

Reply via email to