Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#83 Traceback writing HTML from reStructuredText

closed-fixed
nobody
None
5
2006-04-02
2006-04-02
Pierre Rouleau
No

Notes:
- tested with Epydoc revision 1129.
- tested with a dev snapshot of Docutils 0.5
(2006-03-05, r4371)

I got the following traceback after parsing about 100
modules. Epydoc was then generating the HTML.

The screen capture of the console window is attached
and also inserted here::

C:\dev\python>epydoc --config=epydoc.ini --debug
--graph=classtree -v
Parsing ['epydoc.ini']
+---------------------------------------------------------------------
| In C:\dev\python\ivrep.py: Import failed (but source
code parsing
| was successful).
| Error: ImportError: No module named pysnmp.proto
(line 48)
|
+---------------------------------------------------------------------
| File C:\dev\python\icp.py, line 1876, in
icp.UnicastVideoTour
| Warning: Line 1914: Unexpected indentation.
|
+---------------------------------------------------------------------
| File C:\dev\python\icp.py, line 77, in icp
| Warning: Line 159: Literal block ends without a
blank line;
| unexpected unindent.
| Warning: Line 162: Unexpected indentation.
| Warning: Line 175: Block quote ends without a blank
line;
| unexpected unindent.
|
+---------------------------------------------------------------------
| File C:\dev\python\prompt.py, line 152, in prompt.gets
| Warning: Line 153: Inline literal start-string
without end-string.
|
+---------------------------------------------------------------------
| File C:\dev\python\sapsdp.py, line 330, in
| sapsdp.SapVideoStream.__init__
| Warning: Line 340: Unexpected indentation.
| Warning: Line 342: Block quote ends without a blank
line;
| unexpected unindent.
|
+---------------------------------------------------------------------
| File C:\dev\python\pygettext.py, line 4, in pygettext
| Warning: Lines 47, 51, 55, 67, 79, 83: Unexpected
indentation.
| Warning: Line 55: Inline interpreted text or phrase
reference
| start-string without end-string.
|
Traceback (most recent call last):-] Writing HTML docs
to 'html': trees...
File "c:\python24\scripts\epydoc.py", line 17, in ?
cli()
File "c:\python24\lib\site-packages\epydoc\cli.py",
line 513, in cli
main(options, names)
File "c:\python24\lib\site-packages\epydoc\cli.py",
line 381, in main
write_html(docindex, options)
File "c:\python24\lib\site-packages\epydoc\cli.py",
line 410, in write_html
html_writer.write(options.target)
File
"c:\python24\lib\site-packages\epydoc\docwriter\html.py",
line 482, in write
self._write(self.write_trees, directory, 'trees.html')
File
"c:\python24\lib\site-packages\epydoc\docwriter\html.py",
line 538, in _write
write_func(f.write, *args)
File
"c:\python24\lib\site-packages\epydoc\docwriter\html.py",
line 757, in write_trees
self.write_module_tree(out)
File
"c:\python24\lib\site-packages\epydoc\docwriter\html.py",
line 2328, in write_module_tree
self.write_module_tree_item(out, doc)
File
"c:\python24\lib\site-packages\epydoc\docwriter\html.py",
line 2357, in write_module_tree_item
out(': <em class="summary">'+
File
"c:\python24\lib\site-packages\epydoc\docwriter\html.py",
line 2835, in description
context=where).strip()
File
"c:\python24\lib\site-packages\epydoc\markup\restructuredtext.py",
line 173, in to_html
self._document.walkabout(visitor)
File
"c:\python24\lib\site-packages\docutils\nodes.py", line
159, in walkabout
child.walkabout(visitor)
File
"c:\python24\lib\site-packages\docutils\nodes.py", line
151, in walkabout
visitor.dispatch_visit(self)
File
"c:\python24\lib\site-packages\docutils\nodes.py", line
1502, in dispatch_visit
return method(node)
File
"c:\python24\lib\site-packages\docutils\writers\html4css1\__init__.py",
line 1253, in visit_reference
assert len(node) == 1 and isinstance(node[0],
nodes.image)
AssertionError

Discussion

  • Pierre Rouleau
    Pierre Rouleau
    2006-04-02

    traceback writing HTML docs to 'html'

     
    Attachments
  • Edward Loper
    Edward Loper
    2006-04-02

    • status: open --> closed-fixed
     
  • Edward Loper
    Edward Loper
    2006-04-02

    Logged In: YES
    user_id=195958

    Fixed in subversion, revision 1132.