ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Fri, 08 Aug 2014 15:08:09 +0200Problems running SageTex on OSXhttps://ask.sagemath.org/question/10769/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?Sat, 23 Nov 2013 11:46:50 +0100https://ask.sagemath.org/question/10769/problems-running-sagetex-on-osx/Comment by Luca for <p>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:</p>
<p>IOError: [Errno 2] No such file or directory: 'example.sage' </p>
<p>What causes such an error had how can it be addressed?</p>
https://ask.sagemath.org/question/10769/problems-running-sagetex-on-osx/?comment=16646#post-id-16646How do you "run" the file?Sat, 23 Nov 2013 11:59:30 +0100https://ask.sagemath.org/question/10769/problems-running-sagetex-on-osx/?comment=16646#post-id-16646Comment by WishItWorked for <p>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:</p>
<p>IOError: [Errno 2] No such file or directory: 'example.sage' </p>
<p>What causes such an error had how can it be addressed?</p>
https://ask.sagemath.org/question/10769/problems-running-sagetex-on-osx/?comment=16620#post-id-16620When 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. Tue, 26 Nov 2013 03:32:22 +0100https://ask.sagemath.org/question/10769/problems-running-sagetex-on-osx/?comment=16620#post-id-16620Comment by Luca for <p>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:</p>
<p>IOError: [Errno 2] No such file or directory: 'example.sage' </p>
<p>What causes such an error had how can it be addressed?</p>
https://ask.sagemath.org/question/10769/problems-running-sagetex-on-osx/?comment=16618#post-id-16618Sounds 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.Tue, 26 Nov 2013 03:54:40 +0100https://ask.sagemath.org/question/10769/problems-running-sagetex-on-osx/?comment=16618#post-id-16618Comment by WishItWorked for <p>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:</p>
<p>IOError: [Errno 2] No such file or directory: 'example.sage' </p>
<p>What causes such an error had how can it be addressed?</p>
https://ask.sagemath.org/question/10769/problems-running-sagetex-on-osx/?comment=16619#post-id-16619When 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.
Tue, 26 Nov 2013 03:32:23 +0100https://ask.sagemath.org/question/10769/problems-running-sagetex-on-osx/?comment=16619#post-id-16619Answer by ron.bannon for <p>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:</p>
<p>IOError: [Errno 2] No such file or directory: 'example.sage' </p>
<p>What causes such an error had how can it be addressed?</p>
https://ask.sagemath.org/question/10769/problems-running-sagetex-on-osx/?answer=23718#post-id-23718I use $TeX$Shop and have written a [guide](http://devio.us/~bannon/sage/) about getting Sage$TeX$ to work. Certainly, $TeX$Maker is different, but I think looking over my [guide](http://devio.us/~bannon/sage/) may help.Fri, 08 Aug 2014 15:08:09 +0200https://ask.sagemath.org/question/10769/problems-running-sagetex-on-osx/?answer=23718#post-id-23718