I have two python scripts I want to run. One that has
very little code (12 lines) works fine, but another
script with ~1000 lines of code does not work. In both
scripts, the comments are the same (only a small amount
of text at the very top of the file....I am sure that
its not my comments as the short script works fine).
When I run epydoc (gui version), the program breaks.
The complete output from the python interpreter is as
follows:
>pythonw -u gui.py
Traceback (most recent call last):
File "gui.py", line 263, in document
htmldoc.write(options.get('outdir', 'html'),
progress_callback)
File "C:\Python\Lib\site-packages\epydoc\html.py",
line 477, in write
'trees.html', progress_callback, 1)
File "C:\Python\Lib\site-packages\epydoc\html.py",
line 570, in _write
write_func(public, private, *args)
File "C:\Python\Lib\site-packages\epydoc\html.py",
line 889, in _write_trees
self._write_navbar(public, private, uid)
UnboundLocalError: local variable 'uid' referenced
before assignment
I do not know why this is not creating the 'ui' variable.
Please help!
Thanx!
Vivek Varshney
Vivek.Varshney@activeprime.com
Logged In: YES
user_id=195958
Thanks for pointing this bug out. It's now fixed in CVS.
If you don't want to re-install, it's just a one-line fix:
889c889
< self._write_navbar(public, private, uid)
---
> self._write_navbar(public, private, 'tree')
-Edward