<div dir="ltr">I am not sure why it does that (works fine for me), can you try with the git version to see if you can reproduce ?<div><br></div><div style>Thanks,</div><div>Chmouel.</div></div><div class="gmail_extra"><br>

<br><div class="gmail_quote">On Mon, Jan 7, 2013 at 7:31 PM, Leander Bessa Beernaert <span dir="ltr"><<a href="mailto:leanderbb@gmail.com" target="_blank">leanderbb@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<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>I'm using Ubuntu 12.04 with the Folsom Packages.</div><div><br></div><div>Example output (Python Interpreter):</div><div><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>Regards,</div><div><br>Leander</div><div><br></div><div>[1] <a href="https://github.com/openstack/python-swiftclient" target="_blank">https://github.com/openstack/python-swiftclient</a></div>


</div></div>
<br>_______________________________________________<br>
Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
Post to     : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
<br></blockquote></div><br></div>