<div>
            <div>
                <span>That doesn't look like a 0.9.5 install.</span></div><div><br></div><div>Have you tried pip or easy_install?</div><div><br></div><div><div>gmr@binti ~ $ sudo pip install pika</div><div>Downloading/unpacking pika</div><div>&nbsp;&nbsp;Downloading pika-0.9.5.tar.gz</div><div>&nbsp;&nbsp;Running setup.py egg_info for package pika</div><div>Installing collected packages: pika</div><div>&nbsp;&nbsp;Running setup.py install for pika</div><div>Successfully installed pika</div><div>Cleaning up...</div><div>gmr@binti ~ $ python -c "import pika;print pika.__version__"</div><div>0.9.5</div><div><br></div></div><div>
                <span></span>
                
                <p style="color: #a0a0a0;">On Tuesday, May 31, 2011 at 2:21 PM, KooT wrote:</p>
                <blockquote type="cite" style="border-left-style:solid;border-width:1px;margin-left:0px;padding-left:10px;">
                    <span><div><div>rkot@a0:~$ python2.7 -c "import pika;print pika.__version__"<br>Traceback (most recent call last):<br>  File "&lt;string&gt;", line 1, in &lt;module&gt;<br>AttributeError: 'module' object has no attribute '__version__'<br><br><br>On 31 Maj, 20:15, "Gavin M. Roy" &lt;g...@<a href="http://myyearbook.com">myyearbook.com</a>&gt; wrote:<br><blockquote type="cite"><div>Sounds like it may not be Pika 0.9.5, how did you install?<br><br>What output do you get if you do:<br><br>python -c "import pika;print pika.__version__"<br><br><br><br><br><br><br><br>On Tue, May 31, 2011 at 2:10 PM, KooT &lt;rafal...@<a href="http://gmail.com">gmail.com</a>&gt; wrote:<br><blockquote type="cite"><div>Yes, its worker.py from<br><a href="http://www.rabbitmq.com/tutorials/tutorial-two-python.html">http://www.rabbitmq.com/tutorials/tutorial-two-python.html</a><br></div></blockquote><br><blockquote type="cite"><div>#!/usr/bin/env python<br>import pika<br>import time<br></div></blockquote><br><blockquote type="cite"><div>connection = pika.BlockingConnection(pika.ConnectionParameters(<br>&nbsp; &nbsp; &nbsp; &nbsp;host='localhost'))<br>channel = connection.channel()<br></div></blockquote><br><blockquote type="cite"><div>channel.queue_declare(queue='task_queue', durable=True)<br>print ' [*] Waiting for messages. To exit press CTRL+C'<br></div></blockquote><br><blockquote type="cite"><div>def callback(ch, method, properties, body):<br>&nbsp; &nbsp;print " [x] Received %r" % (body,)<br>&nbsp; &nbsp;time.sleep( body.count('.') )<br>&nbsp; &nbsp;print " [x] Done"<br>&nbsp; &nbsp;ch.basic_ack(delivery_tag = method.delivery_tag)<br></div></blockquote><br><blockquote type="cite"><div>channel.basic_qos(prefetch_count=1)<br>channel.basic_consume(callback,<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;queue='task_queue')<br></div></blockquote><br><blockquote type="cite"><div>channel.start_consuming()<br></div></blockquote><br><blockquote type="cite"><div>On 31 Maj, 16:02, "Gavin M. Roy" &lt;g...@<a href="http://myyearbook.com">myyearbook.com</a>&gt; wrote:<br><blockquote type="cite"><div>Are you using the BlockingConnection adapter?<br></div></blockquote></div></blockquote><br><blockquote><blockquote type="cite"><div>On Tuesday, May 31, 2011 at 9:30 AM, KooT wrote:<br><blockquote type="cite"><div>python worker.py<br>&nbsp;[*] Waiting for messages. To exit press CTRL+C<br>Traceback (most recent call last):<br>&nbsp;File "worker.py", line 22, in ?<br>&nbsp;channel.start_consuming()<br>AttributeError: Channel instance has no attribute 'start_consuming'<br></div></blockquote></div></blockquote></blockquote><br><blockquote type="cite"><div><blockquote><blockquote type="cite"><div>I got pika 0.9.5<br>_______________________________________________<br>rabbitmq-discuss mailing list<br>rabbitmq-disc...@<a href="http://lists.rabbitmq.com">lists.rabbitmq.com</a> (mailto:<br></div></blockquote></blockquote>rabbitmq-disc...@<a href="http://lists.rabbitmq.com">lists.rabbitmq.com</a>)<br><blockquote><blockquote type="cite"><div><a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br></div></blockquote></blockquote></div></blockquote><br><blockquote type="cite"><div><blockquote type="cite"><div>_______________________________________________<br>rabbitmq-discuss mailing list<br>rabbitmq-disc...@lists.rabbitmq.comhttps://<br></div></blockquote><a href="http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss">lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>_______________________________________________<br>rabbitmq-discuss mailing list<br>rabbitmq-disc...@<a href="http://lists.rabbitmq.com">lists.rabbitmq.com</a><br><a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br></div></blockquote><br><br><br>_______________________________________________<br>rabbitmq-discuss mailing list<br>rabbitmq-disc...@lists.rabbitmq.comhttps://<a href="http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss">lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br></div></blockquote>_______________________________________________<br>rabbitmq-discuss mailing list<br><a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a><br><a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br></div></div></span>
                
                
                
                
                </blockquote>
                
                <div>
                    <br>
                </div>
            </div>
        </div>