pythondoc or epydoc?

Sean sean0601 at pchome.com.tw
Fri Oct 15 08:34:16 CEST 2004


I would like to use epydoc to generate documents, but got the following error.

C:\PROJECT>\python23\python \python23\scripts\epydoc.py --debug test1.py
Importing 1 modules.
  [1/1] Importing test1.py
Building API documentation for 1 modules.
  [1/1] Building docs for test1
    Building docs for test1
    Building docs for test1.main
    Building docs for test1.MyApp
Traceback (most recent call last):
  File "\python23\scripts\epydoc.py", line 17, in ?
    cli()
  File "C:\Python23\lib\site-packages\epydoc\cli.py", line 110, in cli
    docmap = _make_docmap(modules, options)
  File "C:\Python23\lib\site-packages\epydoc\cli.py", line 483, in _make_docmap
    try: d.add(module)
  File "C:\Python23\lib\site-packages\epydoc\objdoc.py", line 2954, in add
    self._add(objID)
  File "C:\Python23\lib\site-packages\epydoc\objdoc.py", line 2968, in _add
    self._add(link.target())
  File "C:\Python23\lib\site-packages\epydoc\objdoc.py", line 2961, in _add
    self.add_one(objID)
  File "C:\Python23\lib\site-packages\epydoc\objdoc.py", line 2900, in add_one
    self.data[objID] = ClassDoc(objID, self._verbosity)
  File "C:\Python23\lib\site-packages\epydoc\objdoc.py", line 1589, in __init__
    self._base_order = [make_uid(b) for b in base_order]
  File "C:\Python23\lib\site-packages\epydoc\uid.py", line 781, in make_uid
    uid = ObjectUID(object)
  File "C:\Python23\lib\site-packages\epydoc\uid.py", line 418, in __init__
    name = self._findname()
  File "C:\Python23\lib\site-packages\epydoc\uid.py", line 509, in _findname
    return '%s.%s' % (self.module(), objname)
  File "C:\Python23\lib\site-packages\epydoc\uid.py", line 585, in module
    if (self._module is not None and
  File "C:\Python23\Lib\site-packages\wx\misc.py", line 3581, in __eq__
    return _misc.DateTime___eq__(*args)
TypeError: Expected a pointer

The version of wxpython is 2.5.
This script can be executed normally.

How could I solve the problem?

Regards,
Sean



More information about the Python-list mailing list