Can you file a bug for this on the pylons trac? http://pylonshq.com/project/
On Wed, Jan 21, 2009 at 5:02 PM, Lukasz Szybalski <[email protected]>wrote: > > On Wed, Jan 7, 2009 at 8:47 AM, TurboGears <[email protected]> > wrote: > > #2133: AttributeError in beaker in tg2.0b2 python2.4 > > > ------------------------+--------------------------------------------------- > > Reporter: lszyba1 | Owner: faide > > Type: defect | Status: new > > Priority: highest | Milestone: 2.0b2 > > Component: TurboGears | Version: trunk > > Severity: normal | Keywords: > > > ------------------------+--------------------------------------------------- > > on python2.4 with identity. > > Its either coded wrong or code for a wrong version? > > > > Let me know. Right now tg2b2 does not work. > > > > > > URL: http://localhost:8080/ > > File '/home/lucas/tmp/tg2b2env/lib/python2.4/site- > > packages/WebError-0.9.1-py2.4.egg/weberror/evalexception.py', > > line 428 in respond > > app_iter = self.application(environ, detect_start_response) > > File '/home/lucas/tmp/tg2b2env/lib/python2.4/site- > > packages/TurboGears2-2.0b2-py2.4.egg/tg/configuration.py', > > line 521 in remover > > return app(environ, start_response) > > File '/home/lucas/tmp/tg2b2env/lib/python2.4/site- > > packages/repoze.tm2-1.0a3-py2.4.egg/repoze/tm/__init__.py', > > line 19 in __call__ > > result = self.application(environ, save_status_and_headers) > > File '/home/lucas/tmp/tg2b2env/lib/python2.4/site- > > packages/repoze.who-1.0.9-py2.4.egg/repoze/who/middleware.py', > > line 107 in __call__ > > app_iter = app(environ, wrapper.wrap_start_response) > > File '/home/lucas/tmp/tg2b2env/lib/python2.4/site- > > > packages/ToscaWidgets-0.9.5dev_20081026-py2.4.egg/tw/core/middleware.py', > > line 36 in __call__ > > return self.wsgi_app(environ, start_response) > > File '/home/lucas/tmp/tg2b2env/lib/python2.4/site- > > > packages/ToscaWidgets-0.9.5dev_20081026-py2.4.egg/tw/core/middleware.py', > > line 59 in wsgi_app > > resp = req.get_response(self.application) > > File 'build/bdist.linux-i686/egg/webob/__init__.py', line 1306 in > > get_response > > File 'build/bdist.linux-i686/egg/webob/__init__.py', line 1275 in > > call_application > > File '/home/lucas/tmp/tg2b2env/lib/python2.4/site- > > > > packages/ToscaWidgets-0.9.5dev_20081026-py2.4.egg/tw/core/resource_injector.py', > > line 67 in _injector > > resp = req.get_response(app) > > File 'build/bdist.linux-i686/egg/webob/__init__.py', line 1306 in > > get_response > > File 'build/bdist.linux-i686/egg/webob/__init__.py', line 1275 in > > call_application > > File '/home/lucas/tmp/tg2b2env/lib/python2.4/site- > > packages/Beaker-1.1.2-py2.4.egg/beaker/middleware.py', > > line 81 in __call__ > > return self.app(environ, start_response) > > File '/home/lucas/tmp/tg2b2env/lib/python2.4/site- > > packages/Beaker-1.1.2-py2.4.egg/beaker/middleware.py', > > line 159 in __call__ > > return self.wrap_app(environ, session_start_response) > > File '/home/lucas/tmp/tg2b2env/lib/python2.4/site- > > packages/Routes-1.10.1-py2.4.egg/routes/middleware.py', > > line 118 in __call__ > > response = self.app(environ, start_response) > > File '/home/lucas/tmp/tg2b2env/lib/python2.4/site- > > packages/Pylons-0.9.7rc4-py2.4.egg/pylons/wsgiapp.py', > > line 117 in __call__ > > response = self.dispatch(controller, environ, start_response) > > File '/home/lucas/tmp/tg2b2env/lib/python2.4/site- > > packages/Pylons-0.9.7rc4-py2.4.egg/pylons/wsgiapp.py', > > line 316 in dispatch > > return controller(environ, start_response) > > File '/home/lucas/tmp/maa3/maa3/lib/base.py', line 36 in __call__ > > return TGController.__call__(self, environ, start_response) > > File '/home/lucas/tmp/tg2b2env/lib/python2.4/site- > > packages/Pylons-0.9.7rc4-py2.4.egg/pylons/controllers/core.py', > > line 204 in __call__ > > response = self._dispatch_call() > > File '/home/lucas/tmp/tg2b2env/lib/python2.4/site- > > packages/Pylons-0.9.7rc4-py2.4.egg/pylons/controllers/core.py', > > line 159 in _dispatch_call > > response = self._inspect_call(func) > > File '/home/lucas/tmp/tg2b2env/lib/python2.4/site- > > packages/Pylons-0.9.7rc4-py2.4.egg/pylons/controllers/core.py', > > line 95 in _inspect_call > > result = self._perform_call(func, args) > > File '/home/lucas/tmp/tg2b2env/lib/python2.4/site- > > packages/TurboGears2-2.0b2-py2.4.egg/tg/controllers.py', > > line 507 in _perform_call > > result = DecoratedController._perform_call( > > File '/home/lucas/tmp/tg2b2env/lib/python2.4/site- > > packages/TurboGears2-2.0b2-py2.4.egg/tg/controllers.py', > > line 118 in _perform_call > > response = self._render_response(controller, output) > > File '/home/lucas/tmp/tg2b2env/lib/python2.4/site- > > packages/TurboGears2-2.0b2-py2.4.egg/tg/controllers.py', > > line 281 in _render_response > > template_name=template_name) > > File '/home/lucas/tmp/tg2b2env/lib/python2.4/site- > > packages/TurboGears2-2.0b2-py2.4.egg/tg/render.py', > > line 102 in render > > template_vars.update(_get_tg_vars()) > > File '/home/lucas/tmp/tg2b2env/lib/python2.4/site- > > packages/TurboGears2-2.0b2-py2.4.egg/tg/render.py', > > line 53 in _get_tg_vars > > flash = tg.get_flash(), > > File '/home/lucas/tmp/tg2b2env/lib/python2.4/site- > > packages/TurboGears2-2.0b2-py2.4.egg/tg/flash.py', > > line 27 in get_flash > > msg = session.get('flash_message', '') > > File '/home/lucas/tmp/tg2b2env/lib/python2.4/site- > > packages/Paste-1.7.2-py2.4.egg/paste/registry.py', > > line 137 in __getattr__ > > return getattr(self._current_obj(), attr) > > File '/home/lucas/tmp/tg2b2env/lib/python2.4/site- > > packages/Beaker-1.1.2-py2.4.egg/beaker/session.py', > > line 463 in __getattr__ > > return getattr(self._session(), attr) > > File '/home/lucas/tmp/tg2b2env/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 '/home/lucas/tmp/tg2b2env/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 '/home/lucas/tmp/tg2b2env/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 'Cookie.py', line 568 in __init__ > > if input: self.load(input) > > File 'Cookie.py', line 621 in load > > self.__ParseString(rawdata) > > File 'Cookie.py', line 651 in __ParseString > > rval, cval = self.value_decode(V) > > File '/home/lucas/tmp/tg2b2env/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 'hmac.py', line 107 in new > > return HMAC(key, msg, digestmod) > > File 'hmac.py', line 42 in __init__ > > self.outer = digestmod.new() > > AttributeError: 'builtin_function_or_method' object has no attribute > 'new' > > > > > > -- > > Ticket URL: <http://trac.turbogears.org/ticket/2133> > > TurboGears <http://www.turbogears.org/> > > TurboGears front-to-back web development > > > > > I still get this error on tg2b3 when I go to admin page. Python2.4. > The beaker version seem to be correct. How can I debug this? > > URL: http://localhost:8080/admin > File > '/home/lucas/tmp/tg2b3env/lib/python2.4/site-packages/WebError-0.9.1-py2.4.egg/weberror/evalexception.py', > line 428 in respond > app_iter = self.application(environ, detect_start_response) > File > '/home/lucas/tmp/tg2b3env/lib/python2.4/site-packages/TurboGears2-2.0b3-py2.4.egg/tg/configuration.py', > line 617 in wrapper > return app(environ, start_response) > File > '/home/lucas/tmp/tg2b3env/lib/python2.4/site-packages/TurboGears2-2.0b3-py2.4.egg/tg/configuration.py', > line 527 in remover > return app(environ, start_response) > File > '/home/lucas/tmp/tg2b3env/lib/python2.4/site-packages/repoze.tm2-1.0a3-py2.4.egg/repoze/tm/__init__.py', > line 19 in __call__ > result = self.application(environ, save_status_and_headers) > File > '/home/lucas/tmp/tg2b3env/lib/python2.4/site-packages/ToscaWidgets-0.9.5dev_20081026-py2.4.egg/tw/core/middleware.py', > line 36 in __call__ > return self.wsgi_app(environ, start_response) > File > '/home/lucas/tmp/tg2b3env/lib/python2.4/site-packages/ToscaWidgets-0.9.5dev_20081026-py2.4.egg/tw/core/middleware.py', > line 59 in wsgi_app > resp = req.get_response(self.application) > File 'build/bdist.linux-i686/egg/webob/__init__.py', line 1336 in > get_response > File 'build/bdist.linux-i686/egg/webob/__init__.py', line 1305 in > call_application > File > '/home/lucas/tmp/tg2b3env/lib/python2.4/site-packages/ToscaWidgets-0.9.5dev_20081026-py2.4.egg/tw/core/resource_injector.py', > line 67 in _injector > resp = req.get_response(app) > File 'build/bdist.linux-i686/egg/webob/__init__.py', line 1336 in > get_response > File 'build/bdist.linux-i686/egg/webob/__init__.py', line 1305 in > call_application > File > '/home/lucas/tmp/tg2b3env/lib/python2.4/site-packages/Beaker-1.1.3-py2.4.egg/beaker/middleware.py', > line 81 in __call__ > return self.app(environ, start_response) > File > '/home/lucas/tmp/tg2b3env/lib/python2.4/site-packages/Beaker-1.1.3-py2.4.egg/beaker/middleware.py', > line 159 in __call__ > return self.wrap_app(environ, session_start_response) > File > '/home/lucas/tmp/tg2b3env/lib/python2.4/site-packages/Routes-1.10.2-py2.4.egg/routes/middleware.py', > line 118 in __call__ > response = self.app(environ, start_response) > File > '/home/lucas/tmp/tg2b3env/lib/python2.4/site-packages/Pylons-0.9.7rc4-py2.4.egg/pylons/wsgiapp.py', > line 117 in __call__ > response = self.dispatch(controller, environ, start_response) > File > '/home/lucas/tmp/tg2b3env/lib/python2.4/site-packages/Pylons-0.9.7rc4-py2.4.egg/pylons/wsgiapp.py', > line 316 in dispatch > return controller(environ, start_response) > File '/home/lucas/tmp/maa5/maa5/lib/base.py', line 36 in __call__ > return TGController.__call__(self, environ, start_response) > File > '/home/lucas/tmp/tg2b3env/lib/python2.4/site-packages/Pylons-0.9.7rc4-py2.4.egg/pylons/controllers/core.py', > line 263 in __call__ > return response(environ, self.start_response) > File 'build/bdist.linux-i686/egg/webob/exc.py', line 120 in __call__ > File 'build/bdist.linux-i686/egg/webob/exc.py', line 369 in __call__ > File 'build/bdist.linux-i686/egg/webob/exc.py', line 247 in __call__ > File 'build/bdist.linux-i686/egg/webob/exc.py', line 231 in > generate_response > File 'build/bdist.linux-i686/egg/webob/exc.py', line 221 in html_body > File 'build/bdist.linux-i686/egg/webob/exc.py', line 207 in _make_body > File 'build/bdist.linux-i686/egg/webob/__init__.py', line 65 in html_escape > File > '/home/lucas/tmp/tg2b3env/lib/python2.4/site-packages/Beaker-1.1.3-py2.4.egg/beaker/session.py', > line 481 in __repr__ > return self._session().__repr__() > File > '/home/lucas/tmp/tg2b3env/lib/python2.4/site-packages/Beaker-1.1.3-py2.4.egg/beaker/session.py', > line 458 in _session > self.__dict__['_sess'] = Session(req, use_cookies=True, > File > '/home/lucas/tmp/tg2b3env/lib/python2.4/site-packages/Beaker-1.1.3-py2.4.egg/beaker/session.py', > line 86 in __init__ > self.cookie = SignedCookie(secret, input=cookieheader) > File > '/home/lucas/tmp/tg2b3env/lib/python2.4/site-packages/Beaker-1.1.3-py2.4.egg/beaker/session.py', > line 36 in __init__ > Cookie.BaseCookie.__init__(self, input) > File 'Cookie.py', line 568 in __init__ > if input: self.load(input) > File 'Cookie.py', line 621 in load > self.__ParseString(rawdata) > File 'Cookie.py', line 651 in __ParseString > rval, cval = self.value_decode(V) > File > '/home/lucas/tmp/tg2b3env/lib/python2.4/site-packages/Beaker-1.1.3-py2.4.egg/beaker/session.py', > line 40 in value_decode > sig = hmac.new(self.secret, val[40:], sha1).hexdigest() > File 'hmac.py', line 107 in new > return HMAC(key, msg, digestmod) > File 'hmac.py', line 42 in __init__ > self.outer = digestmod.new() > AttributeError: 'builtin_function_or_method' object has no attribute 'new' > > > > -- Mark Ramm-Christensen email: mark at compoundthinking dot com blog: www.compoundthinking.com/blog --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears Trunk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/turbogears-trunk?hl=en -~----------~----~----~----~------~----~------~--~---
