<div dir="ltr">when I change pika to 0.9.8, the error info change to :<div><br></div><div><div>No handlers could be found for logger "pika.adapters.base_connection"</div><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/dist-packages/pika/adapters/base_connection.py", line 61, in __init__</div><div>&nbsp; &nbsp; super(BaseConnection, self).__init__(parameters, on_open_callback)</div><div>&nbsp; File "/usr/local/lib/python2.7/dist-packages/pika/connection.py", line 513, in __init__</div><div>&nbsp; &nbsp; self._connect()</div><div>&nbsp; File "/usr/local/lib/python2.7/dist-packages/pika/connection.py", line 804, in _connect</div><div>&nbsp; &nbsp; self._adapter_connect()</div><div>&nbsp; File "/usr/local/lib/python2.7/dist-packages/pika/adapters/blocking_connection.py", line 146, in _adapter_connect</div><div>&nbsp; &nbsp; self.process_data_events()</div><div>&nbsp; File "/usr/local/lib/python2.7/dist-packages/pika/adapters/blocking_connection.py", line 88, in process_data_events</div><div>&nbsp; &nbsp; if self._handle_read():</div><div>&nbsp; File "/usr/local/lib/python2.7/dist-packages/pika/adapters/blocking_connection.py", line 184, in _handle_read</div><div>&nbsp; &nbsp; super(BlockingConnection, self)._handle_read()</div><div>&nbsp; File "/usr/local/lib/python2.7/dist-packages/pika/adapters/base_connection.py", line 300, in _handle_read</div><div>&nbsp; &nbsp; return self._handle_error(error)</div><div>&nbsp; File "/usr/local/lib/python2.7/dist-packages/pika/adapters/base_connection.py", line 264, in _handle_error</div><div>&nbsp; &nbsp; self._handle_disconnect()</div><div>&nbsp; File "/usr/local/lib/python2.7/dist-packages/pika/adapters/blocking_connection.py", line 181, in _handle_disconnect</div><div>&nbsp; &nbsp; self._on_connection_closed(None, True)</div><div>&nbsp; File "/usr/local/lib/python2.7/dist-packages/pika/adapters/blocking_connection.py", line 235, in _on_connection_closed</div><div>&nbsp; &nbsp; raise exceptions.AMQPConnectionError(*self.closing)</div><div>pika.exceptions.AMQPConnectionError: (0, '')</div><br>在 2013年9月16日星期一UTC+8下午11时04分35秒,鞠大升写道:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><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">==============================<wbr>===================</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">==============================<wbr>===================<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">==============================<wbr>===================<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>==============================<wbr>===================<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/" style="color:rgb(17,85,204)" target="_blank">127.0.0.1:44572</a>&nbsp;-&gt;&nbsp;<a href="http://127.0.0.1:5672/" style="color:rgb(17,85,204)" target="_blank">127.0.0.1:<wbr>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/" style="color:rgb(17,85,204)" target="_blank">127.0.0.1:44572</a>&nbsp;-&gt;&nbsp;<a href="http://127.0.0.1:5672/" style="color:rgb(17,85,204)" target="_blank">127.0.0.1:<wbr>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>==============================<wbr>===================<br></div><div><b>Anyone can tell me what's the problem?</b></div></div></div></div></blockquote></div></div>