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

Lynton Grice lynton.grice at netweaverguru.com
Sat Sep 29 13:20:20 BST 2007


Hi there,

 

My mistake...I did not add the QPID path to the 'sys.path' variable..

 

Something like:

 

import sys

sys.path = sys.path + ['D:\Python24\Lib\site-packages\python-qpid']

 

That at least works now..BUT I still get the error when I try receive a
message that I have just put onto the queue..

 

Here is the section of code:

 

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

 

When it hits the line "msg = q.get(timeout=1)" it dies...here is the error
trace..

 

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)

 

Also..not sure if it means anything but this is what is in the LOG:

 

=INFO REPORT==== 29-Sep-2007::12:38:03 ===

disk_log: repairing "d:/Documents and
Settings/Lynton/rabbitmq/db/rabbit-mnesia/rabbit_persister.LOG" ...

 

=INFO REPORT==== 29-Sep-2007::12:38:03 ===

Repaired persister log - 6 recovered, 0 bad

 

=INFO REPORT==== 29-Sep-2007::12:38:03 ===

Rolling persister log to "d:/Documents and
Settings/Lynton/rabbitmq/db/rabbit-mnesia/rabbit_persister.LOG.previous"

 

=INFO REPORT==== 29-Sep-2007::12:38:03 ===

started TCP listener on 0.0.0.0:5672

 

=INFO REPORT==== 29-Sep-2007::14:11:32 ===

accepted TCP connection on 0.0.0.0:5672 from 127.0.0.1:1531

 

=WARNING REPORT==== 29-Sep-2007::14:11:35 ===

Attempt by client to use invalid ticket 0

 

=WARNING REPORT==== 29-Sep-2007::14:11:35 ===

Lax ticket check mode: fabricating full ticket number 0

 

=INFO REPORT==== 29-Sep-2007::14:11:53 ===

Connection closed abruptly.

 

=INFO REPORT==== 29-Sep-2007::14:11:53 ===

closing TCP connection from 127.0.0.1:1531

 

And this is what it says in the broker:

 

starting database             ...done

starting core processes       ...done

starting recovery             ...done

starting persister            ...done

starting builtin applications ...done

starting TCP listeners        ...done

 

broker running

debug:: Internal rollback <0.194.0>

-          0 acks uncommitted, 0 messages unacked, 0 publishes uncommitted

 

Any ideas?

 

Chat later

 

Lynton

 

  _____  

From: Lynton Grice [mailto:lynton.grice at netweaverguru.com] 
Sent: 29 September 2007 01:51 PM
To: 'rabbitmq-discuss at lists.rabbitmq.com'; qpid-dev at incubator.apache.org
Cc: 'Matthias Radestock'; 'alexis.richardson at cohesiveft.com'
Subject: Python / QPID to RabbitMQ....no MLLIB??
Importance: High

 

Hi there,

 

I installed the latest version of the QPID python libs from
http://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid/python/ and am
having an interesting problem.. 

 

The problem is in "spec.py".....

 

It is yelling about the following line:

 

import re, textwrap, new, mllib

...

ImportError: No module named mllib

 

Traceback (innermost last):

 

File "D:\tmp\Rabbit\rabbit.py", line 1, in ?

  import qpid

File "D:\tmp\Rabbit\rabbit.py", line 1, in ?

  import qpid

File "D:\Python24\Lib\site-packages\qpid\__init__.py", line 20, in ?

  import spec, codec, connection, content, peer, delegate, client File
"D:\Python24\Lib\site-packages\qpid\spec.py", line 32, in ?

  import re, textwrap, new, mllib

 

 

Any ideas?

 

I will keep digging for now

 

Lynton

 

 

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20070929/f26fcb3f/attachment.htm 


More information about the rabbitmq-discuss mailing list