From: P Purkayastha <ppurka@gmail.com>
To: gentoo-science@lists.gentoo.org
Subject: [gentoo-science] Can not run sage-notebook
Date: Sun, 21 Aug 2011 23:50:50 +0800 [thread overview]
Message-ID: <4E51295A.6060005@gmail.com> (raw)
Hi all,
Thanks to the quick help, I could upgrade my sage to 4.7.1 (from
4.7.0). However, I am unable to run the notebook. And I also get a
similar error when I run sage by itself. Do I need to recompile some
packages? Thanks for any help.
I will present below two logs. The first one is when sage is run. And
the second one is when sage-notebook is run.
1. sage:
~> sage
----------------------------------------------------------------------
| Sage Version 4.7.1, Release Date: 2011-08-11 |
| Type notebook() for the GUI, and license() for information. |
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib64/python2.7/site-packages/sage/all_cmdline.py", line
14, in <module>
from sage.all import *
File "/usr/lib64/python2.7/site-packages/sage/all.py", line 85, in
<module>
import sage.symbolic.pynac
File "expression.pxd", line 6, in init sage.symbolic.pynac
(sage/symbolic/pynac.cpp:19320)
File "expression.pyx", line 6651, in init sage.symbolic.expression
(sage/symbolic/expression.cpp:36442)
File "/usr/lib64/python2.7/site-packages/sage/misc/decorators.py",
line 648, in __call__
@sage_wraps(func)
File "/usr/lib64/python2.7/site-packages/sage/misc/decorators.py",
line 106, in f
argspec = sage_getargspec(wrapped)
File "/usr/lib64/python2.7/site-packages/sage/misc/sageinspect.py",
line 1076, in sage_getargspec
return inspect.ArgSpec(*_sage_getargspec_cython(sage_getsource(obj)))
File "/usr/lib64/python2.7/site-packages/sage/misc/sageinspect.py",
line 865, in _sage_getargspec_cython
raise ValueError, "Could not parse cython argspec"
ValueError: Could not parse cython argspec
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
/usr/lib64/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
/usr/bin/ipy_profile_sage.py in <module>()
5 preparser(True)
6
----> 7 import sage.all_cmdline
8 sage.all_cmdline._init_cmdline(globals())
9
/usr/lib64/python2.7/site-packages/sage/all_cmdline.py in <module>()
22 if 'type object' in str(msg):
23 msg = str(msg) + '\n\n** In Sage, the easiest fix for
this problem is to type "sage -ba"\n to rebuild all the Cython code
(this takes several minutes).\n Alternatively, touch the last .pyx
file in the traceback above. **\n'
---> 24 raise ValueError, msg
25
26
ValueError: Could not parse cython argspec
Error importing ipy_profile_sage - perhaps you should run %upgrade?
WARNING: Loading of ipy_profile_sage failed.
sage:
2. sage-notebook:
~> sage-notebook
----------------------------------------------------------------------
| Sage Version 4.7.1, Release Date: 2011-08-11 |
| Type notebook() for the GUI, and license() for information. |
----------------------------------------------------------------------
Please wait while the Sage Notebook server starts...
Traceback (most recent call last):
File "/usr/bin/sage-notebook-real", line 9, in <module>
from sage.server.notebook.all import notebook
File
"/usr/lib64/python2.7/site-packages/sage/server/notebook/all.py", line
22, in <module>
from sagenb.notebook.all import *
File "/usr/lib64/python2.7/site-packages/sagenb/notebook/all.py",
line 16, in <module>
from notebook_object import notebook, inotebook
File
"/usr/lib64/python2.7/site-packages/sagenb/notebook/notebook_object.py",
line 17, in <module>
import notebook as _notebook
File
"/usr/lib64/python2.7/site-packages/sagenb/notebook/notebook.py", line
35, in <module>
from sagenb.misc.misc import (pad_zeros, cputime, tmp_dir, load, save,
File "/usr/lib64/python2.7/site-packages/sagenb/misc/misc.py", line
183, in <module>
import sage.all
File "/usr/lib64/python2.7/site-packages/sage/all.py", line 85, in
<module>
import sage.symbolic.pynac
File "expression.pxd", line 6, in init sage.symbolic.pynac
(sage/symbolic/pynac.cpp:19320)
File "expression.pyx", line 6651, in init sage.symbolic.expression
(sage/symbolic/expression.cpp:36442)
File "/usr/lib64/python2.7/site-packages/sage/misc/decorators.py",
line 648, in __call__
@sage_wraps(func)
File "/usr/lib64/python2.7/site-packages/sage/misc/decorators.py",
line 106, in f
argspec = sage_getargspec(wrapped)
File "/usr/lib64/python2.7/site-packages/sage/misc/sageinspect.py",
line 1076, in sage_getargspec
return inspect.ArgSpec(*_sage_getargspec_cython(sage_getsource(obj)))
File "/usr/lib64/python2.7/site-packages/sage/misc/sageinspect.py",
line 865, in _sage_getargspec_cython
raise ValueError, "Could not parse cython argspec"
ValueError: Could not parse cython argspec
~ [1] >
next reply other threads:[~2011-08-21 15:51 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-21 15:50 P Purkayastha [this message]
2011-08-21 20:49 ` [gentoo-science] Can not run sage-notebook v_2e
2011-08-21 21:38 ` fbissey
2011-08-21 21:54 ` P Purkayastha
2011-08-21 21:57 ` fbissey
2011-08-21 22:06 ` P Purkayastha
2011-08-21 22:48 ` fbissey
2011-08-21 23:17 ` P Purkayastha
2011-08-21 23:59 ` fbissey
2011-08-22 2:57 ` P Purkayastha
2011-08-22 8:56 ` Christopher Schwan
2011-08-22 9:27 ` P Purkayastha
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4E51295A.6060005@gmail.com \
--to=ppurka@gmail.com \
--cc=gentoo-science@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox