Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Thanks a lot for your response. Well at least entering "sage -sh" in terminal should result in "sage prompt" which in my case opens the sage notebook!!

Let me first mention something I forgot to! I always have to run sage from terminal with root privileges to be able to run it correctly and if not running sage(same as clicking it in Applications) results in a new tab which states that server is starting but nothing happens! Another new tab with the address localhost:8888 only opens if I ran sage with root privileges! By the way I copied the application from the dmg to my Applications folder!

Now about the method you told, I've found the terminal submenu and ran it and I faced this:

/Applications/Sage-4.7.2-OSX-64bit-10.6.app/Contents/Resources/sage/sage; exit
----------------------------------------------------------------------
| Sage Version 4.7.2, Release Date: 2011-10-29                       |
| Type notebook() for the GUI, and license() for information.        |
----------------------------------------------------------------------
[Errno 13] Permission denied: '/Users/sabxine/.sage//temp/Najis_MacBook_Air.local/2810/'
---------------------------------------------------------------------------
OSError                                   Traceback (most recent call last)

/Applications/Sage-4.7.2-OSX-64bit-10.6.app/Contents/Resources/sage/local/bin/<string> in <module>()

/Applications/Sage-4.7.2-OSX-64bit-10.6.app/Contents/Resources/sage/local/lib/python2.6/site-packages/sage/misc/preparser_ipython.py in <module>()
      6 ###########################################################################
      7 
----> 8 import sage.misc.interpreter
      9 
     10 import preparser

/Applications/Sage-4.7.2-OSX-64bit-10.6.app/Contents/Resources/sage/local/lib/python2.6/site-packages/sage/misc/interpreter.py in <module>()
    100 
    101 import os
--> 102 import log
    103 import re
    104 

/Applications/Sage-4.7.2-OSX-64bit-10.6.app/Contents/Resources/sage/local/lib/python2.6/site-packages/sage/misc/log.py in <module>()
     63 
     64 import interpreter
---> 65 import latex
     66 import misc
     67 

/Applications/Sage-4.7.2-OSX-64bit-10.6.app/Contents/Resources/sage/local/lib/python2.6/site-packages/sage/misc/latex.py in <module>()
     63 import types
     64 
---> 65 from misc import tmp_dir, graphics_filename
     66 import sage_eval
     67 from sage.misc.sage_ostools import have_program

/Applications/Sage-4.7.2-OSX-64bit-10.6.app/Contents/Resources/sage/local/lib/python2.6/site-packages/sage/misc/misc.py in <module>()
    116     except OSError, msg:
    117         print msg
--> 118         raise OSError, " ** Error trying to create the Sage tmp directory in your home directory.  A possible cause of this might be that you built or upgraded Sage after typing 'su'.  You probably need to delete the directory $HOME/.sage."
    119 
    120 SAGE_DATA = '%s/data/'%SAGE_ROOT

OSError:  ** Error trying to create the Sage tmp directory in your home directory.  A possible cause of this might be that you built or upgraded Sage after typing 'su'.  You probably need to delete the directory $HOME/.sage.
WARNING: Failure executing code: 'import sage.misc.preparser_ipython;  sage.misc.preparser_ipython.magma_colon_equals=True'
[Errno 13] Permission denied: '/Users/sabxine/.sage//temp/Najis_MacBook_Air.local/2810/'
---------------------------------------------------------------------------
OSError                                   Traceback (most recent call last)

/Applications/Sage-4.7.2-OSX-64bit-10.6.app/Contents/Resources/sage/local/lib/python2.6/site-packages/IPython/ipmaker.pyc in force_import(modname, force_reload)
     61         reload(sys.modules[modname])
     62     else:
---> 63         __import__(modname)
     64         
     65 

/Applications/Sage-4.7.2-OSX-64bit-10.6.app/Contents/Resources/sage/local/bin/ipy_profile_sage.py in <module>()
      1 import os
      2 if 'SAGE_CLEAN' not in os.environ:
----> 3     import sage.misc.misc
      4     from sage.misc.interpreter import preparser, _ip
      5     preparser(True)

/Applications/Sage-4.7.2-OSX-64bit-10.6.app/Contents/Resources/sage/local/lib/python2.6/site-packages/sage/misc/misc.py in <module>()
    116     except OSError, msg:
    117         print msg
--> 118         raise OSError, " ** Error trying to create the Sage tmp directory in your home directory.  A possible cause of this might be that you built or upgraded Sage after typing 'su'.  You probably need to delete the directory $HOME/.sage."
    119 
    120 SAGE_DATA = '%s/data/'%SAGE_ROOT

OSError:  ** Error trying to create the Sage tmp directory in your home directory.  A possible cause of this might be that you built or upgraded Sage after typing 'su'.  You probably need to delete the directory $HOME/.sage.
Error importing ipy_profile_sage - perhaps you should run %upgrade?
WARNING: Loading of ipy_profile_sage failed.

<ERROR: name 'sage_prompt' is not defined>

Any helps will be greatly welcomed :)

Thanks a lot for your response. Well at least entering "sage -sh" in terminal should result in "sage prompt" which in my case opens the sage notebook!!

Let me first mention something I forgot to! I always have to run sage from terminal with root privileges to be able to run it correctly and if not running sage(same as clicking it in Applications) results in a new tab which states that server is starting but nothing happens! Another new tab with the address localhost:8888 only opens if I ran sage with root privileges! By the way I copied the application from the dmg to my Applications folder!

Now about the method you told, I've found the terminal submenu and ran it and I faced this:

/Applications/Sage-4.7.2-OSX-64bit-10.6.app/Contents/Resources/sage/sage; exit
----------------------------------------------------------------------
| Sage Version 4.7.2, Release Date: 2011-10-29                       |
| Type notebook() for the GUI, and license() for information.        |
----------------------------------------------------------------------
[Errno 13] Permission denied: '/Users/sabxine/.sage//temp/Najis_MacBook_Air.local/2810/'
'/Users/******/.sage//temp/****s_MacBook_Air.local/2810/'
---------------------------------------------------------------------------
OSError                                   Traceback (most recent call last)

/Applications/Sage-4.7.2-OSX-64bit-10.6.app/Contents/Resources/sage/local/bin/<string> in <module>()

/Applications/Sage-4.7.2-OSX-64bit-10.6.app/Contents/Resources/sage/local/lib/python2.6/site-packages/sage/misc/preparser_ipython.py in <module>()
      6 ###########################################################################
      7 
----> 8 import sage.misc.interpreter
      9 
     10 import preparser

/Applications/Sage-4.7.2-OSX-64bit-10.6.app/Contents/Resources/sage/local/lib/python2.6/site-packages/sage/misc/interpreter.py in <module>()
    100 
    101 import os
--> 102 import log
    103 import re
    104 

/Applications/Sage-4.7.2-OSX-64bit-10.6.app/Contents/Resources/sage/local/lib/python2.6/site-packages/sage/misc/log.py in <module>()
     63 
     64 import interpreter
---> 65 import latex
     66 import misc
     67 

/Applications/Sage-4.7.2-OSX-64bit-10.6.app/Contents/Resources/sage/local/lib/python2.6/site-packages/sage/misc/latex.py in <module>()
     63 import types
     64 
---> 65 from misc import tmp_dir, graphics_filename
     66 import sage_eval
     67 from sage.misc.sage_ostools import have_program

/Applications/Sage-4.7.2-OSX-64bit-10.6.app/Contents/Resources/sage/local/lib/python2.6/site-packages/sage/misc/misc.py in <module>()
    116     except OSError, msg:
    117         print msg
--> 118         raise OSError, " ** Error trying to create the Sage tmp directory in your home directory.  A possible cause of this might be that you built or upgraded Sage after typing 'su'.  You probably need to delete the directory $HOME/.sage."
    119 
    120 SAGE_DATA = '%s/data/'%SAGE_ROOT

OSError:  ** Error trying to create the Sage tmp directory in your home directory.  A possible cause of this might be that you built or upgraded Sage after typing 'su'.  You probably need to delete the directory $HOME/.sage.
WARNING: Failure executing code: 'import sage.misc.preparser_ipython;  sage.misc.preparser_ipython.magma_colon_equals=True'
[Errno 13] Permission denied: '/Users/sabxine/.sage//temp/Najis_MacBook_Air.local/2810/'
'/Users/******/.sage//temp/****s_MacBook_Air.local/2810/'
---------------------------------------------------------------------------
OSError                                   Traceback (most recent call last)

/Applications/Sage-4.7.2-OSX-64bit-10.6.app/Contents/Resources/sage/local/lib/python2.6/site-packages/IPython/ipmaker.pyc in force_import(modname, force_reload)
     61         reload(sys.modules[modname])
     62     else:
---> 63         __import__(modname)
     64         
     65 

/Applications/Sage-4.7.2-OSX-64bit-10.6.app/Contents/Resources/sage/local/bin/ipy_profile_sage.py in <module>()
      1 import os
      2 if 'SAGE_CLEAN' not in os.environ:
----> 3     import sage.misc.misc
      4     from sage.misc.interpreter import preparser, _ip
      5     preparser(True)

/Applications/Sage-4.7.2-OSX-64bit-10.6.app/Contents/Resources/sage/local/lib/python2.6/site-packages/sage/misc/misc.py in <module>()
    116     except OSError, msg:
    117         print msg
--> 118         raise OSError, " ** Error trying to create the Sage tmp directory in your home directory.  A possible cause of this might be that you built or upgraded Sage after typing 'su'.  You probably need to delete the directory $HOME/.sage."
    119 
    120 SAGE_DATA = '%s/data/'%SAGE_ROOT

OSError:  ** Error trying to create the Sage tmp directory in your home directory.  A possible cause of this might be that you built or upgraded Sage after typing 'su'.  You probably need to delete the directory $HOME/.sage.
Error importing ipy_profile_sage - perhaps you should run %upgrade?
WARNING: Loading of ipy_profile_sage failed.

<ERROR: name 'sage_prompt' is not defined>

Any helps will be greatly welcomed :)