Package: awscli
Version: 1.11.13-1

After upgrading to 1.11.13-1, the aws command has been failing like this:

$ aws ec2 describe-instances
'AWSHTTPSConnection' object has no attribute 'ssl_context'

To work around this, I downgraded to version 1.4.2, but this produced the following output:

$ aws --version
Traceback (most recent call last):
  File "/usr/bin/aws", line 15, in <module>
    import awscli.clidriver
  File "/usr/share/awscli/awscli/clidriver.py", line 33, in <module>
    from awscli.arguments import CustomArgument
  File "/usr/share/awscli/awscli/arguments.py", line 42, in <module>
    from botocore.parameters import ListParameter, StructParameter
ImportError: No module named 'botocore.parameters'

The final workaround I found was to edit the file /usr/bin/aws and remove the "3" from the first line "#!/usr/bin/python3". This allowed the aws command to work.

I may have been using an unusual or unsupported mixture of package versions, as I haven't seen anyone else report the "ssl_context" bug, but I thought I would document this problem here for the record, along with my workaround. Also for the record, here are the versions of some other packages I have installed:

python-bcdoc    0.12.2-1
python-botocore    0.62.0-1
python3-bcdoc    0.12.2-1
python3-botocore    1.4.70-1
python-colorama    0.3.2-1
python3-colorama    0.3.7-1
python-pyasn1    0.1.7-1
python3-pyasn1    0.1.9-2
python-rsa    3.1.4-1+deb8u1
python3-rsa    3.1.4-1+deb8u1
python    2.7.13-1
python3    3.4.2-2

Thank you for packaging this software, and I hope the information I have provided is helpful for reproducing the bug, or at least helps people work around it.


--
hivehome.com <http://www.hivehome.com>



Hive | London | Cambridge | Houston | Toronto
The information contained in or attached to this email is confidential and intended only for the use of the individual(s) to which it is addressed. It may contain information which is confidential and/or covered by legal professional or other privilege. The views expressed in this email are not necessarily the views of Centrica plc, and the company, its directors, officers or employees make no representation or accept any liability for their accuracy or completeness unless expressly stated to the contrary. Hive is the trading name of Centrica Connected Home Limited (company no: 5782908), registered in England and Wales with its registered office at Millstream, Maidenhead Road, Windsor, Berkshire SL4 5GD.

Reply via email to