There is bug with init.sage (and how to resolve it)

80 views
Skip to first unread message

Андрей Ширшов

unread,
Oct 19, 2013, 2:38:50 PM10/19/13
to sage-s...@googlegroups.com
Hello!
Sage 5.12 doesn't see init.sage file in $DOT_SAGE
I found this bug in such way:
>>import os
>>os.environ['SAGE_STARTUP_FILE']
/home/andrei/.sage//init.sage
The problem is in file $SAGE_ROOT/spkg/bin/sage-env
There is line SAGE_STATUP_FILE = "$DOT_SAGE/init.sage" in this file
I replaced this line to:
SAGE_STATUP_FILE = "home/andrei/.sage/init.sage"
After that sage see my init.sage file
Thanks.

Андрей Ширшов

unread,
Oct 19, 2013, 2:46:17 PM10/19/13
to sage-s...@googlegroups.com

After that manipulation sage see init.sage, but sage notebook don't see (((

John H Palmieri

unread,
Oct 19, 2013, 6:33:13 PM10/19/13
to sage-s...@googlegroups.com


On Saturday, October 19, 2013 11:46:17 AM UTC-7, Андрей Ширшов wrote:

Hello!
Sage 5.12 doesn't see init.sage file in $DOT_SAGE

I don't see this behavior: Sage 5.12 sees my init.sage file perfectly, at least from the command line.
 
I found this bug in such way:
>>import os
>>os.environ['SAGE_STARTUP_FILE']
/home/andrei/.sage//init.sage
The problem is in file $SAGE_ROOT/spkg/bin/sage-env
There is line SAGE_STATUP_FILE = "$DOT_SAGE/init.sage" in this file
I replaced this line to:
SAGE_STATUP_FILE = "home/andrei/.sage/init.sage"
After that sage see my init.sage file
Thanks.

After that manipulation sage see init.sage, but sage notebook don't see (((

Reading init.sage from the notebook seems to be broken. See http://ask.sagemath.org/question/3084/notebook-and-initsage and http://trac.sagemath.org/ticket/15308.

--
John
 

Volker Braun

unread,
Oct 20, 2013, 8:49:17 AM10/20/13
to sage-s...@googlegroups.com
Attaching files doesn't work either on the notebook. Basically, nothing of the server interaction in the notebook is doctested so it tends to not work.
Reply all
Reply to author
Forward
0 new messages