rtyler / Spawning

Spawning is a wsgi server which supports multiple processes, multiple threads, green threads, non-blocking HTTP io, and automatic graceful upgrading of code
http://pypi.python.org/pypi/Spawning
MIT License
120 stars 18 forks source link

Threaded WSGI throws TypeError exception #14

Closed thrawn01 closed 13 years ago

thrawn01 commented 13 years ago

Traceback (most recent call last): File "/home/thrawn/dev/apple-env/lib/python2.6/site-packages/eventlet-0.9.9-py2.6.egg/eventlet/wsgi.py", line 338, in handle_one_response result = self.application(self.environ, start_response) TypeError: 'Proxy' object is not callable

The issue was introduced with commit http://github.com/rtyler/Spawning/commit/d96e9657b533609657542dc545dfeba64c67735e

This commit depends on tpool changes only available in eventlet trunk. tpool.Proxy is not callable in version eventlet 0.9.9

The eventlet callable support was added here http://bitbucket.org/which_linden/eventlet/changeset/ecef449748c0 Almost a month after the last 0.9.9 release tag

Checked out the latest version of eventlet from source and the error goes away. This means easy_installs of spawning are broken until eventlet releases 0.9.10.

rtyler commented 13 years ago

This should be resolved in the latest HEAD