You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@qpid.apache.org by Evan Rosenfeld <ev...@googlemail.com> on 2009/05/15 19:20:47 UTC
Configuring Python client for amqp.0-8
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
Re: Configuring Python client for amqp.0-8
Posted by Gordon Sim <gs...@redhat.com>.
Evan Rosenfeld wrote:
> 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.
The hello-world program is written to explicitly use 0-10. Have a look
at e.g. tests_0-8/example.py for an 0-8 application.
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org