Tech Note 22nd September 2020
Overview
When upgrading to version 1.48.4 of Matillion ETL, users may experience problems with the AWS CLI no longer functioning correctly via the Bash component and the console. A symptom of this is the following error for any AWS CLI command:
[root@ip-xxxxxxxx ~]# aws s3 ls Traceback (most recent call last): File "/bin/aws", line 19, inimport awscli.clidriver File "/usr/lib/python2.7/site-packages/awscli/clidriver.py", line 36, in from awscli.help import ProviderHelpCommand File "/usr/lib/python2.7/site-packages/awscli/help.py", line 23, in from botocore.docs.bcdoc import docevents ImportError: cannot import name docevents
This error occurs because the version of the Boto3 library is incompatible with the AWS CLI version of the machine, giving the following incompatability:
1.18.75 of the aws cli is not compatible with Boto3 1.15.9
Solution
To resolve this issue, we recommend that users update the following packages to compatible versions, as outlined below:
pip install --upgrade awscli==1.18.150
This command will update the AWS CLI to version 1.18.150
And then:
pip install --upgrade boto3==1.15.9
This will upgrade boto3 to version 1.15.9
Users can confirm that each package has been updated by running these commands:
pip show awscli
Which will return:
Name: awscli Version: 1.18.150
And:
pip show boto3
Which will return
Name: boto3 Version: 1.15.9