Running .sagetex.sage fails to return the 'out' file
asked 2015-05-08 17:49:21 -0500
This post is a wiki. Anyone with karma >750 is welcome to improve it.
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?