Hello,

The documentation seems to be boken on 6.2.rc0. The problem pops up
when accessing to the documentation of Cython objects as in the log
below. The problem ends up in sphinx, so I am not sure it is because
of us.

I would be happy if somebody test it on his/her machine.

sage: QQ.frobenius_endomorphism??
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-4-5263aaa4b87c> in <module>()
----> 1 get_ipython().magic(u'pinfo2 QQ.frobenius_endomorphism')

/opt/sage/local/lib/python2.7/site-packages/IPython/core/interactiveshell.pyc
in magic(self, arg_s)
   2163         magic_name, _, magic_arg_s = arg_s.partition(' ')
   2164         magic_name = magic_name.lstrip(prefilter.ESC_MAGIC)
-> 2165         return self.run_line_magic(magic_name, magic_arg_s)
   2166
   2167     
#-------------------------------------------------------------------------

/opt/sage/local/lib/python2.7/site-packages/IPython/core/interactiveshell.pyc
in run_line_magic(self, magic_name, line)
   2084                 kwargs['local_ns'] = sys._getframe(stack_depth).f_locals
   2085             with self.builtin_trap:
-> 2086                 result = fn(*args,**kwargs)
   2087             return result
   2088

/opt/sage/local/lib/python2.7/site-packages/IPython/core/magics/namespace.pyc
in pinfo2(self, parameter_s, namespaces)

/opt/sage/local/lib/python2.7/site-packages/IPython/core/magic.pyc in
<lambda>(f, *a, **k)
    189     # but it's overkill for just that one bit of state.
    190     def magic_deco(arg):
--> 191         call = lambda f, *a, **k: f(*a, **k)
    192
    193         if callable(arg):

/opt/sage/local/lib/python2.7/site-packages/IPython/core/magics/namespace.pyc
in pinfo2(self, parameter_s, namespaces)
     65         '%pinfo2 object' is just a synonym for object?? or ??object."""
     66         self.shell._inspect('pinfo', parameter_s, detail_level=1,
---> 67                             namespaces=namespaces)
     68
     69     @skip_doctest

/opt/sage/local/lib/python2.7/site-packages/IPython/core/interactiveshell.pyc
in _inspect(self, meth, oname, namespaces, **kw)
   1455                 pmethod(info.obj, oname, formatter)
   1456             elif meth == 'pinfo':
-> 1457                 pmethod(info.obj, oname, formatter, info, **kw)
   1458             else:
   1459                 pmethod(info.obj, oname)

/opt/sage/local/lib/python2.7/site-packages/IPython/core/oinspect.pyc
in pinfo(self, obj, oname, formatter, info, detail_level)
    558         """
    559         info = self.info(obj, oname=oname, formatter=formatter,
--> 560                             info=info, detail_level=detail_level)
    561         displayfields = []
    562         def add_fields(fields):

/opt/sage/local/lib/python2.7/site-packages/IPython/core/oinspect.pyc
in info(self, obj, oname, formatter, info, detail_level)
    646                     ds += "\nDocstring:\n" + obj.__doc__
    647         else:
--> 648             ds = getdoc(obj)
    649             if ds is None:
    650                 ds = '<no docstring>'

/opt/sage/local/lib/python2.7/site-packages/sage/misc/sageinspect.pyc
in sage_getdoc(obj, obj_name, embedded_override)
   1521         return ''
   1522
-> 1523     s = sage.misc.sagedoc.format(str(r),
embedded=(embedded_override or EMBEDDED_MODE))
   1524
   1525     # If there is a Cython embedded position, it needs to be stripped

/opt/sage/local/lib/python2.7/site-packages/sage/misc/sagedoc.pyc in
format(s, embedded)
    566             s = process_mathtt(s)
    567         s = process_extlinks(s, embedded=embedded)
--> 568         s = detex(s, embedded=embedded)
    569     return embedding_info+s
    570

/opt/sage/local/lib/python2.7/site-packages/sage/misc/sagedoc.pyc in
detex(s, embedded)
    200         s = _rmcmd(s, 'mathrm')
    201         from sagenb.misc.sphinxify import sphinxify
--> 202         s = sphinxify(s, format='text')
    203         for a,b in math_substitutes:  # do math substitutions
    204             s = s.replace(a,b)

/opt/sage/local/lib/python2.7/site-packages/sagenb-0.10.8.2-py2.7.egg/sagenb/misc/sphinxify.pyc
in sphinxify(docstring, format)
    119     old_sys_path = list(sys.path)  # Sphinx modifies sys.path
    120     sphinx_app = Sphinx(srcdir, confdir, srcdir, doctreedir, format,
--> 121                         confoverrides, None, None, True)
    122     sphinx_app.build(None, [rst_name])
    123     sys.path = old_sys_path

/opt/sage/local/lib/python2.7/site-packages/Sphinx-1.1.2-py2.7.egg/sphinx/application.pyc
in __init__(self, srcdir, confdir, outdir, doctreedir, buildername,
confoverrides, status, warning, freshenv, warningiserror, tags)
    112         # load all user-given extension modules
    113         for extension in self.config.extensions:
--> 114             self.setup_extension(extension)
    115         # the config file itself can be an extension
    116         if self.config.setup:

/opt/sage/local/lib/python2.7/site-packages/Sphinx-1.1.2-py2.7.egg/sphinx/application.pyc
in setup_extension(self, extension)
    254         else:
    255             try:
--> 256                 mod.setup(self)
    257             except VersionRequirementError, err:
    258                 # add the extension name to the version required

/opt/sage/local/lib/python2.7/site-packages/Sphinx-1.1.2-py2.7.egg/sphinx/ext/mathjax.pyc
in setup(app)
     60
     61 def setup(app):
---> 62     mathbase_setup(app, (html_visit_math, None),
(html_visit_displaymath, None))
     63     app.add_config_value('mathjax_path',
     64
'http://cdn.mathjax.org/mathjax/latest/MathJax.js?'

/opt/sage/local/lib/python2.7/site-packages/Sphinx-1.1.2-py2.7.egg/sphinx/ext/mathbase.pyc
in setup_math(app, htmlinlinevisitors, htmldisplayvisitors)
    178         man=(man_visit_math, None),
    179         texinfo=(texinfo_visit_math, None),
--> 180         html=htmlinlinevisitors)
    181     app.add_node(displaymath,
    182         latex=(latex_visit_displaymath, None),

/opt/sage/local/lib/python2.7/site-packages/Sphinx-1.1.2-py2.7.egg/sphinx/application.pyc
in add_node(self, node, **kwds)
    360                 from sphinx.writers.html import HTMLTranslator
as translator
    361             elif key == 'latex':
--> 362                 from sphinx.writers.latex import
LaTeXTranslator as translator
    363             elif key == 'text':
    364                 from sphinx.writers.text import TextTranslator
as translator

/opt/sage/local/lib/python2.7/site-packages/Sphinx-1.1.2-py2.7.egg/sphinx/writers/latex.py
in <module>()
     21
     22 from sphinx import addnodes
---> 23 from sphinx import highlighting
     24 from sphinx.errors import SphinxError
     25 from sphinx.locale import admonitionlabels, versionlabels, _

/opt/sage/local/lib/python2.7/site-packages/Sphinx-1.1.2-py2.7.egg/sphinx/highlighting.py
in <module>()
     22
     23 from sphinx.util.texescape import tex_hl_escape_map_new
---> 24 from sphinx.ext import doctest
     25
     26 try:

/opt/sage/local/lib/python2.7/site-packages/Sphinx-1.1.2-py2.7.egg/sphinx/ext/doctest.py
in <module>()
    109
    110
--> 111 parser = doctest.DocTestParser()
    112
    113 # helper classes

AttributeError: 'module' object has no attribute 'DocTestParser'

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to