#217 TypeError while generating docs

v2.1
closed-wont-fix
5
2007-09-23
2007-08-29
Anonymous
No

I'm getting the following traceback when trying to generate documentation for my project.

This can be duplicated by doing the following (requires mercurial):
$ hg clone http://hg.fedoraproject.org/hg/hosted/bodhi $ cd bodhi
$ make docs

[ 2/22] Building docs for bodhi.exceptions
Building docs for bodhi.exceptions
Traceback (most recent call last):
File "/usr/bin/epydoc", line 7, in <module>
cli()
File "/usr/lib/python2.5/site-packages/epydoc/cli.py", line 110, in cli
docmap = _make_docmap(modules, options)
File "/usr/lib/python2.5/site-packages/epydoc/cli.py", line 483, in _make_docmap
try: d.add(module)
File "/usr/lib/python2.5/site-packages/epydoc/objdoc.py", line 2954, in add
self._add(objID)
File "/usr/lib/python2.5/site-packages/epydoc/objdoc.py", line 2961, in _add
self.add_one(objID)
File "/usr/lib/python2.5/site-packages/epydoc/objdoc.py", line 2884, in add_one
self.data[objID] = ModuleDoc(objID, self._verbosity)
File "/usr/lib/python2.5/site-packages/epydoc/objdoc.py", line 1168, in __init__
vuid = make_uid(val, self._uid, field)
File "/usr/lib/python2.5/site-packages/epydoc/uid.py", line 781, in make_uid
uid = ObjectUID(object)
File "/usr/lib/python2.5/site-packages/epydoc/uid.py", line 418, in __init__
name = self._findname()
File "/usr/lib/python2.5/site-packages/epydoc/uid.py", line 509, in _findname
return '%s.%s' % (self.module(), objname)
File "/usr/lib/python2.5/site-packages/epydoc/uid.py", line 586, in module
obj not in self._module.value().__dict__.values()):
TypeError: int() argument must be a string or a number, not 'type'

Discussion

  • Edward Loper

    Edward Loper - 2007-09-23
    • status: open --> closed-wont-fix
     
  • Edward Loper

    Edward Loper - 2007-09-23

    Logged In: YES
    user_id=195958
    Originator: NO

    This bug should be fixed in epydoc 3.0, so I recommend you use 3.0 instead. I won't have time to fix it myself in 2.1, but I'd be happy to accept patches.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks