cant trap an gevent error

125 views
Skip to first unread message

David Montgomery

unread,
Oct 27, 2012, 7:47:01 AM10/27/12
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

Denis Bilenko

unread,
Oct 27, 2012, 9:15:54 AM10/27/12
to gev...@googlegroups.com
Can you remove python-apport package and try again? If you still have
a stacktrace form gevent, please try the trunk and create an issue on
github.
Reply all
Reply to author
Forward
0 new messages