You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by Josh <jo...@globalherald.net> on 2008/02/10 08:29:23 UTC
Interesting Error with RH-MRG Python-Qpid
Howdy folks,
I'm noticing some errors with the python-qpid library as provided by
python-qpid-0.2-8.el5.noarch.rpm from the RedHat Qpid community site.
I'm using spec files downloaded from the amqp site.
If I use the amqp.0.8.xml spec file, I get this:
Fatal error:
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/qpid/peer.py", line 92, in reader
frame = self.conn.read()
File "/usr/lib/python2.4/site-packages/qpid/connection.py", line 108, in
read_8_0
type = self.spec.constants.byid[c.decode_octet()].name
KeyError: 15
If I use the amqp.0.9.xml spec file, I get this:
Connection instance has no attribute 'write_0_9'
I remember a while back, reading about a hack to one of the files to
change the name of a function to write_0_9. I'd rather not repeat that
exercise if I don't have to. I'm going to dig deeper into these errors to
see if I can pin down the problems.
Which spec should I be using with the QPid C++ daemon, as provided by
qpidd-0.2-19.el5 in the RedHat QPid package? I notice that the examples
use 0.10-preview version - is this the only version that works with the
noted QPid versions?
Thanks,
-J
Re: Interesting Error with RH-MRG Python-Qpid
Posted by Gordon Sim <gs...@redhat.com>.
Josh wrote:
> Which spec should I be using with the QPid C++ daemon, as provided by
> qpidd-0.2-19.el5 in the RedHat QPid package? I notice that the examples
> use 0.10-preview version - is this the only version that works with the
> noted QPid versions?
Yes, the c++ daemon built from the qpid trunk expects all clients to be
based on the preview of the 0-10 spec. Support for the final version of
0.10 is coming soon once that is voted and published by the AMQP WG.
Re: Interesting Error with RH-MRG Python-Qpid
Posted by Carl Trieloff <cc...@redhat.com>.
Josh,
The C++ broker has been tracking 0-10 specification from the AMQP
Working group. It is not yet 100% uptodate with the latest votes on 0-10
but quite close, thus the '0-10 spec preview'.
So use the 0-10 examples etc...
The spec file that matches is included in amqp-1.0-3.el5.noarch.rpm
<http://ftp.redhat.com/pub/redhat/linux/beta/MRG/RHEL-5/i386/amqp-1.0-3.el5.noarch.rpm>
in the same repo.
regards
Carl.
Josh wrote:
>
> Howdy folks,
>
> I'm noticing some errors with the python-qpid library as provided by
> python-qpid-0.2-8.el5.noarch.rpm from the RedHat Qpid community site.
> I'm using spec files downloaded from the amqp site.
>
> If I use the amqp.0.8.xml spec file, I get this:
>
> Fatal error:
> Traceback (most recent call last):
> File "/usr/lib/python2.4/site-packages/qpid/peer.py", line 92, in
> reader
> frame = self.conn.read()
> File "/usr/lib/python2.4/site-packages/qpid/connection.py", line
> 108, in read_8_0
> type = self.spec.constants.byid[c.decode_octet()].name
> KeyError: 15
>
> If I use the amqp.0.9.xml spec file, I get this:
>
> Connection instance has no attribute 'write_0_9'
>
> I remember a while back, reading about a hack to one of the files to
> change the name of a function to write_0_9. I'd rather not repeat
> that exercise if I don't have to. I'm going to dig deeper into these
> errors to see if I can pin down the problems.
>
> Which spec should I be using with the QPid C++ daemon, as provided by
> qpidd-0.2-19.el5 in the RedHat QPid package? I notice that the
> examples use 0.10-preview version - is this the only version that
> works with the noted QPid versions?
>
> Thanks,
> -J
>