Pylons / pylons

Pylons Framework, community maintained with guidance/assistance from the Pylons Project. Merged with repoze.bfg for Pyramid framework.
Other
231 stars 76 forks source link

WebOb integration broken with WebOb==1.1 #9

Closed nickstenning closed 13 years ago

nickstenning commented 13 years ago

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 a RuntimeError: 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 uninstall WebOb==1.1 and replace it with WebOb==1.0.

Perhaps the simplest solution is to update the relevant install_requires line in setup.py?

mikeorr commented 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.

bbangert commented 13 years ago

This is now fixed in master.