A customer has got this error with my software using Python 2.5.5. How can it be? Does _empty has disappeared from the queue? I don't understand this at all. I did not inherit from queue, there is just a normal instance of the Queue class. On my machine all seems to work fine, however, on the machine of the customer the error came up. Can anyone give me some advice what the problem could be?
The problem has happened here:
import Queue
self.requests.mutex.acquire()
allCount = self.requests._qsize()
while not self.requests._empty():
try:
(sock, addr, _) = self.requests._get()
# ... do some things
self.requests.mutex.release()
Before, the queue was initialized with
self.requests = Queue(self.reqQLen)
And these queue methods are also used in the module: put_nowait, qsize, get. The queue is used in context of multi-threading. Could this be the cause?
I'm wondering: The error message tells me that the variable requests is recognized as a queue instance but the attribute _empty is not there. However, this is a normal method in the Queue class.