45 views

Skip to first unread message

Dec 1, 2011, 10:50:16 AM12/1/11

to sage-...@googlegroups.com, sage-w...@googlegroups.com

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

Dec 1, 2011, 11:51:22 AM12/1/11

to sage-windows

> /usr/local/sage/sage-4.7.2/local/lib/python2.6/site-packages/sage/misc/pran dom.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?

Yeah, I got this same error the very last time I successfully built

Sage (which means I didn't get to the Pari segfault in

http://trac.sagemath.org/sage_trac/ticket/11551).

I'd suggest trying ./sage -gdb, but I assume you've tried this; I

don't remember it giving any useful information, though this was a

while ago.

One thing I have noticed is that cygwin has the cygcheck capability,

and sometimes it turns out there are two of the same thing somewhere,

see for instance http://trac.sagemath.org/sage_trac/ticket/9167.

By the way, does that mean that it's possible that

http://trac.sagemath.org/sage_trac/ticket/6743 (with your recent

changes to the spkg list) will be ready to go? That would be

awesome. I hadn't even tried the newest ECL spkg (though I knew it

had the changes) because of my own problems with Cygwin and sed, my

apologies for not updating #6743 with that potentially useful (and, in

the event, useful!) info.

- kcrisman

Dec 1, 2011, 12:05:51 PM12/1/11

to sage-windows

This is now http://trac.sagemath.org/sage_trac/ticket/12104.

- kcrisman

Dec 1, 2011, 9:29:08 PM12/1/11

to sage-...@googlegroups.com, sage-w...@googlegroups.com

it does exist.

Here is perhaps a more telling symptom:

$ ./sage -python

Python 2.6.4 (r264:75706, Nov 29 2011, 16:54:39)

[GCC 4.5.3] on cygwin

Type "help", "copyright", "credits" or "license" for more information.

>>> import sage

>>> from sage import *

Traceback (most recent call last):

File "<stdin>", line 1, in <module>

File "/usr/local/sage/sage-4.7.2/local/lib/python2.6/site-packages/sage/all.py", line 63, in <module>

from sage.ext.c_lib import _init_csage, sig_on_count

Reply all

Reply to author

Forward

0 new messages

Search

Clear search

Close search

Google apps

Main menu