While building the TG2 docs using sphinx, I stumble over the following
error:

  reading sources... [ 99%] modules/thirdparty/webob                       
  Exception occurred:
    File "/usr/lib/pymodules/python2.5/sphinx/ext/autodoc.py", line 920,
    in add_content
      [_('alias of :class:`%s`') % self.object.__name__], source='')
  AttributeError: '_AnyETag' object has no attribute '__name__'
  The full traceback has been saved in /tmp/sphinx-err-gCQqy3.log, if
  you want to report the issue to the author.
  Please also report this if it was a user error, so that a better error
  message can be provided next time.
  Send reports to [email protected]. Thanks!
  make: *** [html] Error 1

(the referenced trackback is attached)

If I get rid of the entry having the _AnyETag marker, a similar error
causes failures the line after, and so on until the end of that
webob.rst basically. I managed to build the doc only removing
webob.rst.

Is that intended and/or being fixed?

TIA,
Cheers

-- 
Stefano Zacchiroli -o- PhD in Computer Science \ PostDoc @ Univ. Paris 7
z...@{upsilon.cc,pps.jussieu.fr,debian.org} -<>- http://upsilon.cc/zack/
Dietro un grande uomo c'è ..|  .  |. Et ne m'en veux pas si je te tutoie
sempre uno zaino ...........| ..: |.... Je dis tu à tous ceux que j'aime
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.5/sphinx/cmdline.py", line 172, in main
    app.build(all_files, filenames)
  File "/usr/lib/pymodules/python2.5/sphinx/application.py", line 130, in build
    self.builder.build_update()
  File "/usr/lib/pymodules/python2.5/sphinx/builders/__init__.py", line 265, in 
build_update
    'out of date' % len(to_build))
  File "/usr/lib/pymodules/python2.5/sphinx/builders/__init__.py", line 285, in 
build
    purple, length):
  File "/usr/lib/pymodules/python2.5/sphinx/builders/__init__.py", line 131, in 
status_iterator
    for item in iterable:
  File "/usr/lib/pymodules/python2.5/sphinx/environment.py", line 519, in 
update_generator
    self.read_doc(docname, app=app)
  File "/usr/lib/pymodules/python2.5/sphinx/environment.py", line 610, in 
read_doc
    pub.publish()
  File "/usr/lib/pymodules/python2.5/docutils/core.py", line 204, in publish
    self.settings)
  File "/usr/lib/pymodules/python2.5/docutils/readers/__init__.py", line 69, in 
read
    self.parse()
  File "/usr/lib/pymodules/python2.5/docutils/readers/__init__.py", line 75, in 
parse
    self.parser.parse(self.input, document)
  File "/usr/lib/pymodules/python2.5/docutils/parsers/rst/__init__.py", line 
157, in parse
    self.statemachine.run(inputlines, document, inliner=self.inliner)
  File "/usr/lib/pymodules/python2.5/docutils/parsers/rst/states.py", line 170, 
in run
    input_source=document['source'])
  File "/usr/lib/pymodules/python2.5/docutils/statemachine.py", line 232, in run
    context, state, transitions)
  File "/usr/lib/pymodules/python2.5/docutils/statemachine.py", line 420, in 
check_line
    return method(match, context, next_state)
  File "/usr/lib/pymodules/python2.5/docutils/parsers/rst/states.py", line 
2658, in underline
    self.section(title, source, style, lineno - 1, messages)
  File "/usr/lib/pymodules/python2.5/docutils/parsers/rst/states.py", line 308, 
in section
    self.new_subsection(title, lineno, messages)
  File "/usr/lib/pymodules/python2.5/docutils/parsers/rst/states.py", line 376, 
in new_subsection
    node=section_node, match_titles=1)
  File "/usr/lib/pymodules/python2.5/docutils/parsers/rst/states.py", line 266, 
in nested_parse
    node=node, match_titles=match_titles)
  File "/usr/lib/pymodules/python2.5/docutils/parsers/rst/states.py", line 195, 
in run
    results = StateMachineWS.run(self, input_lines, input_offset)
  File "/usr/lib/pymodules/python2.5/docutils/statemachine.py", line 232, in run
    context, state, transitions)
  File "/usr/lib/pymodules/python2.5/docutils/statemachine.py", line 420, in 
check_line
    return method(match, context, next_state)
  File "/usr/lib/pymodules/python2.5/docutils/parsers/rst/states.py", line 
2883, in text
    self.section(title.lstrip(), source, style, lineno + 1, messages)
  File "/usr/lib/pymodules/python2.5/docutils/parsers/rst/states.py", line 308, 
in section
    self.new_subsection(title, lineno, messages)
  File "/usr/lib/pymodules/python2.5/docutils/parsers/rst/states.py", line 376, 
in new_subsection
    node=section_node, match_titles=1)
  File "/usr/lib/pymodules/python2.5/docutils/parsers/rst/states.py", line 266, 
in nested_parse
    node=node, match_titles=match_titles)
  File "/usr/lib/pymodules/python2.5/docutils/parsers/rst/states.py", line 195, 
in run
    results = StateMachineWS.run(self, input_lines, input_offset)
  File "/usr/lib/pymodules/python2.5/docutils/statemachine.py", line 232, in run
    context, state, transitions)
  File "/usr/lib/pymodules/python2.5/docutils/statemachine.py", line 420, in 
check_line
    return method(match, context, next_state)
  File "/usr/lib/pymodules/python2.5/docutils/parsers/rst/states.py", line 
2658, in underline
    self.section(title, source, style, lineno - 1, messages)
  File "/usr/lib/pymodules/python2.5/docutils/parsers/rst/states.py", line 308, 
in section
    self.new_subsection(title, lineno, messages)
  File "/usr/lib/pymodules/python2.5/docutils/parsers/rst/states.py", line 376, 
in new_subsection
    node=section_node, match_titles=1)
  File "/usr/lib/pymodules/python2.5/docutils/parsers/rst/states.py", line 266, 
in nested_parse
    node=node, match_titles=match_titles)
  File "/usr/lib/pymodules/python2.5/docutils/parsers/rst/states.py", line 195, 
in run
    results = StateMachineWS.run(self, input_lines, input_offset)
  File "/usr/lib/pymodules/python2.5/docutils/statemachine.py", line 232, in run
    context, state, transitions)
  File "/usr/lib/pymodules/python2.5/docutils/statemachine.py", line 420, in 
check_line
    return method(match, context, next_state)
  File "/usr/lib/pymodules/python2.5/docutils/parsers/rst/states.py", line 
2241, in explicit_markup
    self.explicit_list(blank_finish)
  File "/usr/lib/pymodules/python2.5/docutils/parsers/rst/states.py", line 
2269, in explicit_list
    match_titles=self.state_machine.match_titles)
  File "/usr/lib/pymodules/python2.5/docutils/parsers/rst/states.py", line 300, 
in nested_list_parse
    node=node, match_titles=match_titles)
  File "/usr/lib/pymodules/python2.5/docutils/parsers/rst/states.py", line 195, 
in run
    results = StateMachineWS.run(self, input_lines, input_offset)
  File "/usr/lib/pymodules/python2.5/docutils/statemachine.py", line 232, in run
    context, state, transitions)
  File "/usr/lib/pymodules/python2.5/docutils/statemachine.py", line 420, in 
check_line
    return method(match, context, next_state)
  File "/usr/lib/pymodules/python2.5/docutils/parsers/rst/states.py", line 
2542, in explicit_markup
    nodelist, blank_finish = self.explicit_construct(match)
  File "/usr/lib/pymodules/python2.5/docutils/parsers/rst/states.py", line 
2251, in explicit_construct
    return method(self, expmatch)
  File "/usr/lib/pymodules/python2.5/docutils/parsers/rst/states.py", line 
1994, in directive
    directive_class, match, type_name, option_presets)
  File "/usr/lib/pymodules/python2.5/docutils/parsers/rst/states.py", line 
2043, in run_directive
    result = directive_instance.run()
  File "/usr/lib/pymodules/python2.5/sphinx/ext/autodoc.py", line 1072, in run
    documenter.generate(more_content=self.content)
  File "/usr/lib/pymodules/python2.5/sphinx/ext/autodoc.py", line 664, in 
generate
    self.add_content(more_content)
  File "/usr/lib/pymodules/python2.5/sphinx/ext/autodoc.py", line 920, in 
add_content
    [_('alias of :class:`%s`') % self.object.__name__], source='')
AttributeError: '_AnyETag' object has no attribute '__name__'

Attachment: signature.asc
Description: Digital signature

Reply via email to