Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-science
Navigation:
Lists: gentoo-science: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-science@g.o
From: P Purkayastha <ppurka@...>
Subject: Can not run sage-notebook
Date: Sun, 21 Aug 2011 23:50:50 +0800
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] >


Replies:
Re: Can not run sage-notebook
-- v_2e
Navigation:
Lists: gentoo-science: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
tachyon-0.98.9-r1 fails to install due to wrong USE flags
Next by thread:
Re: Can not run sage-notebook
Previous by date:
Re: [sage-on-gentoo] sci-chemistry/jmol{,-applet}, sci-mathematics/sage-doc fails to compile
Next by date:
Re: tachyon-0.98.9-r1 fails to install due to wrong USE flags


Updated Jul 05, 2012

Summary: Archive of the gentoo-science mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.