<div dir="ltr">Hello all,<div><br></div><div>I'm having an issue when using the Python API for swift [1]. I am unable to do two sequential operations. The first operation works and the second ceases to work. Is this expected, or is this a bug?</div>
<div><br></div><div style>I'm using Ubuntu 12.04 with the Folsom Packages.</div><div><br></div><div style>Example output (Python Interpreter):</div><div style><div>>>> import swiftclient</div><div>>>> swiftclient.get_container([URL],[TOKEN],'test')</div>
<div>({'content-length': '174', 'x-container-object-count': '1', 'accept-ranges': 'bytes', 'x-container-bytes-used': '200', 'x-timestamp': '1357299184.84634', 'date': 'Mon, 07 Jan 2013 18:25:41 GMT', 'content-type': 'application/json; charset=utf-8'}, [{'bytes': 200, 'last_modified': '2013-01-07T18:07:17.289060', 'hash': 'fbaf48ec981a5eecdb57b929fdd426e8', 'name': 'test_object', 'content_type': 'application/octet-stream'}])</div>
<div>>>> swiftclient.get_container([URL],[TOKEN],'test')<br></div><div>Traceback (most recent call last):</div><div>  File "<stdin>", line 1, in <module></div><div>  File "/usr/lib/python2.7/dist-packages/swiftclient/client.py", line 487, in get_container</div>
<div>    resp = conn.getresponse()</div><div>  File "/usr/lib/python2.7/dist-packages/swift/common/bufferedhttp.py", line 103, in getresponse</div><div>    logging.debug(_("HTTP PERF: %(time).5f seconds to %(method)s "</div>
<div>TypeError: 'tuple' object is not callable</div><div><br></div><div style>Regards,</div><div style><br>Leander</div><div style><br></div><div style>[1] <a href="https://github.com/openstack/python-swiftclient">https://github.com/openstack/python-swiftclient</a></div>
</div></div>