David Montgomery
unread,Oct 27, 2012, 7:47:01 AM10/27/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to gev...@googlegroups.com
Hi,
I get this error and I cant trap it. I am using gevent event-1.0b2.
How do I resolve?
WARNING:root:epoll module not found; using select()
done
Unhandled exception in thread started by <bound method
ThreadPool._worker of <ThreadPool at 0x3b4b750 0/1/10>>
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/gevent-1.0b2-py2.7-linux-x86_64.egg/gevent/threadpool.py",
line 174, in _worker
task = task_queue.get()
File "/usr/local/lib/python2.7/dist-packages/gevent-1.0b2-py2.7-linux-x86_64.egg/gevent/_threading.py",
line 432, in get
self.not_empty.wait()
File "/usr/local/lib/python2.7/dist-packages/gevent-1.0b2-py2.7-linux-x86_64.egg/gevent/_threading.py",
line 142, in wait
waiter = Lock()
TypeError: 'NoneType' object is not callable
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/apport_python_hook.py", line
64, in apport_excepthook
from apport.fileutils import likely_packaged, get_recent_crashes
RuntimeError: sys.meta_path must be a list of import hooks
Original exception was:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/gevent-1.0b2-py2.7-linux-x86_64.egg/gevent/threadpool.py",
line 174, in _worker
task = task_queue.get()
File "/usr/local/lib/python2.7/dist-packages/gevent-1.0b2-py2.7-linux-x86_64.egg/gevent/_threading.py",
line 432, in get
self.not_empty.wait()
File "/usr/local/lib/python2.7/dist-packages/gevent-1.0b2-py2.7-linux-x86_64.egg/gevent/_threading.py",
line 142, in wait
waiter = Lock()
TypeError: 'NoneType' object is not callable
r = r.redis.StrictRedis()
def bidderRedisWrite(push):
try:
r.lpush('global',push) #most recent time user has seen add
except:
print 'error'
try:
jt = gevent.spawn(bidderRedisWrite,'test')
jt.join()
jt.kill()
except:
pass