Trying to start freshly built sage on Cygwin (Windows 7) I get:
Dima@SPMS-DIMA-W7 /usr/local/sage/sage-4.7.2
$ ./sage
----------------------------------------------------------------------
| Sage Version 4.7.2, Release Date: 2011-10-29 |
| Type notebook() for the GUI, and license() for information. |
----------------------------------------------------------------------
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
/usr/local/sage/sage-4.7.2/local/bin/<string> in <module>()
/usr/local/sage/sage-4.7.2/local/lib/python2.6/site-packages/sage/misc/preparser_ipython.py in <module>()
6 ###########################################################################
7
----> 8 import sage.misc.interpreter
9
10 import preparser
/usr/local/sage/sage-4.7.2/local/lib/python2.6/site-packages/sage/misc/interpreter.py in <module>()
100
101 import os
--> 102 import log
103 import re
104
/usr/local/sage/sage-4.7.2/local/lib/python2.6/site-packages/sage/misc/log.py in <module>()
63
64 import interpreter
---> 65 import latex
66 import misc
67
/usr/local/sage/sage-4.7.2/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
/usr/local/sage/sage-4.7.2/local/lib/python2.6/site-packages/sage/misc/misc.py in <module>()
36
37 import operator, os, stat, socket, sys, signal, time, weakref, resource, math
---> 38 import sage.misc.prandom as random
39
40 from banner import version, banner
/usr/local/sage/sage-4.7.2/local/lib/python2.6/site-packages/sage/misc/prandom.py in <module>()
54 # setting seeds should only be done through sage.misc.randstate .
55
---> 56 from sage.misc.randstate import current_randstate
57
58 def _pyrand():
ImportError: No such file or directory
WARNING: Failure executing code: 'import sage.misc.preparser_ipython; sage.misc.preparser_ipython.magma_colon_equals=True'
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
/usr/local/sage/sage-4.7.2/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
/usr/local/sage/sage-4.7.2/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)
/usr/local/sage/sage-4.7.2/local/lib/python2.6/site-packages/sage/misc/misc.py in <module>()
36
37 import operator, os, stat, socket, sys, signal, time, weakref, resource, math
---> 38 import sage.misc.prandom as random
39
40 from banner import version, banner
/usr/local/sage/sage-4.7.2/local/lib/python2.6/site-packages/sage/misc/prandom.py in <module>()
54 # setting seeds should only be done through sage.misc.randstate .
55
---> 56 from sage.misc.randstate import current_randstate
57
58 def _pyrand():
ImportError: No such file or directory
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 idea what exactly fails?
(./sage -gap, -python, -ipython, -maxima, -lisp, -gp all work, just in case...)
How would you debug this?
Thanks,
Dima