I have a python script to take snapshots of the volumes of all running instances in AWS. The script is not working in crontab but it will will work when called otherwise.
I've written the output of the cronjob to a file and this is the output:
Traceback (most recent call last):
File "completeBackUp2.py", line 2, in <module>
import boto3
ImportError: No module named boto3
boto3 is installed and as previously mentioned, the script would work fine when called otherwise.
This is what my crontab looks like:
0 1 * * * /usr/bin/python /opt/scripts/backup/completeBackUp2.py > /opt/scripts/backup/output 2>&1