<p>Is a pre-release tag of the next version. Please file a bug report on github. I'll look at it later today. Is likely a new bug Introduced with the re-factored connection handling.</p><div><br></div><div>Gavin</div><br><br><div class="gmail_quote"><p>On Fri, Apr 5, 2013 at 6:51 AM, Simon MacMullen <span dir="ltr">&lt;<a href="mailto:simon@rabbitmq.com" target="_blank">simon@rabbitmq.com</a>&gt;</span> wrote:<br></p><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><p>Hmm. I'm no Pika expert but that seems wrong. Is there anything 
<br>interesting-looking in the server logs at that point?
<br><br>Cheers, Simon
<br><br>On 05/04/13 03:51, William Daly wrote:
<br>&gt; Hi,
<br>&gt;
<br>&gt; I'm trying to use rabbitmq and pika on localhost for testing purposes,
<br>&gt; and I am receiving an IncompatibleProtocolError.
<br>&gt;
<br>&gt; Here are the steps I'm following:
<br>&gt;
<br>&gt; 1) I start up rabbitmq-server, and when I run rabbitmqctl status I get:
<br>&gt; Status of node rabbit@localhost ...
<br>&gt; [{pid,390},
<br>&gt;   {running_applications,
<br>&gt;       [{rabbitmq_management_visualiser,"RabbitMQ Visualiser","3.0.4"},
<br>&gt;        {rabbitmq_management,"RabbitMQ Management Console","3.0.4"},
<br>&gt;        {rabbitmq_management_agent,"RabbitMQ Management Agent","3.0.4"},
<br>&gt;        {rabbit,"RabbitMQ","3.0.4"},
<br>&gt;        {os_mon,"CPO  CXC 138 46","2.2.10"},
<br>&gt;        {rabbitmq_web_dispatch,"RabbitMQ Web Dispatcher","3.0.4"},
<br>&gt;        {webmachine,"webmachine","1.9.1-rmq3.0.4-git52e62bc"},
<br>&gt;        {mochiweb,"MochiMedia Web Server","2.3.1-rmq3.0.4-gitd541e9a"},
<br>&gt;        {xmerl,"XML parser","1.3.2"},
<br>&gt;        {inets,"INETS  CXC 138 49","5.9.2"},
<br>&gt;        {mnesia,"MNESIA  CXC 138 12","4.7.1"},
<br>&gt;        {amqp_client,"RabbitMQ AMQP Client","3.0.4"},
<br>&gt;        {sasl,"SASL  CXC 138 11","2.2.1"},
<br>&gt;        {stdlib,"ERTS  CXC 138 10","1.18.3"},
<br>&gt;        {kernel,"ERTS  CXC 138 10","2.15.3"}]},
<br>&gt;   {os,{unix,darwin}},
<br>&gt;   {erlang_version,
<br>&gt;       "Erlang R15B03 (erts-5.9.3.1) [source] [64-bit] [smp:8:8]
<br>&gt; [async-threads:30] [hipe] [kernel-poll:true] [dtrace]\n"},
<br>&gt;   {memory,
<br>&gt;       [{total,35653280},
<br>&gt;        {connection_procs,5696},
<br>&gt;        {queue_procs,27576},
<br>&gt;        {plugins,152984},
<br>&gt;        {other_proc,9868108},
<br>&gt;        {mnesia,62360},
<br>&gt;        {mgmt_db,47384},
<br>&gt;        {msg_index,22960},
<br>&gt;        {other_ets,1239568},
<br>&gt;        {binary,522528},
<br>&gt;        {code,18264216},
<br>&gt;        {atom,695185},
<br>&gt;        {other_system,4744715}]},
<br>&gt;   {vm_memory_high_watermark,0.4},
<br>&gt;   {vm_memory_limit,6523774566},
<br>&gt;   {disk_free_limit,1000000000},
<br>&gt;   {disk_free,199230787584},
<br>&gt;   {file_descriptors,
<br>&gt;
<br>&gt;   [{total_limit,156},{total_used,4},{sockets_limit,138},{sockets_used,1}]},
<br>&gt;   {processes,[{limit,1048576},{used,196}]},
<br>&gt;   {run_queue,0},
<br>&gt;   {uptime,2667}]
<br>&gt; ...done.
<br>&gt;
<br>&gt; 2) I run the following code (RABBITMQ_USER='guest',
<br>&gt; RABBITMQ_PASS='guest', RABBIT_HOST='localhost')
<br>&gt;
<br>&gt; credentials = pika.PlainCredentials(settings.RABBITMQ_USER,
<br>&gt;                                              settings.RABBITMQ_PASS)
<br>&gt; parameters = pika.ConnectionParameters(heartbeat_interval=5,
<br>&gt;                                                 credentials=credentials,
<br>&gt;                                                 host=settings.RABBIT_HOST)
<br>&gt; self.channel = None
<br>&gt; self.connection = pika.SelectConnection(parameters, self.on_connected)
<br>&gt;
<br>&gt; # ....
<br>&gt;
<br>&gt; self.connection.ioloop.start()
<br>&gt;
<br>&gt; 3) I get the following traceback:
<br>&gt;
<br>&gt; Traceback (most recent call last):
<br>&gt;    File
<br>&gt; "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/multiprocessing/process.py",
<br>&gt; line 258, in _bootstrap
<br>&gt;      self.run()
<br>&gt;    File "/Users/will/queue/consumer.py", line 237, in run
<br>&gt;      self.connection.ioloop.start()
<br>&gt;    File
<br>&gt; "/Users/will/python/lib/python2.7/site-packages/pika-0.9.13p0-py2.7.egg/pika/adapters/select_connection.py",
<br>&gt; line 108, in start
<br>&gt;      self.poller.start()
<br>&gt;    File
<br>&gt; "/Users/will/python/lib/python2.7/site-packages/pika-0.9.13p0-py2.7.egg/pika/adapters/select_connection.py",
<br>&gt; line 336, in start
<br>&gt;      self.poll()
<br>&gt;    File
<br>&gt; "/Users/will/python/lib/python2.7/site-packages/pika-0.9.13p0-py2.7.egg/pika/adapters/select_connection.py",
<br>&gt; line 351, in poll
<br>&gt;      return self._handler(self.fileno, ERROR, error)
<br>&gt;    File
<br>&gt; "/Users/will/python/lib/python2.7/site-packages/pika-0.9.13p0-py2.7.egg/pika/adapters/base_connection.py",
<br>&gt; line 315, in _handle_events
<br>&gt;      self._handle_error(error)
<br>&gt;    File
<br>&gt; "/Users/will/python/lib/python2.7/site-packages/pika-0.9.13p0-py2.7.egg/pika/adapters/base_connection.py",
<br>&gt; line 291, in _handle_error
<br>&gt;      self._handle_disconnect()
<br>&gt;    File
<br>&gt; "/Users/will/python/lib/python2.7/site-packages/pika-0.9.13p0-py2.7.egg/pika/adapters/base_connection.py",
<br>&gt; line 240, in _handle_disconnect
<br>&gt;      self._adapter_disconnect()
<br>&gt;    File
<br>&gt; "/Users/will/python/lib/python2.7/site-packages/pika-0.9.13p0-py2.7.egg/pika/adapters/base_connection.py",
<br>&gt; line 131, in _adapter_disconnect
<br>&gt;      self._check_state_on_disconnect()
<br>&gt;    File
<br>&gt; "/Users/will/python/lib/python2.7/site-packages/pika-0.9.13p0-py2.7.egg/pika/adapters/base_connection.py",
<br>&gt; line 143, in _check_state_on_disconnect
<br>&gt;      raise exceptions.IncompatibleProtocolError
<br>&gt; IncompatibleProtocolError
<br>&gt;
<br>&gt; Any idea what could be causing this?  I'm running Mac OS X Mountain
<br>&gt; Lion.  Any help would be greatly appreciated.
<br>&gt;
<br>&gt; Thanks!
<br>&gt; -- Will
<br>&gt;
<br>&gt;
<br>&gt; _______________________________________________
<br>&gt; rabbitmq-discuss mailing list
<br>&gt; rabbitmq-discuss@lists.rabbitmq.com
<br>&gt; https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
<br>&gt;
<br><br><br>-- 
<br>Simon MacMullen
<br>RabbitMQ, VMware
<br>_______________________________________________
<br>rabbitmq-discuss mailing list
<br>rabbitmq-discuss@lists.rabbitmq.com
<br>https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
<br></p></blockquote></div><br>