ask/kombu — Issue #105: Connection with SSL
Author: buzztroll
Created: 2012-02-28 22:09:49+00:00
State: open

When trying to make an amqp connection with ssl set to true I get the stack trace below. It is strange because the parent class of the offending super call should have the signature specified but it seems that some adoption was done.

File "/home/epu/app-venv/lib/python2.7/site-packages/kombu-2.1.1-py2.7.egg/kombu/connection.py", line 179, in channel
chan = self.transport.create_channel(self.connection)
File "/home/epu/app-venv/lib/python2.7/site-packages/kombu-2.1.1-py2.7.egg/kombu/connection.py", line 587, in connection
self._connection = self._establish_connection()
File "/home/epu/app-venv/lib/python2.7/site-packages/kombu-2.1.1-py2.7.egg/kombu/connection.py", line 547, in _establish_connection
conn = self.transport.establish_connection()
File "/home/epu/app-venv/lib/python2.7/site-packages/kombu-2.1.1-py2.7.egg/kombu/transport/amqplib.py", line 267, in establish_connection
connect_timeout=conninfo.connect_timeout)
File "/home/epu/app-venv/lib/python2.7/site-packages/kombu-2.1.1-py2.7.egg/kombu/transport/amqplib.py", line 77, in __init__
super(Connection, self).__init__(*args, **kwargs)
File "/home/epu/app-venv/lib/python2.7/site-packages/amqplib-1.0.2-py2.7.egg/amqplib/client_0_8/connection.py", line 129, in __init__
self.transport = create_transport(host, connect_timeout, ssl)
File "/home/epu/app-venv/lib/python2.7/site-packages/amqplib-1.0.2-py2.7.egg/amqplib/client_0_8/transport.py", line 279, in create_transport
return SSLTransport(host, connect_timeout, ssl)
File "/home/epu/app-venv/lib/python2.7/site-packages/amqplib-1.0.2-py2.7.egg/amqplib/client_0_8/transport.py", line 179, in __init__
super(SSLTransport, self).__init__(host, connect_timeout)
TypeError: __init__() takes exactly 4 arguments (3 given)
Exception AttributeError: AttributeError("'_Transport' object has no attribute 'sock'",) in > ignored