On 08/09/2013 09:53 PM, Stan Schymanski wrote:
I just stumbled over your post as I experienced the same error. There is
actually a ticket for it here: http://trac.sagemath.org/ticket/9805
It looks like a 5 minutes-job for someone familiar with creating
patches, but unfortunately, nobody has touched it for 3 years now...
Pity!
Cheers
Stan
There's a reason why it has not been fixed - the directory it writes to
is not a constant. It differs by account name, and by worksheet - I
don't see a way to get these at runtime. Although it gives an error, it
does save the object into the directory corresponding to the cell.
A workaround is to save it by yourself in the data directory by using
save_session(DATA + 'sage_session.sobj')
At least for now, you will get an error message but the session will be
saved alright.
On Tuesday, December 25, 2012 10:04:09 AM UTC+1, dann wrote:
Hi!
When i try to evolute code
a='qweqweq'
save_session('tst')
i get an error
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "_sage_input_2.py", line 10, in <module>
exec compile(u'open("___code___.py","w").write("# -*- coding:
utf-8 -*-\\n" +
_support_.preparse_worksheet_cell(base64.b64decode("YT0ncXdlcXdlcScKc2F2ZV9zZXNzaW9uKCd0c3QnKQ=="),globals())+"\\n");
execfile(os.path.abspath("___code___.py"))
File "", line 1, in <module>
File "/tmp/tmpLfbw46/___code___.py", line 3, in <module>
exec compile(u"save_session('tst')" + '\n', '', 'single')
File "", line 1, in <module>
File "session.pyx", line 304, in sage.misc.session.save_session
(sage/misc/session.c:1710)
File "sage_object.pyx", line 863, in
sage.structure.sage_object.save (sage/structure/sage_object.c:9575)
IOError: [Errno 2] No such file or directory: '../../data/tst.sobj'
tst.sobj
What's the problem?
Thanks
--
You received this message because you are subscribed to the Google
Groups "sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/groups/opt_out.