We are unfortunately still on Python 2.4, but we have brought hashlib in (from http://pypi.python.org/pypi/hashlib ) because we needed it elsewhere in our project.
We are seeing some strange exceptions when using paste.httpexceptions - I'm theorizing that beaker's hashlib / sha1 / md5 usage is confused because we're at python 2.4 + hashlib, or something. Anybody have ideas here? maybe the hashlib from pypi is not QUITE compatible with the python 2.5 hashlib? is this a Beaker bug? (sorry stack is slightly mangled, but hopefully readable) AttributeError: 'builtin_function_or_method' object has no attribute 'new'hex:~/ly/build/_work/client-trunk_2008.12.15-18.44.58/_install%... %g'/app08-hour File '.../lib/python2.4/site-packages/Paste-1.7.2-py2.4.egg/paste/ httpexceptions.py', line 249 in response headers, content = self.prepare_content(environ) File '.../lib/python2.4/site-packages/Paste-1.7.2-py2.4.egg/paste/ httpexceptions.py', line 233 in prepare_content content = self.html(environ) File '.../lib/python2.4/site-packages/Paste-1.7.2-py2.4.egg/paste/ httpexceptions.py', line 218 in html body = self.make_body(environ, self.template, html_quote, no_quote) File '.../lib/python2.4/site-packages/Paste-1.7.2-py2.4.egg/paste/ httpexceptions.py', line 205 in make_body args[k] = escfunc(v) File '.../lib/python2.4/site-packages/Paste-1.7.2-py2.4.egg/paste/util/ quoting.py', line 36 in html_quote return cgi.escape(unicode(v).encode(encoding), 1) File '.../lib/python2.4/site-packages/Beaker-1.1.2-py2.4.egg/beaker/ session.py', line 481 in __repr__ return self._session().__repr__() File '.../lib/python2.4/site-packages/Beaker-1.1.2-py2.4.egg/beaker/ session.py', line 458 in _session self.__dict__['_sess'] = Session(req, use_cookies=True, File '.../lib/python2.4/site-packages/Beaker-1.1.2-py2.4.egg/beaker/ session.py', line 86 in __init__ self.cookie = SignedCookie(secret, input=cookieheader) File '.../lib/python2.4/site-packages/Beaker-1.1.2-py2.4.egg/beaker/ session.py', line 36 in __init__ Cookie.BaseCookie.__init__(self, input) File '/usr/lib64/python2.4/Cookie.py', line 568 in __init__ if input: self.load(input) File '/usr/lib64/python2.4/Cookie.py', line 621 in load self.__ParseString(rawdata) File '/usr/lib64/python2.4/Cookie.py', line 651 in __ParseString rval, cval = self.value_decode(V) File '.../lib/python2.4/site-packages/Beaker-1.1.2-py2.4.egg/beaker/ session.py', line 40 in value_decode sig = hmac.new(self.secret, val[40:], sha1).hexdigest() File '/usr/lib64/python2.4/hmac.py', line 107 in new return HMAC(key, msg, digestmod) File '/usr/lib64/python2.4/hmac.py', line 42 in __init__ self.outer = digestmod.new() AttributeError: 'builtin_function_or_method' object has no attribute 'new' --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to pylons-discuss+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~----------~----~----~----~------~----~------~--~---