Hi, I upgraded my pylons from 0.9.6.x to 0.9.7 using easy_install, after which my existing pylons application fails to work as before. I get some deprecation warnings on the shell/terminal from which I do `paster serve --reload development.ini`, as well as get a stack trace for KeyError: 'wsgiorg.routing_args' in the browser.
I read this thread ( http://groups.google.com/group/pylons-discuss/browse_thread/thread/22ac99d8970e7258 ) in this list, but commenting out authkit in middleware.py doesn't help much. I get this in the terminal, Starting subprocess with file monitor /usr/lib/python2.5/site-packages/Pylons-0.9.7rc1-py2.5.egg/pylons/ templating.py:616: UserWarning: Unbuilt egg for troika [unknown version] (/home/user/code/svnmycode/myproject/trunk) Engine = entry_point.load() /home/user/code/svnmycode/myproject/trunk/myproject/config/ middleware.py:49: DeprecationWarning: The 'error_template' errorware argument for customizing EvalException is deprecated, please remove it. To customize EvalException's HTML, setup your own EvalException and ErrorMiddlewares instead of using ErrorHandler. **config['pylons.errorware']) And I get the following stack trace in the browser... KeyError: 'wsgiorg.routing_args' clear this clear this URL: http://127.0.0.1:5000/ Module weberror.evalexception:428 in respond view << try: __traceback_supplement__ = errormiddleware.Supplement, self, environ app_iter = self.application(environ, detect_start_response) # Don't create a list from a paste.fileapp object >> app_iter = self.application(environ, detect_start_response) Module authkit.authenticate:290 in __call__ view << def __call__(self, environ, start_response): environ.update(self.dct) return self.app(environ, start_response) class RequireEnvironKey(object): >> return self.app(environ, start_response) Module authkit.authenticate.cookie:352 in __call__ view << headers.extend(set_cookies) return start_response(status, headers, exc_info) return self.app(environ, cookie_setting_start_response) # >> return self.app(environ, cookie_setting_start_response) Module authkit.authenticate.multi:62 in __call__ view << return None app_iter = app(environ, start_response) if not status_: raise Exception('WSGI start_response was not called before a result' >> app_iter = app(environ, start_response) Module authkit.authenticate.multi:32 in app view << exc_info_.append(exc_info) log.debug("Status: %r, Headers: %r", status, headers) return self.default(environ, find) def logging_start_response(status, headers, exc_info=None): >> return self.default(environ, find) Module authkit.authenticate:280 in __call__ view << def __call__(self, environ, start_response): environ[self.key] = self.object return self.app(environ, start_response) class AddDictToEnviron(object): >> return self.app(environ, start_response) Module authkit.authenticate:303 in __call__ view << if not environ.has_key(self.key): raise Exception(self.missing_error%{'key':self.key}) return self.app(environ, start_response) def get_methods(): >> return self.app(environ, start_response) Module paste.httpexceptions:636 in __call__ view << []).append(HTTPException) try: return self.application(environ, start_response) except HTTPException, exc: return exc(environ, start_response) >> return self.application(environ, start_response) Module pylons.wsgiapp:116 in __call__ view << return ['%s' % paste.registry.restorer.get_request_id(environ)] controller = self.resolve(environ, start_response) response = self.dispatch(controller, environ, start_response) >> controller = self.resolve(environ, start_response) Module pylons.wsgiapp:240 in resolve view << config = request_config() config.redirect = self.redirect_to match = environ['wsgiorg.routing_args'][1] environ['pylons.routes_dict'] = match >> match = environ['wsgiorg.routing_args'][1] KeyError: 'wsgiorg.routing_args' --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" 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/pylons-discuss?hl=en -~----------~----~----~----~------~----~------~--~---
