exception when try to list example source code?
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'>
John Mudd wrote:
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?
Update to Twisted 2.0 -- Valentino Volonghi aka Dialtone Now Running MacOSX 10.3.8 Blog: http://vvolonghi.blogspot.com http://weever.berlios.de
Thanks, that fixed the problem. I also had to get ZopeInterface and twisted.web. Here are some notes I made while installing. ### Upgrade ### $ rm -rf ~/pkgs/python/lib/python2.4/site-packages/twisted $ cd ~/pkgs # Get archive file from http://twistedmatrix.com/downloads/ $ bunzip2 < Twisted-2.0.0a2.tar.bz2 | tar xvf - $ cd ~/pkgs/Twisted-2.0.0a2 $ python setup.py install $ tar xvfz ZopeInterface-3.0.1.tgz $ cd ZopeInterface-3.0.1 $ python setup.py build $ python setup.py install ########### SKIP THIS SECTION, twisted.web 2.0 "does not exist" $ bunzip2 < TwistedWeb2-0.1.0a2.tar.bz2 | tar xvf - $ cd TwistedWeb2-0.1.0a2 $ python setup.py build $ python setup.py install $ bunzip2 < TwistedWeb-0.5.0a2.tar.bz2 | tar xvf - $ cd TwistedWeb-0.5.0a2 $ python setup.py build $ python setup.py install On Apr 9, 2005 6:43 PM, Valentino Volonghi aka Dialtone <dialtone@divmod.com> wrote:
John Mudd wrote:
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?
Update to Twisted 2.0
-- Valentino Volonghi aka Dialtone Now Running MacOSX 10.3.8 Blog: http://vvolonghi.blogspot.com http://weever.berlios.de
participants (2)
-
John Mudd
-
Valentino Volonghi aka Dialtone