# Problems running SageTex on OSX

I am running Mac OSX and I recently tried using sagetex. I found the sagetex.sty file and put it where it could be found by Latex (option 3 in the installation guide). When I use TexMaker (my latex editor of choice) a document is created that has only latex's usual ?? for references it does not know or could not find. However a sage file is created. (example.tex creates example.sage and a host of other files). If I run the file, example.sage, I receive an error saying:

IOError: [Errno 2] No such file or directory: 'example.sage'

edit retag close merge delete

How do you "run" the file?

( 2013-11-23 04:59:30 -0500 )edit

When I say "run" I mean I use TexMaker to build the document. There are several options for the build the document Latex, PDFLatex, Latexmk for examples. Running any of these will create a sage file example.sage for instance. Opening said file causes it open, and in a terminal window it begins SAGEROOT/Contents/Resources/sage/sage FileDirectoryTo/example.sage; exit Processing Sage code for example.tex... Inline formula 0... and so on. How ever it never finishes because it gives me the error described above. New files are created, such as example.sout.tmp and sage-plots-for-example.tex however they are not created in the same file directory as the original file example.tex.

( 2013-11-25 20:32:22 -0500 )edit

When I say "run" I mean I use TexMaker to build the document. There are several options for the build the document Latex, PDFLatex, Latexmk for examples. Running any of these will create a sage file example.sage for instance. Opening said file causes it open, and in a terminal window it begins SAGEROOT/Contents/Resources/sage/sage FileDirectoryTo/example.sage; exit Processing Sage code for example.tex... Inline formula 0... and so on.

( 2013-11-25 20:32:23 -0500 )edit

Sounds like a problem with paths. Unfortunately, I don't have a Mac, so I don't really know what happens behind the scenes when you click on example.sage. If you know how to do it, you can open a terminal, cd into your directory containing example.tex and example.sage, and execute sage on example.sage. If this makes no sense to you, hopefully someone with better MacOS karma will be able to help you.

( 2013-11-25 20:54:40 -0500 )edit

Sort by » oldest newest most voted

I use $TeX$Shop and have written a guide about getting Sage$TeX$ to work. Certainly, $TeX$Maker is different, but I think looking over my guide may help.

more