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'
What causes such an error had how can it be addressed?
How do you "run" the file?
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.
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.
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.