[rabbitmq-discuss] followed the RabbitMQ tutorial, but meet an error

姚康宝 ycombo at gmail.com
Thu Jan 13 07:07:57 GMT 2011


I am a RabbitMQ beginner. When I just followed the tutorial(
http://www.rabbitmq.com/tutorial-one-python.html) to install pika library
and run the send.py,
but got an exception as follow:

combo at combo-ubt:~$ python send.py
Traceback (most recent call last):
  File "send.py", line 6, in <module>
    channel = connection.channel()
  File "/usr/games/src/pika/pika/connection.py", line 385, in channel
    return channel.Channel(channel.ChannelHandler(self))
  File "/usr/games/src/pika/pika/channel.py", line 205, in __init__
    self.handler._rpc(spec.Channel.Open(), [spec.Channel.OpenOk])
  File "/usr/games/src/pika/pika/channel.py", line 187, in _rpc
    return self.connection._rpc(self.channel_number, method,
acceptable_replies)
  File "/usr/games/src/pika/pika/connection.py", line 324, in _rpc
    channel = self._ensure_channel(channel_number)
  File "/usr/games/src/pika/pika/connection.py", line 287, in
_ensure_channel
    raise ConnectionClosed(self.connection_close)
pika.exceptions.ConnectionClosed: Connection.Close(class_id = 0, method_id =
0, reply_code = 0, reply_text = 'Socket closed')

well ,I have no idea what's wrong with it.So,is there anybody who can tell
how to deal with it?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20110113/6f106b5e/attachment-0001.htm>


More information about the rabbitmq-discuss mailing list