Django Storages - Could Not Load Amazon's S3 Bindings Errors
Do you have python-boto installed?
pip install boto
or
pip install boto3
Consider using boto3 instead of the older boto:
requirements.txt:
pip install django-storages
pip install boto3
settings.py:
DEFAULT_FILE_STORAGE = 'storages.backends.s3boto3.S3Boto3Storage'
Had this issue recently on TravisCI with a Django repo
Running python manage.py compress
failed with the error:
Could not load Boto's S3 bindings.
It happened to be an issue with boto trying to import google-compute-engine
module that was not installed.
One way to fix the problem is by installing GCE engine with
pip install google-compute-engine
EDIT:
After investigation, it appears that this particular problem is due to Travis being on GCE, and GCE having a default /etc/boto.cfg
file, which prompts boto to look for the GCE engine.
Another way to fix this problem on Travis without installing more dependencies is to set the default config with BOTO_CONFIG
to point to nowhere by setting the variable
BOTO_CONFIG=/tmp
in your travis.yml
See this Issue https://github.com/boto/boto/issues/3741