#14 Problem with Text constructor called from cli

v1.1
closed-fixed
5
2003-06-21
2003-02-26
No

I just downloaded epytext and the install seemed to go
well
(python setup.py install) and now I'm trying to make
it work -- but it
seems to crash no matter which module
I use it on. The error I get
is:

Traceback (most recent call last):
File
"/home/a/15/mlh/python/current/bin/epydoc", line 8, in ?

cli()
File "/home/a/15/mlh/python/current/lib/python2.3/site-
packages/epydoc/cli.py", line 273, in cli
docmap =
_make_docmap(modules, param)
File
"/home/a/15/mlh/python/current/lib/python2.3/site-
packages/epydoc/cli.py", line 303, in _make_docmap

d.add(module)
File
"/home/a/15/mlh/python/current/lib/python2.3/site-
packages/epydoc/objdoc.py", line 1370, in add

self.add(val)
File
"/home/a/15/mlh/python/current/lib/python2.3/site-
packages/epydoc/objdoc.py", line 1353, in add

self.add_one(obj)
File
"/home/a/15/mlh/python/current/lib/python2.3/site-
packages/epydoc/objdoc.py", line 1311, in add_one

self.data[objID] = ClassDoc(obj, self._verbosity)
File
"/home/a/15/mlh/python/current/lib/python2.3/site-
packages/epydoc/objdoc.py", line 697, in __init__

ObjDoc.__init__(self, cls, verbosity)
File
"/home/a/15/mlh/python/current/lib/python2.3/site-
packages/epydoc/objdoc.py", line 283, in __init__

self.__parse_docstring(docstring, verbosity)
File
"/home/a/15/mlh/python/current/lib/python2.3/site-
packages/epydoc/objdoc.py", line 380, in
__parse_docstring
pdoc = epytext.parse(docstring,
parse_errors, parse_warnings)
File
"/home/a/15/mlh/python/current/lib/python2.3/site-
packages/epydoc/epytext.py", line 269, in parse

_add_para(token, stack, indent_stack, errors, warnings)
File
"/home/a/15/mlh/python/current/lib/python2.3/site-
packages/epydoc/epytext.py", line 341, in _add_para
para =
_colorize(para_token, errors, warnings)
File
"/home/a/15/mlh/python/current/lib/python2.3/site-
packages/epydoc/epytext.py", line 1068, in _colorize stack[-
1].appendChild(Text(str[start:]))
TypeError: this constructor
takes no arguments

I'm using Python 2.3a2+ (CVS
version.) Note that it doesn't help to use Python 2.2.1 (for example);
then I get the following error:

Traceback (most recent call
last):
File "/home/a/15/mlh/python/current/bin/epydoc",
line 8, in ?
cli()
File
"/home/a/15/mlh/python/current/lib/python2.2/site-
packages/epydoc/cli.py", line 276, in cli
else:
_html(docmap, param)
File
"/home/a/15/mlh/python/current/lib/python2.2/site-
packages/epydoc/cli.py", line 352, in _html

htmldoc.write(param['target'], progress_callback)
File
"/home/a/15/mlh/python/current/lib/python2.2/site-
packages/epydoc/html.py", line 325, in write

progress_callback)
File
"/home/a/15/mlh/python/current/lib/python2.2/site-
packages/epydoc/html.py", line 377, in _write

self._write_css(directory)
File
"/home/a/15/mlh/python/current/lib/python2.2/site-
packages/epydoc/html.py", line 442, in _write_css
if
os.path.exists(filename):
UnboundLocalError: local variable
'filename' referenced before assignment

It seems strange
that no one else has noticed this behaviour; I can only assume it has
something to do with my setup...?

Discussion

  • Magnus Lie Hetland

    Logged In: YES
    user_id=20535

    This problem seems to be fixed in the CVS version -- sorry
    about that. :)

     
  • Edward Loper

    Edward Loper - 2003-06-21
    • status: open --> closed-fixed
     

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

Sign up for the SourceForge newsletter:





No, thanks