Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Cannot make weakref to gevent.queue.Queue object #1217
I was trying to get Ajenti running, which uses "gevent", but I ran into the following error:
A week before it worked, with version v1.2.2 installed.
What I've run:
Ajenti tried to run the following code (in /usr/local/lib/python2.7/dist-packages/aj/util/broadcast_queue.py):
import weakref from gevent.queue import Queue class BroadcastQueue(object): def __init__(self): self._queues =  def register(self): q = Queue() self._queues.append(weakref.ref(q)) return q def broadcast(self, val): for q in list(self._queues): if q(): q().put(val) else: self._queues.remove(q)