#233 AttributeError: 'tuple' object has no attribute '_identifier

closed-fixed
nobody
None
5
2008-01-29
2007-11-25
Anonymous
No

Hi, I installed the latest svn from today, but epydoc unfortunately still doesn't work with sympy. How to reproduce it:

$ hg clone http://hg.sympy.org/sympy/
$ cd sympy
$ hg up 1547 # so that both of us use the same revision
$ epydoc --debug --no-frames -o /tmp/api sympy
[...]
lot's of errors
[...]
Traceback (most recent call last):
File "/home/ondra/lib/bin/epydoc", line 13, in ?
cli()
File "/home/ondra/lib/lib/python/epydoc/cli.py", line 957, in cli
main(options, names)
File "/home/ondra/lib/lib/python/epydoc/cli.py", line 749, in main
exclude_parse=exclude_parse)
File "/home/ondra/lib/lib/python/epydoc/docbuilder.py", line 251, in build_doc_index
assign_canonical_names(val_doc, val_doc.canonical_name, docindex)
File "/home/ondra/lib/lib/python/epydoc/docbuilder.py", line 1161, in assign_canonical_names
docindex, vardoc_score)
File "/home/ondra/lib/lib/python/epydoc/docbuilder.py", line 1166, in assign_canonical_names
assign_canonical_names(val_doc_2, val_name, docindex, val_score)
File "/home/ondra/lib/lib/python/epydoc/docbuilder.py", line 1150, in assign_canonical_names
if _var_shadows_self(var_doc, varname):
File "/home/ondra/lib/lib/python/epydoc/docbuilder.py", line 1169, in _var_shadows_self
return (var_doc.value not in (None, UNKNOWN) and
File "/home/ondra/lib/lib/python/epydoc/apidoc.py", line 223, in dominates
len_name = len(name._identifiers)
AttributeError: 'tuple' object has no attribute '_identifiers'

Am I doing something wrong?
Thanks,
Ondrej

Discussion

  • Edward Loper

    Edward Loper - 2008-01-29
    • status: open --> closed-fixed
     
  • Edward Loper

    Edward Loper - 2008-01-29

    Logged In: YES
    user_id=195958
    Originator: NO

    Thanks for pointing this out. I tracked down the bug, and it's now fixed in svn revision 1671.

     

Log in to post a comment.