<div dir="ltr"><span style="font-family: arial, sans-serif;">hi, all</span><div style="font-family: arial, sans-serif;"><br></div><div style="font-family: arial, sans-serif;">I am newer to rabbitmq.</div><div style="font-family: arial, sans-serif;"><br></div><div style="font-family: arial, sans-serif;">I install a rabbitmq, just download, setup and startup the server. then I use a simple python client to connect, but the client report a error.</div><div style="font-family: arial, sans-serif;"><br></div><div style="font-family: arial, sans-serif;">=================================================</div><div style="font-family: arial, sans-serif;">Here is my version config:</div><div style="font-family: arial, sans-serif;">python: 2.7</div><div style="font-family: arial, sans-serif;">rabbitmq: &nbsp;rabbitmq-server-generic-unix-<wbr>3.1.5.tar.gz</div><div style="font-family: arial, sans-serif;">erlang:&nbsp;otp_src_R16B01</div><div style="font-family: arial, sans-serif;">pika: master</div><div style="font-family: arial, sans-serif;"><br></div><div style="font-family: arial, sans-serif;">=================================================<br></div><div style="font-family: arial, sans-serif;">Here is my python client:</div><div style="font-family: arial, sans-serif;"><div>#!/usr/bin/env python</div><div>import pika</div><div><br></div><div>connection = pika.BlockingConnection(pika.<wbr>ConnectionParameters(</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; host='localhost'))</div><div>channel = connection.channel()</div><div><br></div><div><br></div><div>channel.queue_declare(queue='<wbr>hello')</div><div><br></div><div>channel.basic_publish(<wbr>exchange='',</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; routing_key='hello',</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; body='Hello World!')</div><div>print " [x] Sent 'Hello World!'"</div><div>connection.close()</div></div><div style="font-family: arial, sans-serif;"><br></div><div style="font-family: arial, sans-serif;">=================================================<br></div><div style="font-family: arial, sans-serif;">Here is the error info:</div><div style="font-family: arial, sans-serif;"><div>Traceback (most recent call last):</div><div>&nbsp; File "send.py", line 5, in &lt;module&gt;</div><div>&nbsp; &nbsp; host='localhost'))</div><div>&nbsp; File "/usr/local/lib/python2.7/<wbr>dist-packages/pika-0.9.14p0-<wbr>py2.7.egg/pika/adapters/<wbr>blocking_connection.py", line 123, in __init__</div><div>&nbsp; &nbsp; super(BlockingConnection, self).__init__(parameters, None, False)</div><div>&nbsp; File "/usr/local/lib/python2.7/<wbr>dist-packages/pika-0.9.14p0-<wbr>py2.7.egg/pika/adapters/base_<wbr>connection.py", line 62, in __init__</div><div>&nbsp; &nbsp; on_close_callback)</div><div>&nbsp; File "/usr/local/lib/python2.7/<wbr>dist-packages/pika-0.9.14p0-<wbr>py2.7.egg/pika/connection.py", line 593, in __init__</div><div>&nbsp; &nbsp; self.connect()</div><div>&nbsp; File "/usr/local/lib/python2.7/<wbr>dist-packages/pika-0.9.14p0-<wbr>py2.7.egg/pika/adapters/<wbr>blocking_connection.py", line 223, in connect</div><div>&nbsp; &nbsp; error = self._adapter_connect()</div><div>&nbsp; File "/usr/local/lib/python2.7/<wbr>dist-packages/pika-0.9.14p0-<wbr>py2.7.egg/pika/adapters/<wbr>blocking_connection.py", line 302, in _adapter_connect</div><div>&nbsp; &nbsp; self.process_data_events()</div><div>&nbsp; File "/usr/local/lib/python2.7/<wbr>dist-packages/pika-0.9.14p0-<wbr>py2.7.egg/pika/adapters/<wbr>blocking_connection.py", line 233, in process_data_events</div><div>&nbsp; &nbsp; if self._handle_read():</div><div>&nbsp; File "/usr/local/lib/python2.7/<wbr>dist-packages/pika-0.9.14p0-<wbr>py2.7.egg/pika/adapters/<wbr>blocking_connection.py", line 346, in _handle_read</div><div>&nbsp; &nbsp; super(BlockingConnection, self)._handle_read()</div><div>&nbsp; File "/usr/local/lib/python2.7/<wbr>dist-packages/pika-0.9.14p0-<wbr>py2.7.egg/pika/adapters/base_<wbr>connection.py", line 323, in _handle_read</div><div>&nbsp; &nbsp; return self._handle_error(error)</div><div>&nbsp; File "/usr/local/lib/python2.7/<wbr>dist-packages/pika-0.9.14p0-<wbr>py2.7.egg/pika/adapters/base_<wbr>connection.py", line 287, in _handle_error</div><div>&nbsp; &nbsp; self._handle_disconnect()</div><div>&nbsp; File "/usr/local/lib/python2.7/<wbr>dist-packages/pika-0.9.14p0-<wbr>py2.7.egg/pika/adapters/<wbr>blocking_connection.py", line 336, in _handle_disconnect</div><div>&nbsp; &nbsp; self._adapter_disconnect()</div><div>&nbsp; File "/usr/local/lib/python2.7/<wbr>dist-packages/pika-0.9.14p0-<wbr>py2.7.egg/pika/adapters/<wbr>blocking_connection.py", line 311, in _adapter_disconnect</div><div>&nbsp; &nbsp; self._check_state_on_<wbr>disconnect()</div><div>&nbsp; File "/usr/local/lib/python2.7/<wbr>dist-packages/pika-0.9.14p0-<wbr>py2.7.egg/pika/adapters/base_<wbr>connection.py", line 141, in _check_state_on_disconnect</div><div>&nbsp; &nbsp; raise exceptions.<wbr>ProbableAuthenticationError</div><div>pika.exceptions.<wbr>ProbableAuthenticationError</div><div><br></div><div>=================================================<br></div><div>Here is the log info:</div><div><div>=INFO REPORT==== 16-Sep-2013::22:27:29 ===</div><div>accepting AMQP connection &lt;0.322.0&gt; (<a href="http://127.0.0.1:44572/" target="_blank" style="color: rgb(17, 85, 204);">127.0.0.1:44572</a>&nbsp;-&gt;&nbsp;<a href="http://127.0.0.1:5672/" target="_blank" style="color: rgb(17, 85, 204);">127.0.0.1:5672</a>)</div><div><br></div><div>=ERROR REPORT==== 16-Sep-2013::22:27:32 ===</div><div>closing AMQP connection &lt;0.322.0&gt; (<a href="http://127.0.0.1:44572/" target="_blank" style="color: rgb(17, 85, 204);">127.0.0.1:44572</a>&nbsp;-&gt;&nbsp;<a href="http://127.0.0.1:5672/" target="_blank" style="color: rgb(17, 85, 204);">127.0.0.1:5672</a>):</div><div>{handshake_error,starting,0,</div><div>&nbsp; &nbsp; {error,badarg,'connection.<wbr>start_ok',</div><div>&nbsp; &nbsp; &nbsp; &nbsp; [{rabbit_framing_amqp_0_9_1,<wbr>encode_method_fields,1,[]},</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{rabbit_binary_generator,<wbr>build_simple_method_frame,3,[]<wbr>},</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{rabbit_writer,internal_send_<wbr>command,4,[]},</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{rabbit_reader,send_on_<wbr>channel0,3,[]},</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{rabbit_reader,auth_phase,2,[<wbr>]},</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{rabbit_reader,handle_<wbr>method0,3,[]},</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{rabbit_reader,handle_input,<wbr>3,[]},</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{rabbit_reader,recvloop,2,[]}<wbr>]}}</div><div><br></div><div>=================================================<br></div><div><b>Anyone can tell me what's the problem?</b></div></div></div></div>