#11298: Extend the capabilities of Sage's introspection
-------------------------------------+--------------------------------------
   Reporter:  SimonKing              |          Owner:  jason           
       Type:  defect                 |         Status:  needs_work      
   Priority:  major                  |      Milestone:  sage-4.7.1      
  Component:  misc                   |       Keywords:  edit sageinspect
Work_issues:  Fix crash at docbuild  |       Upstream:  N/A             
   Reviewer:                         |         Author:  Simon King      
     Merged:                         |   Dependencies:  #9976           
-------------------------------------+--------------------------------------
Changes (by SimonKing):

  * status:  needs_review => needs_work
  * work_issues:  => Fix crash at docbuild


Comment:

 I noticed that building the documentation crashes when the second patch is
 applied. It is as follows:

 {{{
 Running Sphinx v1.0.4
 loading pickled environment... done
 building [html]: targets for 39 source files that are out of date
 updating environment: 0 added, 39 changed, 0 removed
 reading sources... [ 33%]
 sage/rings/polynomial/multi_polynomial_ideal_libsingular
 Exception occurred:
   File "/mnt/local/king/SAGE/sage-4.7.rc2/local/lib/python2.6/site-
 packages/Sphinx-1.0.4-py2.6.egg/sphinx/config.py", line 207, in
 __getattr__
     raise AttributeError('No such config value: %s' % name)
 AttributeError: No such config value: autodoc_default_flags
 The full traceback has been saved in /tmp/sphinx-err-1tNBmd.log, if you
 want to report the issue to the developers.
 Please also report this if it was a user error, so that a better error
 message can be provided next time.
 Either send bugs to the mailing list at <http://groups.google.com/group
 /sphinx-dev/>,
 or report them in the tracker at
 <http://bitbucket.org/birkenfeld/sphinx/issues/>. Thanks!
 Build finished.  The built documents can be found in
 /mnt/local/king/SAGE/sage-4.7.rc2/devel/sage/doc/output/html/en/reference
 }}}

 and the traceback is
 {{{
 # Sphinx version: 1.0.4
 # Docutils version: 0.5 release
 # Jinja2 version: 2.5.5
 Traceback (most recent call last):
   File "/mnt/local/king/SAGE/sage-4.7.rc2/local/lib/python2.6/site-
 packages/Sphinx-1.0.4-py2.6.egg/sphinx/cmdline.py", line 173, in main
     app.build(force_all, filenames)
   File "/mnt/local/king/SAGE/sage-4.7.rc2/local/lib/python2.6/site-
 packages/Sphinx-1.0.4-py2.6.egg/sphinx/application.py", line 207, in build
     self.builder.build_update()
   File "/mnt/local/king/SAGE/sage-4.7.rc2/local/lib/python2.6/site-
 packages/Sphinx-1.0.4-py2.6.egg/sphinx/builders/__init__.py", line 198, in
 build_update
     'out of date' % len(to_build))
   File "/mnt/local/king/SAGE/sage-4.7.rc2/local/lib/python2.6/site-
 packages/Sphinx-1.0.4-py2.6.egg/sphinx/builders/__init__.py", line 218, in
 build
     purple, length):
   File "/mnt/local/king/SAGE/sage-4.7.rc2/local/lib/python2.6/site-
 packages/Sphinx-1.0.4-py2.6.egg/sphinx/builders/__init__.py", line 120, in
 status_iterator
     for item in iterable:
   File "/mnt/local/king/SAGE/sage-4.7.rc2/local/lib/python2.6/site-
 packages/Sphinx-1.0.4-py2.6.egg/sphinx/environment.py", line 518, in
 update_generator
     self.read_doc(docname, app=app)
   File "/mnt/local/king/SAGE/sage-4.7.rc2/local/lib/python2.6/site-
 packages/Sphinx-1.0.4-py2.6.egg/sphinx/environment.py", line 658, in
 read_doc
     pub.publish()
   File "/mnt/local/king/SAGE/sage-4.7.rc2/local/lib/python2.6/site-
 packages/docutils/core.py", line 204, in publish
     self.settings)
   File "/mnt/local/king/SAGE/sage-4.7.rc2/local/lib/python2.6/site-
 packages/docutils/readers/__init__.py", line 69, in read
     self.parse()
   File "/mnt/local/king/SAGE/sage-4.7.rc2/local/lib/python2.6/site-
 packages/docutils/readers/__init__.py", line 75, in parse
     self.parser.parse(self.input, document)
   File "/mnt/local/king/SAGE/sage-4.7.rc2/local/lib/python2.6/site-
 packages/docutils/parsers/rst/__init__.py", line 157, in parse
     self.statemachine.run(inputlines, document, inliner=self.inliner)
   File "/mnt/local/king/SAGE/sage-4.7.rc2/local/lib/python2.6/site-
 packages/docutils/parsers/rst/states.py", line 170, in run
     input_source=document['source'])
   File "/mnt/local/king/SAGE/sage-4.7.rc2/local/lib/python2.6/site-
 packages/docutils/statemachine.py", line 232, in run
     context, state, transitions)
   File "/mnt/local/king/SAGE/sage-4.7.rc2/local/lib/python2.6/site-
 packages/docutils/statemachine.py", line 420, in check_line
     return method(match, context, next_state)
   File "/mnt/local/king/SAGE/sage-4.7.rc2/local/lib/python2.6/site-
 packages/docutils/parsers/rst/states.py", line 2658, in underline
     self.section(title, source, style, lineno - 1, messages)
   File "/mnt/local/king/SAGE/sage-4.7.rc2/local/lib/python2.6/site-
 packages/docutils/parsers/rst/states.py", line 308, in section
     self.new_subsection(title, lineno, messages)
   File "/mnt/local/king/SAGE/sage-4.7.rc2/local/lib/python2.6/site-
 packages/docutils/parsers/rst/states.py", line 376, in new_subsection
     node=section_node, match_titles=1)
   File "/mnt/local/king/SAGE/sage-4.7.rc2/local/lib/python2.6/site-
 packages/docutils/parsers/rst/states.py", line 266, in nested_parse
     node=node, match_titles=match_titles)
   File "/mnt/local/king/SAGE/sage-4.7.rc2/local/lib/python2.6/site-
 packages/docutils/parsers/rst/states.py", line 195, in run
     results = StateMachineWS.run(self, input_lines, input_offset)
   File "/mnt/local/king/SAGE/sage-4.7.rc2/local/lib/python2.6/site-
 packages/docutils/statemachine.py", line 232, in run
     context, state, transitions)
   File "/mnt/local/king/SAGE/sage-4.7.rc2/local/lib/python2.6/site-
 packages/docutils/statemachine.py", line 420, in check_line
     return method(match, context, next_state)
   File "/mnt/local/king/SAGE/sage-4.7.rc2/local/lib/python2.6/site-
 packages/docutils/parsers/rst/states.py", line 2241, in explicit_markup
     self.explicit_list(blank_finish)
   File "/mnt/local/king/SAGE/sage-4.7.rc2/local/lib/python2.6/site-
 packages/docutils/parsers/rst/states.py", line 2269, in explicit_list
     match_titles=self.state_machine.match_titles)
   File "/mnt/local/king/SAGE/sage-4.7.rc2/local/lib/python2.6/site-
 packages/docutils/parsers/rst/states.py", line 300, in nested_list_parse
     node=node, match_titles=match_titles)
   File "/mnt/local/king/SAGE/sage-4.7.rc2/local/lib/python2.6/site-
 packages/docutils/parsers/rst/states.py", line 195, in run
     results = StateMachineWS.run(self, input_lines, input_offset)
   File "/mnt/local/king/SAGE/sage-4.7.rc2/local/lib/python2.6/site-
 packages/docutils/statemachine.py", line 232, in run
     context, state, transitions)
   File "/mnt/local/king/SAGE/sage-4.7.rc2/local/lib/python2.6/site-
 packages/docutils/statemachine.py", line 420, in check_line
     return method(match, context, next_state)
   File "/mnt/local/king/SAGE/sage-4.7.rc2/local/lib/python2.6/site-
 packages/docutils/parsers/rst/states.py", line 2542, in explicit_markup
     nodelist, blank_finish = self.explicit_construct(match)
   File "/mnt/local/king/SAGE/sage-4.7.rc2/local/lib/python2.6/site-
 packages/docutils/parsers/rst/states.py", line 2251, in explicit_construct
     return method(self, expmatch)
   File "/mnt/local/king/SAGE/sage-4.7.rc2/local/lib/python2.6/site-
 packages/docutils/parsers/rst/states.py", line 1994, in directive
     directive_class, match, type_name, option_presets)
   File "/mnt/local/king/SAGE/sage-4.7.rc2/local/lib/python2.6/site-
 packages/docutils/parsers/rst/states.py", line 2043, in run_directive
     result = directive_instance.run()
   File "/mnt/local/king/SAGE/sage-4.7.rc2/local/lib/python2.6/site-
 packages/Sphinx-1.0.4-py2.6.egg/sphinx/ext/autodoc.py", line 1154, in run
     if flag in self.env.config.autodoc_default_flags and \
   File "/mnt/local/king/SAGE/sage-4.7.rc2/local/lib/python2.6/site-
 packages/Sphinx-1.0.4-py2.6.egg/sphinx/config.py", line 207, in
 __getattr__
     raise AttributeError('No such config value: %s' % name)
 AttributeError: No such config value: autodoc_default_flags
 }}}

 I have no idea how this can be debugged.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11298#comment:15>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to