public inbox for gentoo-science@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-science] Can not run sage-notebook
@ 2011-08-21 15:50 P Purkayastha
  2011-08-21 20:49 ` v_2e
  0 siblings, 1 reply; 12+ messages in thread
From: P Purkayastha @ 2011-08-21 15:50 UTC (permalink / raw
  To: gentoo-science

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] >



^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2011-08-22  9:28 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-21 15:50 [gentoo-science] Can not run sage-notebook P Purkayastha
2011-08-21 20:49 ` 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox