Hello, i'm just getting started with RabbitMQ and have been reading through the tutorials and trying to run the code samples in Python. I've installed Pika 0.9.5 but when I run the following script, i get the error message down below at the end of this post complaining that the 'CallbackManager' object has no attribute 'sanitize': I'm not sure how to go about fixing this, any help would be greatly appreciated.Thanks in advance for any responses.<div>
<br></div><div>Mike<br><div><br></div><div><div>#!/usr/bin/env python</div><div>import pika</div><div><br></div><div>connection = pika.BlockingConnection(pika.ConnectionParameters(</div><div> host='localhost'))</div>
<div>channel = connection.channel()</div><div><br></div><div>channel.queue_declare(queue='hello')</div><div><br></div><div>print ' [*] Waiting for messages. To exit press CTRL+C'</div><div><br></div><div>def callback(ch, method, properties, body):</div>
<div> print " [x] Received %r" % (body,)</div><div><br></div><div>channel.basic_consume(callback,</div><div> queue='hello',</div><div> no_ack=True)</div><div>
<br></div><div>channel.start_consuming()</div><div><br></div><div>ERROR RETURNED:</div><div><div>Traceback (most recent call last):</div><div> File "receive.py", line 6, in <module></div><div> channel = connection.channel()</div>
<div> File "build/bdist.linux-i686/egg/pika/adapters/blocking_connection.py", line 129, in channel</div><div> File "build/bdist.linux-i686/egg/pika/adapters/blocking_connection.py", line 274, in __init__</div>
<div> File "build/bdist.linux-i686/egg/pika/channel.py", line 236, in open</div><div> File "build/bdist.linux-i686/egg/pika/adapters/blocking_connection.py", line 254, in send_method</div><div> File "build/bdist.linux-i686/egg/pika/adapters/blocking_connection.py", line 95, in process_data_events</div>
<div> File "build/bdist.linux-i686/egg/pika/adapters/base_connection.py", line 315, in _handle_read</div><div> File "build/bdist.linux-i686/egg/pika/connection.py", line 701, in _on_data_available</div>
<div> File "build/bdist.linux-i686/egg/pika/callback.py", line 161, in process</div><div> File "build/bdist.linux-i686/egg/pika/adapters/blocking_connection.py", line 230, in _on_rpc_complete</div><div>
AttributeError: 'CallbackManager' object has no attribute 'sanitize'</div></div><div><br></div><div><br></div><div><br></div></div></div>