Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
'gevent._greenlet.Greenlet' object has no attribute 'ident_registry' #1363
Not sure exactly how this happened, but I saw this in my logs:
Not completely sure whether it is raven's (sentry) fault or gevent's issue. Any thoughts?
Hmm. It looks like you wound up with a gevent
I can't find anywhere that gevent changes the
As far as I can tell, I didn't touch the parent attribute of greenlets. The error happens after sqlalchemy & mysqlclient (mysqldb) raises an OperationalError. I used a (deprecated and now removed) waiter of mysqlclient like https://github.com/PyMySQL/mysqlclient-python/blob/53764264945fb26d5a21dd9000c4ea5eefdc6e2d/samples/waiter_gevent.py to wait for a fd after every query.
def gevent_waiter(fd, hub=gevent.hub.get_hub()): hub.wait(hub.loop.io(fd, 1))
Is this relevant?