Menu

#256 mysterious crash

closed-fixed
nobody
None
5
2014-05-21
2008-02-18
Anonymous
No

I am running Epydoc, version 3.0.1, patched as described in bug # 1892820

An epydoc config file contains:

[epydoc]
css: white
parse: yes
introspect: no
imports: no
include-log: no
graph: all
modules: pyraf
output: html

The module "pyraf" contains only a single source file __init__.py that contains:

from Tkinter import *
class a(Widget, b):

When I run the command:

epydoc --debug -v --config tmp.cfg -o dir

I get this output:

Traceback (most recent call last): Progress: 00:00
File "/usr/stsci/pyssgdev/Python-2.5.1/bin/epydoc", line 13, in <module>==========================================================-----------------]
cli() Writing HTML docs to 'dir': int-class.html
File "/usr/stsci/pyssgdev/2.5.1/epydoc/cli.py", line 965, in cli
main(options, names)
File "/usr/stsci/pyssgdev/2.5.1/epydoc/cli.py", line 783, in main
write_html(docindex, options)
File "/usr/stsci/pyssgdev/2.5.1/epydoc/cli.py", line 823, in write_html
html_writer.write(options.target)
File "/usr/stsci/pyssgdev/2.5.1/epydoc/docwriter/html.py", line 641, in write
self._write(self.write_class, directory, filename, doc)
File "/usr/stsci/pyssgdev/2.5.1/epydoc/docwriter/html.py", line 711, in _write
write_func(f.write, *args)
File "/usr/stsci/pyssgdev/2.5.1/epydoc/docwriter/html.py", line 851, in write_class
self.write_class_tree_graph(out, doc, uml_class_tree_graph)
File "/usr/stsci/pyssgdev/2.5.1/epydoc/docwriter/html.py", line 944, in write_class_tree_graph
self.render_graph(graphmaker(doc, linker, doc)))
File "/usr/stsci/pyssgdev/2.5.1/epydoc/docwriter/dotgraph.py", line 1098, in uml_class_tree_graph
bgcolor=SUBCLASS_BG)
File "/usr/stsci/pyssgdev/2.5.1/epydoc/docwriter/dotgraph.py", line 470, in __init__
for var in class_doc.sorted_variables:
TypeError: iteration over non-sequence

It I delete either one of the two lines in __init__.py, it does not crash.

If I change the name of "Widget" to "c", it does not crash.

If I remove "graph: all" from the config file, it does not crash.

If you would like more information, you can send me email at stsci.edu. My email address is sienkiew.

Discussion

  • Edward Loper

    Edward Loper - 2008-02-18

    Logged In: YES
    user_id=195958
    Originator: NO

    Fixed in svn 1728.

     
  • Edward Loper

    Edward Loper - 2008-02-18
    • status: open --> closed-fixed
     
  • Lukas Pirl

    Lukas Pirl - 2014-05-21

    Related to [#364] and probably also fixed in [r1728]

     

    Related

    Bugs: #364
    Commit: [r1728]


Log in to post a comment.