Error: client = boto3.client('s3') | AWS E

2019-08-01 13:12发布

问题:

I'm working on the AWS Elastic Beanstalk Worker Environment. I have a simple application to process images by downloading from S3 Bucket & upload to another S3 Bucket.

When I update the code I get the error in /var/log/httpd/error_log

s3_client = boto3.client('s3')

SyntaxError: invalid syntax

raise type(self._exception), self._exception, self._traceback

Please find the error log:

My Code Snippet:

I faced no errors while working with AWS SES using boto

import boto.ses

回答1:

I encountered a similar problem.

I don't have a good understanding of the problem, but I was able to unblock myself by pinning the version of the futures module to a working version.

For example, (in requirements.txt)

futures==2.2.0

The info that I have, I got from here: https://github.com/datastax/python-driver/pull/387