qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Evan Rosenfeld <evan.m.rosenf...@googlemail.com>
Subject Configuring Python client for amqp.0-8
Date Fri, 15 May 2009 17:20:47 GMT
Hi,

I'm running RabbitMQ which uses the AMQP 0-8 spec and the M4 Qpid  
Python client. I have downloaded the original AMQP 0-8 spec and now  
all of the Qpid tests that are supposed to work do. However, I cannot  
even run the hello-world program.

What do I have to do to properly configure the python client to use  
the 0-8 spec? I have set AMQP_DOC to point to the appropriate xml file  
and changed the spec in qpid_config.py before I ran the setup scripts.  
Yet, hello-world still doesn't work. The functions still seem to be  
pointing to spec010.py. Is this okay?

Here is my stack trace:

[root@queuetest python]# ./hello-world
/usr/local/lib/qpid-M4/python/qpid/message.py:20: DeprecationWarning:  
the sets module is deprecated
   from sets import Set
Traceback (most recent call last):
   File "./hello-world", line 36, in <module>
     conn = Connection(connect(broker, port))
   File "/usr/local/lib/qpid-M4/python/qpid/connection.py", line 69,  
in __init__
     spec = load(default())
   File "/usr/local/lib/qpid-M4/python/qpid/spec010.py", line 680, in  
load
     s = doc["amqp"].dispatch(Loader())
   File "/usr/local/lib/qpid-M4/python/mllib/dom.py", line 157, in  
dispatch
     return method(self)
   File "/usr/local/lib/qpid-M4/python/qpid/spec010.py", line 592, in  
do_amqp
     self.children(a))
   File "/usr/local/lib/qpid-M4/python/qpid/spec010.py", line 585, in  
children
     return self.list(n.query["#tag"])
   File "/usr/local/lib/qpid-M4/python/qpid/spec010.py", line 581, in  
list
     result.append(nd.dispatch(self))
   File "/usr/local/lib/qpid-M4/python/mllib/dom.py", line 157, in  
dispatch
     return method(self)
   File "/usr/local/lib/qpid-M4/python/qpid/spec010.py", line 602, in  
do_domain
     return Domain(id(d["@name"]), id(d["@type"]), self.children(d))
   File "/usr/local/lib/qpid-M4/python/qpid/spec010.py", line 585, in  
children
     return self.list(n.query["#tag"])
   File "/usr/local/lib/qpid-M4/python/qpid/spec010.py", line 581, in  
list
     result.append(nd.dispatch(self))
   File "/usr/local/lib/qpid-M4/python/mllib/dom.py", line 156, in  
dispatch
     return Dispatcher.dispatch(self, f, "'%s'" % attr)
   File "/usr/local/lib/qpid-M4/python/mllib/dom.py", line 95, in  
dispatch
     (f.__class__.__name__, attrs))
AttributeError: 'Loader' object has no attribute 'do_assert', 'tag',  
or 'node'

Thanks in advance.


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org


Mime
View raw message