Python 3.x 错误:client=boto3.client(';s3';)| AWS Elastic Beanstalk Worker环境

Python 3.x 错误:client=boto3.client(';s3';)| AWS Elastic Beanstalk Worker环境,python-3.x,amazon-web-services,amazon-s3,amazon-elastic-beanstalk,boto3,Python 3.x,Amazon Web Services,Amazon S3,Amazon Elastic Beanstalk,Boto3,我正在AWS Elastic Beanstalk Worker环境中工作。我有一个简单的应用程序,通过从S3 Bucket下载并上传到另一个S3 Bucket来处理图像 当我更新代码时,我在/var/log/httpd/error\u log s3\u client=boto3.client('s3')) SyntaxError:无效语法 提升类型(自我例外)、自我例外、自我回溯 请查找错误日志: 我的代码片段: 在使用boto处理AWS SES时,我没有遇到任何错误 导入boto.ses我

我正在AWS Elastic Beanstalk Worker环境中工作。我有一个简单的应用程序,通过从S3 Bucket下载并上传到另一个S3 Bucket来处理图像

当我更新代码时,我在/var/log/httpd/error\u log

s3\u client=boto3.client('s3'))

SyntaxError:无效语法

提升类型(自我例外)、自我例外、自我回溯

请查找错误日志:

我的代码片段:

在使用boto处理AWS SES时,我没有遇到任何错误


导入boto.ses我遇到了类似的问题

我对这个问题没有很好的理解,但通过将futures模块的版本固定到一个工作版本,我能够解除自己的障碍

例如,(在requirements.txt中)

我从这里得到的信息:

您可以显示更多的代码吗?您的导入语句看起来不像是在导入boto3.hi@MarkB。请查找上面附加的代码段。我已经导入了boto3库。在requirements.txt文件中,我添加了boto3以确保其已安装。
futures==2.2.0