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

2019-08-01 12:40发布

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:

enter image description here

My Code Snippet:

enter image description here

I faced no errors while working with AWS SES using boto

import boto.ses

1条回答
狗以群分
2楼-- · 2019-08-01 13:39

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

查看更多
登录 后发表回答