Dear all,

I had a great idea (so I thought) about upgrading in the background
while the sage server is still running. Here is what I did, but it
didn't work for some reason: In OS X 10.4, I shut down the server
briefly, changed into the sage directory, ran "cp -r * /newdirectory"
and restarted the server at the original location. Then I wanted to
run sage -upgrade in the new directory, but before doing so, I wanted
to test whether it still worked. As always after moving the sage
folder, it started with regenerating the install PATH, but this time
something went wrong and sage does not run from this folder. Did I do
something obviously wrong? Usually, I just copied the folder in the
Finder and it mostly worked but this time I wanted to do it more
elegantly and it failed. Should I have added a particular option to
the copy command? I attached the error messages below. Thanks for your
help already!

Stan



----------------------------------------------------------------------
| Sage Version 3.3, Release Date: 2009-02-21                         |
| Type notebook() for the GUI, and license() for information.        |
----------------------------------------------------------------------
The SAGE install tree may have moved.
Regenerating Python.pyo and .pyc files that hardcode the install PATH
(please wait at
most a few minutes)...
Do not interrupt this.
Warning: something went wrong updating the easy-install.pth file.
---------------------------------------------------------------------------
RuntimeError                              Traceback (most recent call
last)

/opt/sage/local/lib/python2.5/site-packages/IPython/ipmaker.py in
force_import(modname)
     64         reload(sys.modules[modname])
     65     else:
---> 66         __import__(modname)
     67
     68

/opt/sage/ipy_profile_sage.py in <module>()
     14     from sage.misc.interpreter import attached_files
     15
---> 16     branch = sage.misc.misc.branch_current_hg_notice
(sage.misc.misc.branch_current_hg())
     17     if branch:
     18         print branch

/opt/sage/local/lib/python2.5/site-packages/sage/misc/misc.py in
branch_current_hg()
   1528     i = s.rfind('->')
   1529     if i == -1:
-> 1530         raise RuntimeError, "unable to determine branch?!"
   1531     s = s[i+2:]
   1532     i = s.find('-')

RuntimeError: unable to determine branch?!
Error importing ipy_profile_sage - perhaps you should run %upgrade?
WARNING: Loading of ipy_profile_sage failed.

--~--~---------~--~----~------------~-------~--~----~
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
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to