ASKSAGE: Sage Q&A Forum - Latest question feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Fri, 08 May 2015 17:49:21 -0500Running .sagetex.sage fails to return the 'out' filehttps://ask.sagemath.org/question/26769/running-sagetexsage-fails-to-return-the-out-file/ Have compiled Latex on the doc st_example. Returns the expected result, including the file st_example.sagetex.sage
I then run this file via the terminal using the command $ sage (path to ).st_example.sagetex.sage
This seems to be OK until it gets to the last line of the file when the following errors are shown
Traceback (most recent call last):
File "/home/ian/disks/Tex_docs/Alltrials/alltests/st_example.sagetex.sage.py", line 29, in <module>
_st_.endofdoc()
File "/home/ian/sage-6.6/local/lib/python2.7/site-packages/sagetex.py", line 282, in endofdoc
sagef = open(self.filename + '.sagetex.sage', 'r')
IOError: [Errno 2] No such file or directory: 'st_example.sagetex.sage'
The problem seems to be in the .py file where the path to st_example is not picked up and hence the 'out' file is not produced. I'm running Python 2.7 and the install of sage is recent ie one day ago. Everything else is working perfectly. is the generated .py file still expecting python 2.6 (as in the documentation) or is the final line of the python code incorrect?
ianjmatthewsFri, 08 May 2015 17:49:21 -0500https://ask.sagemath.org/question/26769/