Menu

#136 TypeError: Bad identifier <UNKNOWN>: expected DottedName or

devel (cvs)
closed-fixed
inspection (59)
5
2007-02-12
2006-09-18
No

I get the following traceback using epydoc from SVN
trunk. The offending file is viewable online at
http://cvs.gnome.org/viewcvs/lsr/src/AEState/Setting.py?rev=1.9&view=markup

Traceback (most recent call last): Progress:
00:45
File "/usr/bin/epydoc", line 13, in
?-------------------------------------]
cli() Building documentation: Setting
(src/AEState/Setting.py)
File
"/usr/lib/python2.4/site-packages/epydoc/cli.py", line
694, in cli
main(options, names)
File
"/usr/lib/python2.4/site-packages/epydoc/cli.py", line
497, in main
add_submodules=(options.action!='text'))
File
"/usr/lib/python2.4/site-packages/epydoc/docbuilder.py",
line 130, in build_doc_index
doc_pairs = _get_docs_from_items(items, introspect,
parse, add_submodules)
File
"/usr/lib/python2.4/site-packages/epydoc/docbuilder.py",
line 243, in _get_docs_from_items
doc_pairs.append(_get_docs_from_module_file(
File
"/usr/lib/python2.4/site-packages/epydoc/docbuilder.py",
line 411, in _get_docs_from_module_file
introspect_doc = introspect_docs(
File
"/usr/lib/python2.4/site-packages/epydoc/docintrospecter.py",
line 116, in introspect_docs
introspect_func(value, val_doc)
File
"/usr/lib/python2.4/site-packages/epydoc/docintrospecter.py",
line 263, in introspect_module
child_val_doc = introspect_docs(child,
context=module_doc)
File
"/usr/lib/python2.4/site-packages/epydoc/docintrospecter.py",
line 116, in introspect_docs
introspect_func(value, val_doc)
File
"/usr/lib/python2.4/site-packages/epydoc/docintrospecter.py",
line 375, in introspect_class
val_doc = introspect_docs(child, context=class_doc)
File
"/usr/lib/python2.4/site-packages/epydoc/docintrospecter.py",
line 116, in introspect_docs
introspect_func(value, val_doc)
File
"/usr/lib/python2.4/site-packages/epydoc/docintrospecter.py",
line 460, in introspect_property
prop_doc.fget = introspect_docs(prop.fget)
File
"/usr/lib/python2.4/site-packages/epydoc/docintrospecter.py",
line 111, in introspect_docs
val_doc = _get_valuedoc(value)
File
"/usr/lib/python2.4/site-packages/epydoc/docintrospecter.py",
line 149, in _get_valuedoc
try: canonical_name = get_canonical_name(value)
File
"/usr/lib/python2.4/site-packages/epydoc/docintrospecter.py",
line 588, in get_canonical_name
dotted_name = DottedName(class_name, value.__name__)
File
"/usr/lib/python2.4/site-packages/epydoc/apidoc.py",
line 119, in __init__
raise TypeError('Bad identifier %r: expected '
TypeError: Bad identifier <UNKNOWN>: expected
DottedName or str

Discussion

  • Daniele Varrazzo

    Logged In: YES
    user_id=1053920
    Originator: NO

    Hello,

    running epydoc on the offending file, i wasn't able to reproduce the bug. Anyway i met it in other tests and probably fixed it in r1427.

    Please, check if the HEAD revision now works for you. If not, please report:
    - instructions to check out a minimal offending package - not only a module,
    - the command line crashing epydoc.

    Thank you very much

    Daniele

     
  • Daniele Varrazzo

    • status: open --> pending-fixed
     
  • SourceForge Robot

    • status: pending-fixed --> closed-fixed
     
  • SourceForge Robot

    Logged In: YES
    user_id=1312539
    Originator: NO

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     

Log in to post a comment.