[rabbitmq-discuss] FW: Python client to RabbitMQ.....error?

Martin Ritchie ritchiem at apache.org
Mon Oct 1 08:57:05 BST 2007


On 28/09/2007, Dmitriy Samovskiy <dmitriy.samovskiy at cohesiveft.com> wrote:
>
>
> Lynton Grice wrote:
> >
> > msg = q.get(timeout=1)
> >
> > That throws the following exception:
> >
> > KeyError: __eq__
> >
> > Traceback (innermost last):
> >
> > File "D:\tmp\Rabbit\rabbit.py", line 1, in ?
> >   import qpid
> > File "D:\tmp\Rabbit\rabbit.py", line 22, in ?
> >   msg = q.get(timeout=1)
> > File "D:\Python24\Lib\site-packages\qpid\queue.py", line 39, in get
> >   if result == Queue.END:
> > File "D:\Python24\Lib\site-packages\qpid\message.py", line 70, in
> > __getattr__
> >   env, key = self._slot(attr)
> > File "D:\Python24\Lib\site-packages\qpid\message.py", line 63, in _slot
> >   field = self.method.fields.bypyname[attr]
> >
>
> Could you please double check that you have the latest qpid python code
> from subversion? I am at rev 580460 now. Based on this traceback, what
> you have in d:\python24\lib\site-packages\qpid is not the latest: line
> numbers don't match the code and bypyname is never mentioned in any of
> the files. This can explain your vhost issue as well.
>
> svn co http://svn.apache.org/repos/asf/incubator/qpid/trunk
>
> http://cwiki.apache.org/qpid/source-repository.html
>
> - Dmitriy
>
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss

It sounds like you are using quite an old version of the python
client. When the Qpid Java broker had vhosts and started testing with
vhosts I seem to recall that hostname as vhost default behaviour.

If you are looking for a published version then our M2 release should
be coming version soon.

hth
-- 
Martin Ritchie




More information about the rabbitmq-discuss mailing list