And I see a bug from my test code and what I pasted... The channel.transport.rpc line should be:<div><br></div><div><span style="font-family:'courier new',monospace">channel.transport.rpc(</span><span style="font-family:'courier new',monospace">Exchange.Bind(source='topicEx'</span><span style="font-family:'courier new',monospace">, destination='anotherEx', routing_key='#'), exchange_bound, [Exchange.BindOk])</span><br>
<br><div class="gmail_quote">On Thu, Sep 20, 2012 at 6:28 AM, Gavin M. Roy <span dir="ltr"><<a href="mailto:gmr@meetme.com" target="_blank">gmr@meetme.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<p>The method exchange_bind is not defined on the channel, I will add to the 0.9.6 tree. Exchange.Bind can be accessed with the following code (tested with pypi installed 0.9.5):</p>
<p><font face="courier new, monospace">import pika<br></font><span style="font-family:'courier new',monospace">from pika.spec import Exchange</span></p>
<p><font face="courier new, monospace">connection = pika.BlockingConnection(pika.ConnectionParameters(host='127.0.0.1'))<br></font><span style="font-family:'courier new',monospace">channel = connection.channel()</span></p>
<p><span style="font-family:'courier new',monospace">def exchange_bound(frame):<br></span><span style="font-family:'courier new',monospace"> print 'Exchange Bound'</span></p>
<p><font face="courier new, monospace">channel.transport.rpc(spec.Exchange.Bind(source='topicEx', destination='anotherEx', routing_key='#'), exchange_bound, [Exchange.BindOk])</font></p><div><div class="h5">
<br><div class="gmail_quote">On Wed, Sep 5, 2012 at 5:56 AM, Matthias Radestock <span dir="ltr"><<a href="mailto:matthias@rabbitmq.com" target="_blank">matthias@rabbitmq.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Dave,<br>
<br>
apologies for the late response...<div><br>
<br>
On 23/08/12 04:24, Dave Curylo wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I get this error attempting to call channel.exchange_bind:<br>
<br>
'BlockingChannel' object has no attribute 'exchange_bind'<br>
<br>
This is my source:<br>
<br>
import pika<br>
connection =<br>
pika.BlockingConnection(pika.<u></u>ConnectionParameters(host='10.<u></u>0.1.100'))<br>
channel = connection.channel()<br>
channel.exchange_bind(source='<u></u>topicEx', destination='anotherEx',<br>
routing_key='#')<br>
<br>
I'm running pika version 0.9.5.<br>
>>> pika.__version__<br>
'0.9.5'<br>
<br>
What am I missing that keeps me from being able to do exchange to<br>
exchange bindings?<br>
</blockquote>
<br></div>
There's no mention of exchange_bind in the pika docs, though if Gavin says that it's supported then presumably it is. And looking at the code on github, that does indeed appear to be the case, though I am no python expert.<br>
<br>
You may want to ask on the pika google group - <a href="https://groups.google.com/forum/#!forum/pika-python" target="_blank">https://groups.google.com/<u></u>forum/#!forum/pika-python</a> - or file a bug on github.<br>
<br>
Regards,<br>
<br>
Matthias.<div><div><br>
______________________________<u></u>_________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com" target="_blank">rabbitmq-discuss@lists.<u></u>rabbitmq.com</a><br>
<a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/<u></u>cgi-bin/mailman/listinfo/<u></u>rabbitmq-discuss</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div></div></div>-- <br>
<p><span style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">Gavin M. Roy</span><br style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">
<span style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">Chief Technology Officer</span><br style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">
</p><blockquote style="padding-left:1ex;border-left-color:rgb(204,204,204);color:rgb(34,34,34);border-left-style:solid;font-size:13px;margin:0px 0px 0px 0.8ex;font-family:arial,sans-serif;border-left-width:1px">
</blockquote><a href="http://www.meetme.com/" style="color:rgb(17,85,204);font-size:13px;font-family:arial,sans-serif" target="_blank"><img src="http://movies.myyearbook.com/emailsignatureimages/logo2.png"></a><br style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">
<font color="#666666" style="font-size:13px;font-family:arial,sans-serif">100 Union Square Drive<br>New Hope, PA 18938<br>p. +1.215.862.1162 x263<br>f. +1.215.862.0465</font><p></p><p><a href="https://www.facebook.com/pages/MeetMe/21931227129" style="color:rgb(17,85,204);font-size:13px;font-family:arial,sans-serif" target="_blank"><img src="http://movies.myyearbook.com/emailsignatureimages/fb_mini.gif"></a><span style="color:rgb(136,136,136);font-size:13px;font-family:arial,sans-serif"> </span><span style="color:rgb(136,136,136);font-size:13px;font-family:arial,sans-serif"> </span><span style="color:rgb(136,136,136);font-size:13px;font-family:arial,sans-serif"> </span><a href="https://twitter.com/meetme" style="color:rgb(17,85,204);font-size:13px;font-family:arial,sans-serif" target="_blank"><img src="http://movies.myyearbook.com/emailsignatureimages/tw_mini.gif"></a><span style="color:rgb(136,136,136);font-size:13px;font-family:arial,sans-serif"> </span><span style="color:rgb(136,136,136);font-size:13px;font-family:arial,sans-serif"> </span><span style="color:rgb(136,136,136);font-size:13px;font-family:arial,sans-serif"> </span><a href="http://www.youtube.com/user/MeetMeVideos" style="color:rgb(17,85,204);font-size:13px;font-family:arial,sans-serif" target="_blank"><img src="http://movies.myyearbook.com/emailsignatureimages/yt_mini.gif"></a><br style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">
<font color="#888888" style="font-size:13px;font-family:arial,sans-serif"><br></font><font color="#666666" style="font-size:13px;font-family:arial,sans-serif"><font>The public market leader in social discovery. </font><font>(NYSE MKT: MEET)</font> </font></p>
<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>
<p><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Gavin M. Roy</span><br style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Chief Technology Officer</span><br style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
</p><blockquote style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255);padding-left:1ex;border-left-color:rgb(204,204,204);border-left-style:solid;margin:0px 0px 0px 0.8ex;border-left-width:1px">
</blockquote><a href="http://www.meetme.com/" style="color:rgb(17,85,204);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)" target="_blank"><img src="http://movies.myyearbook.com/emailsignatureimages/logo2.png"></a><br style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<font color="#666666" style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">100 Union Square Drive<br>New Hope, PA 18938<br>p. +1.215.862.1162 x263<br>f. +1.215.862.0465</font><p></p><p><a href="https://www.facebook.com/pages/MeetMe/21931227129" style="color:rgb(17,85,204);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)" target="_blank"><img src="http://movies.myyearbook.com/emailsignatureimages/fb_mini.gif"></a><span style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255);color:rgb(136,136,136)"> </span><span style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255);color:rgb(136,136,136)"> </span><span style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255);color:rgb(136,136,136)"> </span><a href="https://twitter.com/meetme" style="color:rgb(17,85,204);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)" target="_blank"><img src="http://movies.myyearbook.com/emailsignatureimages/tw_mini.gif"></a><span style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255);color:rgb(136,136,136)"> </span><span style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255);color:rgb(136,136,136)"> </span><span style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255);color:rgb(136,136,136)"> </span><a href="http://www.youtube.com/user/MeetMeVideos" style="color:rgb(17,85,204);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)" target="_blank"><img src="http://movies.myyearbook.com/emailsignatureimages/yt_mini.gif"></a><br style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<font color="#888888" style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br></font><font color="#666666" style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><font>The public market leader in social discovery. </font><font>(NYSE MKT: MEET)</font> </font></p>
<br>
</div>