Pylons/webob — Issue #26: Exception with 1.1.1 when using wsgify
Author: ssc41
Created: 2012-02-02 08:38:58+00:00
State: open

We recently updated from version 0.9.8 to 1.1.1 and we have found the following error in our logs. The only thing we import from dec is wsgify.

[Thu Feb 02 08:04:02 2012] [error] [client 10.18.48.10] mod_wsgi (pid=32391): Exception occurred processing WSGI script '/usr/cachelogic/lib/billingapi.py'.
[Thu Feb 02 08:04:02 2012] [error] [client 10.18.48.10] Traceback (most recent call last):
[Thu Feb 02 08:04:02 2012] [error] [client 10.18.48.10] File "/usr/lib/python2.6/site-packages/webob/dec.py", line 142, in __call__
[Thu Feb 02 08:04:02 2012] [error] [client 10.18.48.10] req.response.request = req
[Thu Feb 02 08:04:02 2012] [error] [client 10.18.48.10] File "/usr/lib/python2.6/site-packages/webob/response.py", line 881, in _request__set
[Thu Feb 02 08:04:02 2012] [error] [client 10.18.48.10] _warn_req()
[Thu Feb 02 08:04:02 2012] [error] [client 10.18.48.10] File "/usr/lib/python2.6/site-packages/webob/response.py", line 1196, in _warn_req
[Thu Feb 02 08:04:02 2012] [error] [client 10.18.48.10] warn_deprecation("Response.request and Response.environ are deprecated", '1.2', 3)
[Thu Feb 02 08:04:02 2012] [error] [client 10.18.48.10] File "/usr/lib/python2.6/site-packages/webob/util.py", line 48, in warn_deprecation
[Thu Feb 02 08:04:02 2012] [error] [client 10.18.48.10] warnings.warn(text, cls, stacklevel=stacklevel+1)
[Thu Feb 02 08:04:02 2012] [error] [client 10.18.48.10] File "/usr/lib64/python2.6/warnings.py", line 29, in _show_warning
[Thu Feb 02 08:04:02 2012] [error] [client 10.18.48.10] file.write(formatwarning(message, category, filename, lineno, line))
[Thu Feb 02 08:04:02 2012] [error] [client 10.18.48.10] AttributeError: 'module' object has no attribute 'write'

OS: Ubuntu (2.6.32.25)
Python: Python 2.6.6 64bit
WebOb: 1.1.1