Dear All, Yes, this is a problem peculiar to update-manager installs. (It does not happen with command line installs). We are busy testing a fix and expect it to be uploaded in a day or two.
In the meantime, a more generic fix for everyone is sudo mv /home/`whoami`/.sage/tmp{.broken-permissions} Regards, Jan On 14 November 2012 22:23, Kannappan Sampath <kntri...@gmail.com> wrote: > Dear grshutt, > > Could you run the Sage with sudo permissions? Also, I had more or less the > same problem, if your answer to the previous question is yes. I was > suggested that I move .sage to .sage.backup and it worked like a charm. > > I think the following is a cleaner solution (quoting Jan's tip in the > message thread I started): > > >Hi KnS, > > >Please stop sage, try this command > > >sudo mv /home/knsam/.sage/tmp{.broken-permissions} > > >And try run sage again. > > >Regards, > >Jan > > Hope one of the solutions work for you... > > > On Thu, Nov 15, 2012 at 1:42 AM, grshutt <grsh...@gmail.com> wrote: > >> I, too, have encountered two problems installing Sage 5.4. >> >> Here's the output from uname -a: >> >> Linux defoe 2.6.33.3.emp4 #1 SMP PREEMPT Tue Jun 22 08:56:49 EDT 2010 >> i686 i686 i386 GNU/Linux >> >> Distribution: >> >> Ubuntu 12.04 LTS >> >> 1. After installing Sage 5.4 via the Update Manager and starting the >> application from the command line I received an error message ending: >> >> OSError: [Errno 13] Permission denied: >> '/home/grshutt/.sage/tmp/defoe/7064' >> Error importing ipy_profile_sage - perhaps you should run %upgrade? >> WARNING: Loading of ipy_profile_sage failed. >> >> 2. Next, I compiled Sage 5.4 from source and received an error message >> ending: >> >> Testing that Sage starts... >> [2012-11-14 02:38:02] Sage version 5.4, released 2012-11-09 >> Yes, Sage starts. >> spkg/pipestatus "./sage --docbuild --no-pdf-links all html 2>&1" "tee -a >> dochtml.log" >> Traceback (most recent call last): >> File "/home/grshutt/sage-5.4/devel/sage/doc/common/builder.py", line >> 12, in <module> >> from sage.misc.misc import sage_makedirs as mkdir >> File >> "/home/grshutt/sage-5.4/local/lib/python2.7/site-packages/sage/misc/misc.py", >> line 141, in <module> >> sage_makedirs(SAGE_TMP) >> File >> "/home/grshutt/sage-5.4/local/lib/python2.7/site-packages/sage/misc/misc.py", >> line 76, in sage_makedirs >> os.makedirs(dir) >> File "/home/grshutt/sage-5.4/local/lib/python/os.py", line 157, in >> makedirs >> mkdir(name, mode) >> OSError: [Errno 13] Permission denied: >> '/home/grshutt/.sage/tmp/defoe/31451' >> Error in atexit._run_exitfuncs: >> Traceback (most recent call last): >> File "/home/grshutt/sage-5.4/local/lib/python/atexit.py", line 24, in >> _run_exitfuncs >> func(*targs, **kargs) >> File >> "/home/grshutt/sage-5.4/local/lib/python2.7/site-packages/sage/misc/temporary_file.py", >> line 48, in delete_tmpfiles >> from sage.misc.misc import SAGE_TMP >> File >> "/home/grshutt/sage-5.4/local/lib/python2.7/site-packages/sage/misc/misc.py", >> line 141, in <module> >> sage_makedirs(SAGE_TMP) >> File >> "/home/grshutt/sage-5.4/local/lib/python2.7/site-packages/sage/misc/misc.py", >> line 76, in sage_makedirs >> os.makedirs(dir) >> File "/home/grshutt/sage-5.4/local/lib/python/os.py", line 157, in >> makedirs >> mkdir(name, mode) >> OSError: [Errno 13] Permission denied: >> '/home/grshutt/.sage/tmp/defoe/31451' >> Error in sys.exitfunc: >> Traceback (most recent call last): >> File "/home/grshutt/sage-5.4/local/lib/python/atexit.py", line 24, in >> _run_exitfuncs >> func(*targs, **kargs) >> File >> "/home/grshutt/sage-5.4/local/lib/python2.7/site-packages/sage/misc/temporary_file.py", >> line 48, in delete_tmpfiles >> from sage.misc.misc import SAGE_TMP >> File >> "/home/grshutt/sage-5.4/local/lib/python2.7/site-packages/sage/misc/misc.py", >> line 141, in <module> >> sage_makedirs(SAGE_TMP) >> File >> "/home/grshutt/sage-5.4/local/lib/python2.7/site-packages/sage/misc/misc.py", >> line 76, in sage_makedirs >> os.makedirs(dir) >> File "/home/grshutt/sage-5.4/local/lib/python/os.py", line 157, in >> makedirs >> mkdir(name, mode) >> OSError: [Errno 13] Permission denied: >> '/home/grshutt/.sage/tmp/defoe/31451' >> make: *** [doc-html] Error 1 >> >> Curious, I again started Sage from the command line and received the >> following error message, which is similar to the message I received after >> installing Sage from the Update Manager and starting the application from >> the command line: >> >> ---------------------------------------------------------------------- >> | Sage Version 5.4, Release Date: 2012-11-09 | >> | Type "notebook()" for the browser-based notebook interface. | >> | Type "help()" for help. | >> ---------------------------------------------------------------------- >> ERROR: An unexpected error occurred while tokenizing input >> The following traceback may be corrupted or invalid >> The error message is: ('EOF in multi-line statement', (179, 0)) >> >> >> --------------------------------------------------------------------------- >> OSError Traceback (most recent call >> last) >> >> /home/grshutt/sage-5.4/<string> in <module>() >> >> /home/grshutt/sage-5.4/local/lib/python2.7/site-packages/sage/misc/preparser_ipython.py >> in <module>() >> 6 >> ########################################################################### >> 7 >> ----> 8 import sage.misc.interpreter >> 9 >> 10 import preparser >> >> /home/grshutt/sage-5.4/local/lib/python2.7/site-packages/sage/misc/interpreter.py >> in <module>() >> 103 >> 104 import os >> --> 105 import log >> 106 import re >> 107 >> >> /home/grshutt/sage-5.4/local/lib/python2.7/site-packages/sage/misc/log.py >> in <module>() >> 64 import interpreter >> 65 import latex >> ---> 66 import misc >> 67 >> 68 from sage.misc.viewer import browser, dvi_viewer >> >> /home/grshutt/sage-5.4/local/lib/python2.7/site-packages/sage/misc/misc.py >> in <module>() >> 139 >> 140 SAGE_TMP = os.path.join(DOT_SAGE, 'tmp', HOSTNAME, >> str(os.getpid())) >> --> 141 sage_makedirs(SAGE_TMP) >> 142 >> 143 SPYX_TMP = os.path.join(SAGE_TMP, 'spyx') >> >> /home/grshutt/sage-5.4/local/lib/python2.7/site-packages/sage/misc/misc.py >> in sage_makedirs(dir) >> 74 """ >> 75 try: >> ---> 76 os.makedirs(dir) >> 77 except OSError: >> 78 if not os.path.isdir(dir): >> >> /home/grshutt/sage-5.4/local/lib/python/os.pyc in makedirs(name, mode) >> 155 if tail == curdir: # xxx/newdir/. exists if >> xxx/newdir exists >> 156 return >> --> 157 mkdir(name, mode) >> 158 >> 159 def removedirs(name): >> >> OSError: [Errno 13] Permission denied: >> '/home/grshutt/.sage/tmp/defoe/7064' >> WARNING: Failure executing code: 'import sage.misc.preparser_ipython; >> sage.misc.preparser_ipython.magma_colon_equals=True' >> ERROR: An unexpected error occurred while tokenizing input >> The following traceback may be corrupted or invalid >> The error message is: ('EOF in multi-line statement', (179, 0)) >> >> >> --------------------------------------------------------------------------- >> OSError Traceback (most recent call >> last) >> >> /home/grshutt/sage-5.4/local/lib/python2.7/site-packages/IPython/ipmaker.pyc >> in force_import(modname, force_reload) >> 61 reload(sys.modules[modname]) >> 62 else: >> ---> 63 __import__(modname) >> 64 >> 65 >> >> /home/grshutt/sage-5.4/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) >> >> /home/grshutt/sage-5.4/local/lib/python2.7/site-packages/sage/misc/misc.py >> in <module>() >> 139 >> 140 SAGE_TMP = os.path.join(DOT_SAGE, 'tmp', HOSTNAME, >> str(os.getpid())) >> --> 141 sage_makedirs(SAGE_TMP) >> 142 >> 143 SPYX_TMP = os.path.join(SAGE_TMP, 'spyx') >> >> /home/grshutt/sage-5.4/local/lib/python2.7/site-packages/sage/misc/misc.py >> in sage_makedirs(dir) >> 74 """ >> 75 try: >> ---> 76 os.makedirs(dir) >> 77 except OSError: >> 78 if not os.path.isdir(dir): >> >> /home/grshutt/sage-5.4/local/lib/python/os.pyc in makedirs(name, mode) >> 155 if tail == curdir: # xxx/newdir/. exists if >> xxx/newdir exists >> 156 return >> --> 157 mkdir(name, mode) >> 158 >> 159 def removedirs(name): >> >> OSError: [Errno 13] Permission denied: >> '/home/grshutt/.sage/tmp/defoe/7064' >> Error importing ipy_profile_sage - perhaps you should run %upgrade? >> WARNING: Loading of ipy_profile_sage failed. >> >> <ERROR: name 'sage_prompt' is not defined> >> >> I hope this information proves useful in correcting the problem. >> >> Best regards, >> >> Graham >> >> -- >> You received this message because you are subscribed to the Google Groups >> "sage-support" group. >> To post to this group, send email to sage-support@googlegroups.com. >> To unsubscribe from this group, send email to >> sage-support+unsubscr...@googlegroups.com. >> Visit this group at http://groups.google.com/group/sage-support?hl=en. >> >> >> > > -- > You received this message because you are subscribed to the Google Groups > "sage-support" group. > To post to this group, send email to sage-support@googlegroups.com. > To unsubscribe from this group, send email to > sage-support+unsubscr...@googlegroups.com. > Visit this group at http://groups.google.com/group/sage-support?hl=en. > > > -- .~. /V\ Jan Groenewald /( )\ www.aims.ac.za ^^-^^ -- You received this message because you are subscribed to the Google Groups "sage-support" group. To post to this group, send email to sage-support@googlegroups.com. To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support?hl=en.