Closed nickstenning closed 13 years ago
I encountered this after recreating my virtualenv's after an OS upgrade. I had to add 'WebOb==1.0.7' in my application's setup.py. Curiously, it was only my smallest application that was affected; the others are working fine with WebOb 1.1.
This is now fixed in master.
It appears that
pylons.request.write
is badly broken in the integration of Pylons 1.0 and WebOb 1.1.See https://gist.github.com/1214075 for a simple test case.
Calling
request.write
from within a controller action results in an infinite loop, eventually terminating in aRuntimeError: maximum recursion depth exceeded
.See https://gist.github.com/1214795 for an example traceback (truncated in the middle).
I can replicate this reliably with a fresh virtualenv and an installation of
Pylons==1.0
. Notably, the issue does not occur if I manually uninstallWebOb==1.1
and replace it withWebOb==1.0
.Perhaps the simplest solution is to update the relevant
install_requires
line in setup.py?