#105 AttributeError: 'GenericValueDoc' object has no attribute 'i

v3.0
closed-fixed
5
2006-08-21
2006-06-12
Aarre
No

When I try to run epydoc 3.0alpha2 against my code, I
get the error message below. First, some diagnostic
information:

aarre@ganesha ~/src/py/sisu/childes/chat
$ which epydoc
/sw/bin/epydoc

aarre@ganesha ~/src/py/sisu/childes/chat
$ epydoc --version
Epydoc, version 3.0alpha2

aarre@ganesha ~/src/py/sisu/childes/chat
$ which python
/sw/bin/python

aarre@ganesha ~/src/py/sisu/childes/chat
$ python -V
Python 2.4.2

aarre@ganesha ~/src/py/sisu/childes/chat
$ system_profiler SPHardwareDataType
Hardware:

Hardware Overview:

Machine Name: Power Mac G5
Machine Model: PowerMac7,2
CPU Type: PowerPC 970 (2.2)
Number Of CPUs: 2
CPU Speed: 2 GHz
L2 Cache (per CPU): 512 KB
Memory: 2 GB
Bus Speed: 1 GHz
Boot ROM Version: 5.1.4f0
Serial Number: XB3400NRNVB

aarre@ganesha ~/src/py/sisu/childes/chat
$ system_profiler SPSoftwareDataType
Software:

System Software Overview:

System Version: Mac OS X 10.4.6 (8I127)
Kernel Version: Darwin 8.6.0
Boot Volume: Ganesha
Computer Name: Ganesha
User Name: Aarre Laakso (aarre)

aarre@ganesha ~/src/py/sisu/childes/chat
$ make doc
rm -rf /Users/aarre/doc/py/sisu/*
cd /Users/aarre && \ export PYTHONVER=2.4 && \ epydoc -v \ --css default \ --debug \ --html \ --output /Users/aarre/doc/py/sisu \ /Users/aarre/src/py/sisu
+---------------------------------------------------------------------------------------------------------------------------------------------------------
| In /Users/aarre/src/py/sisu/PyHttpUnit.py:
| Import failed (but source code parsing was successful).
| Error: SystemExit: 1 (line 336)
|
Warning: Unable to extract the base list for
sisu.SisuLogger.SisuLogger: Bad dotted name
Warning: Module sisu.cluster.ClusterFiles is shadowed
by a variable with the same name.
+---------------------------------------------------------------------------------------------------------------------------------------------------------
| In /Users/aarre/src/py/sisu/cluster/clink.py:
| Import failed (but source code parsing was successful).
| Error: AssertionError: (line 503)
|
Warning: Module sisu.cluster.DeHoonClustering is
shadowed by a variable with the same name.
+---------------------------------------------------------------------------------------------------------------------------------------------------------
| In /Users/aarre/src/py/sisu/cluster/pcaplot.py:
| Import failed (but source code parsing was successful).
| Error: ImportError: No module named Gnuplot (line 6)
|
+---------------------------------------------------------------------------------------------------------------------------------------------------------
| In /Users/aarre/src/py/sisu/cluster/dendro.py:
| Import failed (but source code parsing was successful).
| Error: NameError: name 'labs' is not defined
(line 162)
|
Traceback (most recent call last):
Progress:
03:58
File "/sw/bin/epydoc", line 7, in
?----------------------------------------------------------------------------------------------------------------------]
cli() Building documentation:
sisu.cluster.newick.tree
(/Users/aarre/src/py/sisu/cluster/newick/tree.pyc)

File "/sw/lib/python2.4/site-packages/epydoc/cli.py",
line 590, in cli
main(options, names)
File "/sw/lib/python2.4/site-packages/epydoc/cli.py",
line 429, in main
add_submodules=(options.action!='text'))
File
"/sw/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
"/sw/lib/python2.4/site-packages/epydoc/docbuilder.py",
line 271, in _get_docs_from_items
doc_pairs += _get_docs_from_submodules(
File
"/sw/lib/python2.4/site-packages/epydoc/docbuilder.py",
line 454, in _get_docs_from_submodules
docs += _get_docs_from_submodules(
File
"/sw/lib/python2.4/site-packages/epydoc/docbuilder.py",
line 454, in _get_docs_from_submodules
docs += _get_docs_from_submodules(
File
"/sw/lib/python2.4/site-packages/epydoc/docbuilder.py",
line 447, in _get_docs_from_submodules
d = _get_docs_from_module_file(
File
"/sw/lib/python2.4/site-packages/epydoc/docbuilder.py",
line 400, in _get_docs_from_module_file
parse_doc = parse_docs(
File
"/sw/lib/python2.4/site-packages/epydoc/docparser.py",
line 271, in parse_docs
module_name, is_pkg = _get_module_name(filename,
context)
File
"/sw/lib/python2.4/site-packages/epydoc/docparser.py",
line 1959, in _get_module_name
if (valdoc not in (None, UNKNOWN) and
AttributeError: 'GenericValueDoc' object has no
attribute 'imported_from'
make: *** [doc] Error 1

Discussion

  • Edward Loper

    Edward Loper - 2006-08-21

    Logged In: YES
    user_id=195958

    Thanks for the bug report.

    This should now be fixed in subversion revision 1261.

     
  • Edward Loper

    Edward Loper - 2006-08-21
    • status: open --> closed-fixed
     

Log in to post a comment.