From: Ross Brattain Date: Wed, 22 Feb 2017 17:03:16 +0000 (-0800) Subject: BugFix: update to paramiko 1.18.0 to fix TypeError X-Git-Tag: danube.1.0~54^2 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F45%2F29245%2F1;p=yardstick.git BugFix: update to paramiko 1.18.0 to fix TypeError with python 3 there is a paramiko error due to .keys() usages in python 3 File "python3.5/site-packages/paramiko/ssh_exception.py", line 166, in __init__ body = ', '.join([x[0] for x in addrs[:-1] TypeError: 'dict_keys' object is not subscriptable paramiko 1.16.0 tries to index addr.keys() but addr.keys() is not a dict view in Python 3 and not a list so we need to convert .keys() to a list, using sorted() This was most recently fixed in https://github.com/paramiko/paramiko/commit/0411010d55755913fa7bd5b0a9c719c8548549f4 which should be in paramiko 1.18.0 Change-Id: I6b10664611cab3b21d3aa33ecf1343ff134f59a1 Signed-off-by: Ross Brattain --- diff --git a/requirements.txt b/requirements.txt index d04824686..3549f85e7 100644 --- a/requirements.txt +++ b/requirements.txt @@ -44,7 +44,7 @@ oslo.config==3.9.0 oslo.i18n==3.4.0 oslo.serialization==2.4.0 oslo.utils==3.7.0 -paramiko==1.16.0 +paramiko==1.18.0 pbr==1.8.1 pep8==1.7.0 positional==1.0.1