S3_Sync Module Not Working with ModuleNotFoundError: No module named 'botocore.vendored'

I am having an issue using the S3_Sync module.

To start, here is the playbook I am trying to run:

It looks like you are mixing boto* packages from the ubuntu repo and pip.
You should clean that up, python3-boto3 18.04 is to old since you need 1.4.4 or newer but Ubuntu ships 1.4.2

Kai-

I appreciate you pointing me in the right direction. After much research (and some trial and error), it seems that one solution was to upgrade the boto3 and botocore using the following command on the host machine:

sudo python3 -m pip install boto3 --upgrade

The result “Successfully installed boto3-1.9.134 botocore-1.12.134” seemed to move the library levels to where they would work properly. My playbook runs and the sync occurs to S3 as desired!

Not sure if my python/pip configuration is “best practice” at this point, as it seems like a virtual environment might eliminate some of the issues I incurred. I also installed setuptools and wheel using

python3 -m pip install --upgrade pip setuptools wheel --user

prior to upgrading boto3/botocore, but not sure that was necessary.

If you have any further advice, that would be welcome.

Brad Kane