I regularly crash the documentation generation on my system, if my Python
code contains the line
"something = {}"
where something can be replaced by any other name.
The error log reads as stated below. Please let me know if this is the
wrong way to report a bug!
Thanks
thomas
----------
# Sphinx version: 1.1.3
# Python version: 2.7.2
# Docutils version: 0.9 release
# Jinja2 version: 2.6
Traceback (most recent call last):
File "C:\Python27\lib\site-packages\sphinx\cmdline.py", line 189, in main
app.build(force_all, filenames)
File "C:\Python27\lib\site-packages\sphinx\application.py", line 204, in
build
self.builder.build_update()
File "C:\Python27\lib\site-packages\sphinx\builders\__init__.py", line
196, in build_update
'out of date' % len(to_build))
File "C:\Python27\lib\site-packages\sphinx\builders\__init__.py", line
216, in build
purple, length):
File "C:\Python27\lib\site-packages\sphinx\builders\__init__.py", line
120, in status_iterator
for item in iterable:
File "C:\Python27\lib\site-packages\sphinx\environment.py", line 613, in
update_generator
self.read_doc(docname, app=app)
File "C:\Python27\lib\site-packages\sphinx\environment.py", line 761, in
read_doc
pub.publish()
File "C:\Python27\lib\site-packages\docutils\core.py", line 221, in
publish
self.settings)
File "C:\Python27\lib\site-packages\docutils\readers\__init__.py", line
69, in read
self.parse()
File "C:\Python27\lib\site-packages\docutils\readers\__init__.py", line
75, in parse
self.parser.parse(self.input, document)
File "C:\Python27\lib\site-packages\docutils\parsers\rst\__init__.py",
line 162, in parse
self.statemachine.run(inputlines, document, inliner=self.inliner)
File "C:\Python27\lib\site-packages\docutils\parsers\rst\states.py", line
174, in run
input_source=document['source'])
File "C:\Python27\lib\site-packages\docutils\statemachine.py", line 239,
in run
context, state, transitions)
File "C:\Python27\lib\site-packages\docutils\statemachine.py", line 460,
in check_line
return method(match, context, next_state)
File "C:\Python27\lib\site-packages\docutils\parsers\rst\states.py", line
2706, in underline
self.section(title, source, style, lineno - 1, messages)
File "C:\Python27\lib\site-packages\docutils\parsers\rst\states.py", line
331, in section
self.new_subsection(title, lineno, messages)
File "C:\Python27\lib\site-packages\docutils\parsers\rst\states.py", line
399, in new_subsection
node=section_node, match_titles=True)
File "C:\Python27\lib\site-packages\docutils\parsers\rst\states.py", line
286, in nested_parse
node=node, match_titles=match_titles)
File "C:\Python27\lib\site-packages\docutils\parsers\rst\states.py", line
199, in run
results = StateMachineWS.run(self, input_lines, input_offset)
File "C:\Python27\lib\site-packages\docutils\statemachine.py", line 239,
in run
context, state, transitions)
File "C:\Python27\lib\site-packages\docutils\statemachine.py", line 460,
in check_line
return method(match, context, next_state)
File "C:\Python27\lib\site-packages\docutils\parsers\rst\states.py", line
2706, in underline
self.section(title, source, style, lineno - 1, messages)
File "C:\Python27\lib\site-packages\docutils\parsers\rst\states.py", line
331, in section
self.new_subsection(title, lineno, messages)
File "C:\Python27\lib\site-packages\docutils\parsers\rst\states.py", line
399, in new_subsection
node=section_node, match_titles=True)
File "C:\Python27\lib\site-packages\docutils\parsers\rst\states.py", line
286, in nested_parse
node=node, match_titles=match_titles)
File "C:\Python27\lib\site-packages\docutils\parsers\rst\states.py", line
199, in run
results = StateMachineWS.run(self, input_lines, input_offset)
File "C:\Python27\lib\site-packages\docutils\statemachine.py", line 239,
in run
context, state, transitions)
File "C:\Python27\lib\site-packages\docutils\statemachine.py", line 460,
in check_line
return method(match, context, next_state)
File "C:\Python27\lib\site-packages\docutils\parsers\rst\states.py", line
2279, in explicit_markup
nodelist, blank_finish = self.explicit_construct(match)
File "C:\Python27\lib\site-packages\docutils\parsers\rst\states.py", line
2291, in explicit_construct
return method(self, expmatch)
File "C:\Python27\lib\site-packages\docutils\parsers\rst\states.py", line
2034, in directive
directive_class, match, type_name, option_presets)
File "C:\Python27\lib\site-packages\docutils\parsers\rst\states.py", line
2083, in run_directive
result = directive_instance.run()
File "C:\Python27\lib\site-packages\sphinx\ext\autodoc.py", line 1303, in
run
documenter.generate(more_content=self.content)
File "C:\Python27\lib\site-packages\sphinx\ext\autodoc.py", line 700, in
generate
self.analyzer.find_attr_docs()
File "C:\Python27\lib\site-packages\sphinx\pycode\__init__.py", line 261,
in find_attr_docs
self.parse()
File "C:\Python27\lib\site-packages\sphinx\pycode\__init__.py", line 253,
in parse
self.parsetree = pydriver.parse_tokens(self.tokens)
File "C:\Python27\lib\site-packages\sphinx\pycode\pgen2\driver.py", line
69, in parse_tokens
if p.addtoken(type, value, (prefix, start)):
File "C:\Python27\lib\site-packages\sphinx\pycode\pgen2\parse.py", line
127, in addtoken
assert t < 256
AssertionError
--
You received this message because you are subscribed to the Google Groups
"sphinx-dev" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/sphinx-dev/-/jeVtLo8W7ekJ.
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/sphinx-dev?hl=en.