Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #2347 (closed defect: fixed)

Opened 10 years ago

Last modified 10 years ago

2.0.1 broken with mod_wsgi

Reported by: pitrou Owned by:
Priority: highest Milestone: 2.0.* bugfix
Component: TurboGears Version: 2.0.1
Severity: critical Keywords:
Cc:

Description

I get the following traceback after an upgrade from 2.0 to 2.0.1:

File '/home/apitrou/XXX-dev/lib/python2.5/site-packages/WebError-0.10.1-py2.5.egg/weberror/evalexception.py', line 431 in respond
  app_iter = self.application(environ, detect_start_response)
File '/home/apitrou/XXX-dev/lib/python2.5/site-packages/TurboGears2-2.0.1-py2.5.egg/tg/configuration.py', line 643 in wrapper
  return app(environ, start_response)
File '/home/apitrou/XXX-dev/lib/python2.5/site-packages/TurboGears2-2.0.1-py2.5.egg/tg/configuration.py', line 543 in remover
  return app(environ, start_response)
File '/home/apitrou/XXX-dev/lib/python2.5/site-packages/repoze.tm2-1.0a4-py2.5.egg/repoze/tm/__init__.py', line 19 in __call__
  result = self.application(environ, save_status_and_headers)
File '/home/apitrou/XXX-dev/lib/python2.5/site-packages/repoze.who-1.0.15-py2.5.egg/repoze/who/middleware.py', line 107 in __call__
  app_iter = app(environ, wrapper.wrap_start_response)
File '/home/apitrou/XXX-dev/lib/python2.5/site-packages/ToscaWidgets-0.9.7.2-py2.5.egg/tw/core/middleware.py', line 36 in __call__
  return self.wsgi_app(environ, start_response)
File '/home/apitrou/XXX-dev/lib/python2.5/site-packages/ToscaWidgets-0.9.7.2-py2.5.egg/tw/core/middleware.py', line 59 in wsgi_app
  resp = req.get_response(self.application)
File '/home/apitrou/XXX-dev/lib/python2.5/site-packages/WebOb-0.9.6.1-py2.5.egg/webob/__init__.py', line 1325 in get_response
  application, catch_exc_info=False)
File '/home/apitrou/XXX-dev/lib/python2.5/site-packages/WebOb-0.9.6.1-py2.5.egg/webob/__init__.py', line 1293 in call_application
  app_iter = application(self.environ, start_response)
File '/home/apitrou/XXX-dev/lib/python2.5/site-packages/ToscaWidgets-0.9.7.2-py2.5.egg/tw/core/resource_injector.py', line 67 in _injector
  resp = req.get_response(app)
File '/home/apitrou/XXX-dev/lib/python2.5/site-packages/WebOb-0.9.6.1-py2.5.egg/webob/__init__.py', line 1325 in get_response
  application, catch_exc_info=False)
File '/home/apitrou/XXX-dev/lib/python2.5/site-packages/WebOb-0.9.6.1-py2.5.egg/webob/__init__.py', line 1293 in call_application
  app_iter = application(self.environ, start_response)
File '/home/apitrou/XXX-dev/lib/python2.5/site-packages/Beaker-1.3.1-py2.5.egg/beaker/middleware.py', line 70 in __call__
  return self.app(environ, start_response)
File '/home/apitrou/XXX-dev/lib/python2.5/site-packages/Beaker-1.3.1-py2.5.egg/beaker/middleware.py', line 149 in __call__
  return self.wrap_app(environ, session_start_response)
File '/home/apitrou/XXX-dev/lib/python2.5/site-packages/Routes-1.10.3-py2.5.egg/routes/middleware.py', line 130 in __call__
  response = self.app(environ, start_response)
File '/home/apitrou/XXX-dev/lib/python2.5/site-packages/Pylons-0.9.7-py2.5.egg/pylons/wsgiapp.py', line 125 in __call__
  response = self.dispatch(controller, environ, start_response)
File '/home/apitrou/XXX-dev/lib/python2.5/site-packages/Pylons-0.9.7-py2.5.egg/pylons/wsgiapp.py', line 324 in dispatch
  return controller(environ, start_response)
File '/home/apitrou/XXX-dev/XXX/lib/base.py', line 39 in __call__
  return TGController.__call__(self, environ, start_response)
File '/home/apitrou/XXX-dev/lib/python2.5/site-packages/Pylons-0.9.7-py2.5.egg/pylons/controllers/core.py', line 217 in __call__
  response = self._inspect_call(self.__before__)
File '/home/apitrou/XXX-dev/lib/python2.5/site-packages/Pylons-0.9.7-py2.5.egg/pylons/controllers/core.py', line 107 in _inspect_call
  result = self._perform_call(func, args)
File '/home/apitrou/XXX-dev/lib/python2.5/site-packages/TurboGears2-2.0.1-py2.5.egg/tg/controllers.py', line 822 in _perform_call
  controller, remainder, params = self._get_routing_info(routingArgs)
File '/home/apitrou/XXX-dev/lib/python2.5/site-packages/TurboGears2-2.0.1-py2.5.egg/tg/controllers.py', line 462 in _get_routing_info
  controller, remainder = _object_dispatch(self, url_path)
File '/home/apitrou/XXX-dev/lib/python2.5/site-packages/TurboGears2-2.0.1-py2.5.egg/tg/controllers.py', line 527 in _object_dispatch
  obj, parent, remainder = _find_object(obj, remainder, notfound_handlers)
File '/home/apitrou/XXX-dev/lib/python2.5/site-packages/TurboGears2-2.0.1-py2.5.egg/tg/controllers.py', line 647 in _find_object
  _check_controller_auth(obj)
File '/home/apitrou/XXX-dev/lib/python2.5/site-packages/TurboGears2-2.0.1-py2.5.egg/tg/controllers.py', line 500 in _check_controller_auth
  print obj
IOError: sys.stdout access restricted by mod_wsgi

Obviously "print" has nothing to do in a Web application.

Change History

comment:1 Changed 10 years ago by jorge.vargas

must have missed this, it was fixed right after release and 2.0.3 got rid of it.

comment:3 Changed 10 years ago by Chris Arndt

  • Status changed from new to closed
  • Resolution set to fixed
  • Milestone set to 2.* bugfix

Since this is fixed in 2.0.3 closing as fixed.

Note: See TracTickets for help on using tickets.