Hi,
I am using web.py for providing a web-interface for an internal
project that uses the gevent library.
Some times on the web-interface, i get the error: gevent is only
usable from a single thread.
Has anyone faced such a problem before? Is there anyway i can overcome
such non-deterministic behavior in the web-interface?
Any insight will be appreciated.
Thanks!
Shauvik
PS: Here is the Stack Trace:
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/web.py-0.34-py2.6.egg/web/
wsgiserver/__init__.py", line 1170, in communicate
req.parse_request()
File "/usr/lib/python2.6/site-packages/web.py-0.34-py2.6.egg/web/
wsgiserver/__init__.py", line 307, in parse_request
self._parse_request()
File "/usr/lib/python2.6/site-packages/web.py-0.34-py2.6.egg/web/
wsgiserver/__init__.py", line 320, in _parse_request
request_line = self.rfile.readline()
File "/usr/lib/python2.6/site-packages/web.py-0.34-py2.6.egg/web/
wsgiserver/__init__.py", line 215, in readline
data = self.rfile.readline(256)
File "/usr/lib/python2.6/site-packages/web.py-0.34-py2.6.egg/web/
wsgiserver/__init__.py", line 868, in readline
data = self.recv(self._rbufsize)
File "/usr/lib/python2.6/site-packages/web.py-0.34-py2.6.egg/web/
wsgiserver/__init__.py", line 747, in recv
return self._sock.recv(size)
File "/usr/lib/python2.6/site-packages/gevent/socket.py", line 333,
in recv
wait_read(self.fileno(), timeout=self.timeout)
File "/usr/lib/python2.6/site-packages/gevent/socket.py", line 139,
in wait_read
switch_result = get_hub().switch()
File "/usr/lib/python2.6/site-packages/gevent/hub.py", line 125, in
get_hub
raise NotImplementedError('gevent is only usable from a single
thread')
NotImplementedError: gevent is only usable from a single thread
--
You received this message because you are subscribed to the Google Groups
"web.py" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/webpy?hl=en.