Sounds like it may not be Pika 0.9.5, how did you install?<div><br></div><div>What output do you get if you do:</div><div><br></div><div>python -c &quot;import pika;print pika.__version__&quot;<br><br><div class="gmail_quote">


On Tue, May 31, 2011 at 2:10 PM, KooT <span dir="ltr">&lt;<a href="mailto:rafalkot@gmail.com" target="_blank">rafalkot@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


Yes, its worker.py from <a href="http://www.rabbitmq.com/tutorials/tutorial-two-python.html" target="_blank">http://www.rabbitmq.com/tutorials/tutorial-two-python.html</a><br>
<br>
#!/usr/bin/env python<br>
import pika<br>
import time<br>
<br>
connection = pika.BlockingConnection(pika.ConnectionParameters(<br>
        host=&#39;localhost&#39;))<br>
channel = connection.channel()<br>
<br>
channel.queue_declare(queue=&#39;task_queue&#39;, durable=True)<br>
print &#39; [*] Waiting for messages. To exit press CTRL+C&#39;<br>
<br>
def callback(ch, method, properties, body):<br>
    print &quot; [x] Received %r&quot; % (body,)<br>
    time.sleep( body.count(&#39;.&#39;) )<br>
    print &quot; [x] Done&quot;<br>
    ch.basic_ack(delivery_tag = method.delivery_tag)<br>
<br>
channel.basic_qos(prefetch_count=1)<br>
channel.basic_consume(callback,<br>
                      queue=&#39;task_queue&#39;)<br>
<br>
channel.start_consuming()<br>
<div><br>
<br>
On 31 Maj, 16:02, &quot;Gavin M. Roy&quot; &lt;<a href="mailto:g...@myyearbook.com" target="_blank">g...@myyearbook.com</a>&gt; wrote:<br>
&gt; Are you using the BlockingConnection adapter?<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Tuesday, May 31, 2011 at 9:30 AM, KooT wrote:<br>
&gt; &gt; python worker.py<br>
&gt; &gt;  [*] Waiting for messages. To exit press CTRL+C<br>
&gt; &gt; Traceback (most recent call last):<br>
&gt; &gt;  File &quot;worker.py&quot;, line 22, in ?<br>
&gt; &gt;  channel.start_consuming()<br>
&gt; &gt; AttributeError: Channel instance has no attribute &#39;start_consuming&#39;<br>
&gt;<br>
&gt; &gt; I got pika 0.9.5<br>
&gt; &gt; _______________________________________________<br>
&gt; &gt; rabbitmq-discuss mailing list<br>
</div>&gt; &gt; <a href="mailto:rabbitmq-disc...@lists.rabbitmq.com" target="_blank">rabbitmq-disc...@lists.rabbitmq.com</a> (mailto:<a href="mailto:rabbitmq-disc...@lists.rabbitmq.com" target="_blank">rabbitmq-disc...@lists.rabbitmq.com</a>)<br>


<div>&gt; &gt;<a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
</div>&gt; _______________________________________________<br>
&gt; rabbitmq-discuss mailing list<br>
&gt; rabbitmq-disc...@lists.rabbitmq.comhttps://<a href="http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
<div><div></div><div>_______________________________________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com" target="_blank">rabbitmq-discuss@lists.rabbitmq.com</a><br>
<a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
</div></div></blockquote></div><br></div>