Ask Your Question
1

Problems running SageTex on OSX

asked 2013-11-23 04:46:50 -0500

anonymous user

Anonymous

updated 2013-11-25 20:51:54 -0500

Luca gravatar image

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?

edit retag flag offensive close merge delete

Comments

How do you "run" the file?

Luca gravatar imageLuca ( 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.

WishItWorked gravatar imageWishItWorked ( 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.

WishItWorked gravatar imageWishItWorked ( 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.

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

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-08-08 08:08:09 -0500

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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2013-11-23 04:46:50 -0500

Seen: 445 times

Last updated: Aug 08 '14