[Twisted-web] exception when try to list example source code?

John Mudd johnbmudd at gmail.com
Sat Apr 9 15:55:16 MDT 2005


I get a list of exceptions when I try to look at the source code from
the Examples page.  It's basically the same no matter which source
file I try to view.  I'm using 4,1 Nevow & Twisted but got the same
with 3.0 Nevow.  Any suggestions?




Starts with this:

exceptions.AttributeError: 'module' object has no attribute 'kwdict'

127

128

    try:

129

        result = f(*args, **kw)

130

    except:

Locals
args	(PageContext(tag=<Sources object at 0x4067ccac>,
remembrances={'nevow.inevow.ICurrentSegments': ('sources',
'most_basic.py'), 'nevow.inevow.IData': <Sources object at
0x4067ccac>, 'nevow.inevow.IRenderer': <Sources object at 0x4067ccac>,
'nevow.inevow.IRendererFactory': <Sources object at 0x4067ccac>,
'nevow.inevow.IRemainingSegments': (), 'nevow.inevow.IMacroFactory':
<Sources object at 0x4067ccac>, 'nevow.inevow.IResource': <Sources
object at 0x4067ccac>}),)
kw	{}
f	<bound method Sources.renderHTTP of <Sources object at 0x4067ccac>>






Ends with this:

/home/mudd/pkgs/python/lib/python2.4/site-packages/twisted/python/htmlizer.py,
line 37 in printtoken
35

            self.parameters = 1

36

        elif type == tokenize.NAME:

37

             if keyword.kwdict.has_key(token):

38

                 type = 'keyword'

Locals
self	<twisted.python.htmlizer.TokenPrinter instance at 0x40f7038c>
token	'from'
type	1
Globals
keyword	<module 'keyword' from
'/home/mudd/pkgs/python/lib/python2.4/keyword.pyc'>
tokenize	<module 'tokenize' from
'/home/mudd/pkgs/python/lib/python2.4/tokenize.pyc'>



More information about the Twisted-web mailing list