[rabbitmq-discuss] Python / QPID to RabbitMQ....no MLLIB??

Lynton Grice lynton.grice at netweaverguru.com
Mon Oct 1 09:38:02 BST 2007


Hi there,

I get EXACTLY the same error when I try to run the "disttailf.py -c" after
running disttailf.py d:\tmp\rabbit\rabbit.py.

The error seems to only be when I try to GET messages from
RabbitMQ....putting them on is fine.....

Here is the error again:

AttributeError: __eq__

Traceback (innermost last):

File "d:\Documents and Settings\Lynton\Desktop\disttailf.py", line 1, in ?
File "d:\Documents and Settings\Lynton\Desktop\disttailf.py", line 118, in ?
  consumer(client, ch)
File "d:\Documents and Settings\Lynton\Desktop\disttailf.py", line 38, in
consumer
  msg = python_queue.get(timeout=1)
File "D:\Python24\Lib\site-packages\qpid\queue.py", line 46, in get
  if result == Queue.END:
File "D:\Python24\Lib\site-packages\qpid\message.py", line 61, in
__getattr__
  raise AttributeError(attr)

Here is my rabbit.log file again....

=INFO REPORT==== 1-Oct-2007::10:33:39 ===
accepted TCP connection on 0.0.0.0:5672 from 127.0.0.1:1462

=WARNING REPORT==== 1-Oct-2007::10:33:39 ===
Attempt by client to use invalid ticket 0

=WARNING REPORT==== 1-Oct-2007::10:33:39 ===
Lax ticket check mode: fabricating full ticket number 0

=INFO REPORT==== 1-Oct-2007::10:33:47 ===
accepted TCP connection on 0.0.0.0:5672 from 127.0.0.1:1466

=WARNING REPORT==== 1-Oct-2007::10:33:47 ===
Attempt by client to use invalid ticket 0

=WARNING REPORT==== 1-Oct-2007::10:33:47 ===
Lax ticket check mode: fabricating full ticket number 0

=INFO REPORT==== 1-Oct-2007::10:34:07 ===
Connection closed abruptly.

=INFO REPORT==== 1-Oct-2007::10:34:07 ===
closing TCP connection from 127.0.0.1:1462

=INFO REPORT==== 1-Oct-2007::10:34:11 ===
accepted TCP connection on 0.0.0.0:5672 from 127.0.0.1:1467

=WARNING REPORT==== 1-Oct-2007::10:34:11 ===
Attempt by client to use invalid ticket 0

=WARNING REPORT==== 1-Oct-2007::10:34:11 ===
Lax ticket check mode: fabricating full ticket number 0

=INFO REPORT==== 1-Oct-2007::10:34:28 ===
Connection closed abruptly.

=INFO REPORT==== 1-Oct-2007::10:34:28 ===
closing TCP connection from 127.0.0.1:1466

Any other ideas?

-----Original Message-----
From: Dmitriy Samovskiy [mailto:dmitriy.samovskiy at cohesiveft.com] 
Sent: 30 September 2007 05:17 PM
To: Lynton Grice
Cc: rabbitmq-discuss at lists.rabbitmq.com
Subject: Re: [rabbitmq-discuss] Python / QPID to RabbitMQ....no MLLIB??

Hi Lynton,

Lynton Grice wrote:
> 
> print 'Receiving message'
> t = ch.basic_consume(queue="testq", no_ack=True)
> q = client.queue(t.consumer_tag)
> msg = q.get(timeout=1)
> print 'Got message:', msg.content.body
> 
> 
> AttributeError: __eq__
> 
> Traceback (innermost last):
> File "D:\tmp\Rabbit\rabbit.py", line 1, in ?
>   import sys
> File "D:\tmp\Rabbit\rabbit.py", line 27, in ?
>   msg = q.get(timeout=1)
> File "D:\Python24\Lib\site-packages\qpid\queue.py", line 46, in get
>   if result == Queue.END:
> File "D:\Python24\Lib\site-packages\qpid\message.py", line 61, in 
> __getattr__
>   raise AttributeError(attr)

I can't reproduce your problem. Could you post your entire script?

Alternatively, could you try running disttailf.py that I posted to the 
list earlier, as Alexis once suggested? You would need to adjust 
QPID_SVN_PATH to match location of qpid python libs on your system. 
Start consumer in one window as "disttailf.py -c" and then start a 
producer in another window as "disttailf.py d:\tmp\rabbit\rabbit.py" and 
let us know what you see.

- Dmitriy





More information about the rabbitmq-discuss mailing list