Gentoo Archives: gentoo-science

From: P Purkayastha <ppurka@×××××.com>
To: gentoo-science@l.g.o
Subject: [gentoo-science] Can not run sage-notebook
Date: Sun, 21 Aug 2011 15:51:13
Message-Id: 4E51295A.6060005@gmail.com
1 Hi all,
2 Thanks to the quick help, I could upgrade my sage to 4.7.1 (from
3 4.7.0). However, I am unable to run the notebook. And I also get a
4 similar error when I run sage by itself. Do I need to recompile some
5 packages? Thanks for any help.
6
7 I will present below two logs. The first one is when sage is run. And
8 the second one is when sage-notebook is run.
9
10 1. sage:
11 ~> sage
12 ----------------------------------------------------------------------
13 | Sage Version 4.7.1, Release Date: 2011-08-11 |
14 | Type notebook() for the GUI, and license() for information. |
15 ----------------------------------------------------------------------
16 Traceback (most recent call last):
17 File "/usr/lib64/python2.7/site-packages/sage/all_cmdline.py", line
18 14, in <module>
19 from sage.all import *
20 File "/usr/lib64/python2.7/site-packages/sage/all.py", line 85, in
21 <module>
22 import sage.symbolic.pynac
23 File "expression.pxd", line 6, in init sage.symbolic.pynac
24 (sage/symbolic/pynac.cpp:19320)
25 File "expression.pyx", line 6651, in init sage.symbolic.expression
26 (sage/symbolic/expression.cpp:36442)
27 File "/usr/lib64/python2.7/site-packages/sage/misc/decorators.py",
28 line 648, in __call__
29 @sage_wraps(func)
30 File "/usr/lib64/python2.7/site-packages/sage/misc/decorators.py",
31 line 106, in f
32 argspec = sage_getargspec(wrapped)
33 File "/usr/lib64/python2.7/site-packages/sage/misc/sageinspect.py",
34 line 1076, in sage_getargspec
35 return inspect.ArgSpec(*_sage_getargspec_cython(sage_getsource(obj)))
36 File "/usr/lib64/python2.7/site-packages/sage/misc/sageinspect.py",
37 line 865, in _sage_getargspec_cython
38 raise ValueError, "Could not parse cython argspec"
39 ValueError: Could not parse cython argspec
40
41 ---------------------------------------------------------------------------
42 ValueError Traceback (most recent call last)
43
44 /usr/lib64/python2.7/site-packages/IPython/ipmaker.pyc in
45 force_import(modname, force_reload)
46 61 reload(sys.modules[modname])
47 62 else:
48 ---> 63 __import__(modname)
49 64
50 65
51
52 /usr/bin/ipy_profile_sage.py in <module>()
53 5 preparser(True)
54 6
55 ----> 7 import sage.all_cmdline
56 8 sage.all_cmdline._init_cmdline(globals())
57 9
58
59 /usr/lib64/python2.7/site-packages/sage/all_cmdline.py in <module>()
60 22 if 'type object' in str(msg):
61 23 msg = str(msg) + '\n\n** In Sage, the easiest fix for
62 this problem is to type "sage -ba"\n to rebuild all the Cython code
63 (this takes several minutes).\n Alternatively, touch the last .pyx
64 file in the traceback above. **\n'
65 ---> 24 raise ValueError, msg
66 25
67 26
68
69 ValueError: Could not parse cython argspec
70 Error importing ipy_profile_sage - perhaps you should run %upgrade?
71 WARNING: Loading of ipy_profile_sage failed.
72
73 sage:
74
75
76
77 2. sage-notebook:
78 ~> sage-notebook
79 ----------------------------------------------------------------------
80 | Sage Version 4.7.1, Release Date: 2011-08-11 |
81 | Type notebook() for the GUI, and license() for information. |
82 ----------------------------------------------------------------------
83
84 Please wait while the Sage Notebook server starts...
85 Traceback (most recent call last):
86 File "/usr/bin/sage-notebook-real", line 9, in <module>
87 from sage.server.notebook.all import notebook
88 File
89 "/usr/lib64/python2.7/site-packages/sage/server/notebook/all.py", line
90 22, in <module>
91 from sagenb.notebook.all import *
92 File "/usr/lib64/python2.7/site-packages/sagenb/notebook/all.py",
93 line 16, in <module>
94 from notebook_object import notebook, inotebook
95 File
96 "/usr/lib64/python2.7/site-packages/sagenb/notebook/notebook_object.py",
97 line 17, in <module>
98 import notebook as _notebook
99 File
100 "/usr/lib64/python2.7/site-packages/sagenb/notebook/notebook.py", line
101 35, in <module>
102 from sagenb.misc.misc import (pad_zeros, cputime, tmp_dir, load, save,
103 File "/usr/lib64/python2.7/site-packages/sagenb/misc/misc.py", line
104 183, in <module>
105 import sage.all
106 File "/usr/lib64/python2.7/site-packages/sage/all.py", line 85, in
107 <module>
108 import sage.symbolic.pynac
109 File "expression.pxd", line 6, in init sage.symbolic.pynac
110 (sage/symbolic/pynac.cpp:19320)
111 File "expression.pyx", line 6651, in init sage.symbolic.expression
112 (sage/symbolic/expression.cpp:36442)
113 File "/usr/lib64/python2.7/site-packages/sage/misc/decorators.py",
114 line 648, in __call__
115 @sage_wraps(func)
116 File "/usr/lib64/python2.7/site-packages/sage/misc/decorators.py",
117 line 106, in f
118 argspec = sage_getargspec(wrapped)
119 File "/usr/lib64/python2.7/site-packages/sage/misc/sageinspect.py",
120 line 1076, in sage_getargspec
121 return inspect.ArgSpec(*_sage_getargspec_cython(sage_getsource(obj)))
122 File "/usr/lib64/python2.7/site-packages/sage/misc/sageinspect.py",
123 line 865, in _sage_getargspec_cython
124 raise ValueError, "Could not parse cython argspec"
125 ValueError: Could not parse cython argspec
126 ~ [1] >

Replies

Subject Author
Re: [gentoo-science] Can not run sage-notebook v_2e@×××.net