错误:客户端= boto3.client('s3')| AWS Elastic Beanstalk工作人员环境 [英] Error: client = boto3.client('s3') | AWS Elastic Beanstalk Worker Environment
问题描述
我正在研究AWS Elastic Beanstalk Worker环境.我有一个简单的应用程序,可以通过从S3 Bucket&上传到另一个S3存储桶.
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.
更新代码时,我在 /var/log/httpd/error_log
When I update the code I get the error in /var/log/httpd/error_log
s3_client = boto3.client('s3')
s3_client = boto3.client('s3')
SyntaxError:语法无效
SyntaxError: invalid syntax
提高类型(self._exception),self._exception,self._traceback
raise type(self._exception), self._exception, self._traceback
请找到错误日志:
我的代码段:
在使用boto使用AWS SES时,我没有遇到任何错误
I faced no errors while working with AWS SES using boto
导入boto.ses
推荐答案
我遇到了类似的问题.
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.
例如,(在requirements.txt中)
For example, (in requirements.txt)
futures==2.2.0
我从这里获得的信息: https://github.com/datastax/python-driver/pull/387
The info that I have, I got from here: https://github.com/datastax/python-driver/pull/387
这篇关于错误:客户端= boto3.client('s3')| AWS Elastic Beanstalk工作人员环境的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!