[rabbitmq-discuss] Tutorial 3 problem with binding

Gavin M. Roy gmr at meetme.com
Thu Nov 15 20:19:42 GMT 2012


I'll be releasing 0.9.8 soon that address these issues.

For 0.9.5, change exchange_type to type.


On Thu, Nov 15, 2012 at 11:08 AM, Scott Pierce <pspierce at gmail.com> wrote:

> I guess that will work up until tutorial 4 when you will receive the
> following using 0.9.5.
>
> Traceback (most recent call last):
>   File "receive_logs_direct.py", line 9, in <module>
>     channel.exchange_declare(exchange='direct_logs',
> exchange_type='direct')
> TypeError: exchange_declare() got an unexpected keyword argument
> 'exchange_type'
>
> You can't go to 0.9.7 either because then it hangs on
> result = channel.queue_declare(exclusive=True)
> never returning.
>
> I'd be interested to hear if you run into the same.
>
>
> On Thursday, November 15, 2012 7:07:59 AM UTC-5, vanderkerkoff wrote:
>>
>> Aha, mystery solved thanks to bob235 on the irc room at freenode
>>
>> use pika 0.9.5 instead
>>
>> :-)
>>
>> Thanks
>>
>> On Thursday, 15 November 2012 10:05:38 UTC, vanderkerkoff wrote:
>>>
>>> Hello there
>>>
>>> I'm very new to rabbitmq and going through the tutorials to get my feet
>>> wet, so to speak.  Please excuse any and all idiotic statements and
>>> misunderstandings.
>>>
>>> The first 2 tutorials went swimmingly, but I'm on the third tutorial and
>>> I've run into a snag
>>>
>>> http://www.rabbitmq.com/**tutorials/tutorial-three-**python.html<http://www.rabbitmq.com/tutorials/tutorial-three-python.html>
>>>
>>> client is on mac os x 10.8.2, python 2.7.2, pika-0.9.7
>>> server is rabbitmq-server_2.7.1-1_**all.deb on 64 bit Ubtuntu 12.04.1
>>> with Erlang R14B04 (erts-5.8.5)
>>>
>>> Using the python code from the tutorial when I run the receive_logs.py
>>> script, I can see the 'logs' exchange created on the server, but when I
>>> inspect it using the management plugin there are no bindings associated
>>> with it, and therefore no queue.
>>>
>>> Using the rabbitmctl list_bindings command confirms that
>>>
>>> sudo rabbitmqctl list_bindings
>>> Listing bindings ...
>>> exchange amq.gen-glOoQ1GRPnAJVTkXLeJRrw queue
>>> amq.gen-glOoQ1GRPnAJVTkXLeJRrw []
>>> ...done.
>>>
>>> When I now run the emit_log.py script, as there is no binding from the
>>> exchange 'logs' to the queue, and as I can't store any messages in anything
>>> other than a queue, the message simply disappears.
>>>
>>> I can see the queue is there, but no bindings from the exchange to the
>>> queue :-(
>>>
>>> Any help, greatly appreciated.
>>>
>>>
>>>
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>
>


-- 

Gavin M. Roy
Chief Technology Officer

 <http://www.meetme.com/>
100 Union Square Drive
New Hope, PA 18938
p. +1.215.862.1162 x263
f. +1.215.862.0465

<https://www.facebook.com/pages/MeetMe/21931227129>
<https://twitter.com/meetme>
    <http://www.youtube.com/user/MeetMeVideos>

The public market leader in social discovery. (NYSE MKT: MEET)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20121115/700fc2f9/attachment.htm>


More information about the rabbitmq-discuss mailing list