Hi there. You are receiving an AMQPConnectionError when connecting to RabbitMQ. This indicates that RabbitMQ is not running or <span></span>one or more of the following parameters are incorrect: host, port, virtual host, username or password.<br>
<br>On Wednesday, February 6, 2013, Qinglong.Meng wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br clear="all"><div>Hi,</div><div> When I following the Totuials 'Hello World!', and I use pika==0.9.8, I got pika excetion: </div>
<div> pika.exceptions.AMQPConnectionError: (0, '')</div>
<div>File "/root/workspace/rabbitmq/01sample/011publisher.py", line 19, in <module></div><div> conn = pika.BlockingConnection(pika.ConnectionParameters(host='localhost'))</div><div>File "/usr/local/lib/python2.7/dist-packages/pika-0.9.8-py2.7.egg/pika/adapters/base_connection.py", line 61, in __init__</div>
<div> super(BaseConnection, self).__init__(parameters, on_open_callback)</div><div>File "/usr/local/lib/python2.7/dist-packages/pika-0.9.8-py2.7.egg/pika/connection.py", line 513, in __init__</div><div> self._connect()</div>
<div>File "/usr/local/lib/python2.7/dist-packages/pika-0.9.8-py2.7.egg/pika/connection.py", line 804, in _connect</div><div> self._adapter_connect()</div><div>File "/usr/local/lib/python2.7/dist-packages/pika-0.9.8-py2.7.egg/pika/adapters/blocking_connection.py", line 146, in _adapter_connect</div>
<div> self.process_data_events()</div><div>File "/usr/local/lib/python2.7/dist-packages/pika-0.9.8-py2.7.egg/pika/adapters/blocking_connection.py", line 88, in process_data_events</div><div> if self._handle_read():</div>
<div>File "/usr/local/lib/python2.7/dist-packages/pika-0.9.8-py2.7.egg/pika/adapters/blocking_connection.py", line 184, in _handle_read</div><div> super(BlockingConnection, self)._handle_read()</div><div>File "/usr/local/lib/python2.7/dist-packages/pika-0.9.8-py2.7.egg/pika/adapters/base_connection.py", line 300, in _handle_read</div>
<div> return self._handle_error(error)</div><div>File "/usr/local/lib/python2.7/dist-packages/pika-0.9.8-py2.7.egg/pika/adapters/base_connection.py", line 264, in _handle_error</div><div> self._handle_disconnect()</div>
<div>File "/usr/local/lib/python2.7/dist-packages/pika-0.9.8-py2.7.egg/pika/adapters/blocking_connection.py", line 181, in _handle_disconnect</div><div> self._on_connection_closed(None, True)</div><div>File "/usr/local/lib/python2.7/dist-packages/pika-0.9.8-py2.7.egg/pika/adapters/blocking_connection.py", line 235, in _on_connection_closed</div>
<div> raise exceptions.AMQPConnectionError(*self.closing)</div><div><br></div><div>Can anybody help me..</div><div><br></div><div>Tks very much</div><div>Best Regards,</div><div><br></div>-- <br><div dir="ltr">
<div><br></div><div>Lawrency Meng</div><div>mail: <a href="javascript:_e({}, 'cvml', 'mengql112233@gmail.com');" target="_blank">mengql112233@gmail.com</a></div>_______________________________________________<br>
Mailing list: <a href="https://launchpad.net/~openstack" style="color:rgb(17,85,204)" target="_blank">https://launchpad.net/~openstack</a><br>
Post to : <a href="javascript:_e({}, 'cvml', 'openstack@lists.launchpad.net');" style="color:rgb(17,85,204)" target="_blank">openstack@lists.launchpad.net</a><br>Unsubscribe : <a href="https://launchpad.net/~openstack" style="color:rgb(17,85,204)" target="_blank">https://launchpad.net/~openstack</a><br>
More help : <a href="https://help.launchpad.net/ListHelp" style="color:rgb(17,85,204)" target="_blank">https://help.launchpad.net/ListHelp</a><br></div>
</div>
</blockquote><br><br>-- <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>