简体   繁体   English

在AWS Beanstalk错误上部署Flask应用程序?内部服务器错误

[英]Deploying Flask App on AWS Beanstalk Errors? Internal server error

I'm trying to deploy a Flask App on AWS Beanstalk. 我正在尝试在AWS Beanstalk上部署Flask应用程序。 The app has already been deployed to other services and works fine, but each time I try to deploy on beanstalk I get the following error "attributeerror: module 'enum' has no attribute 'intflag'". 该应用程序已经部署到其他服务并且工作正常,但每次我尝试在beanstalk上部署时,我都会收到以下错误“attributeerror:module'enum'没有属性'intflag'”。 I've tried all the typical fixes, ie pip3/pip uninstall enum34 and it's returned that there's no package named 'enum34' installed. 我已经尝试了所有典型的修复程序,即pip3 / pip uninstall enum34,并且返回时没有安装名为“enum34”的软件包。 I also tried unsetting the PYTHONPATH to no avail as well. 我也尝试取消PYTHONPATH也无济于事。

Based on your description it sounds like your code is trying to access the IntFlag class in Python 3.4. 根据您的描述,听起来您的代码正在尝试访问Python 3.4中的IntFlag类。 According to the docs this class was first added in Python 3.6. 根据文档,这个类最初是在Python 3.6中添加的。

It looks like the latest supported version is now 3.6 so - if you were to try again using this new solution stack - I think it should work. 看起来最新支持的版本现在是3.6所以 - 如果你再次尝试使用这个新的解决方案堆栈 - 我认为它应该可行。 For reference, past versions can be found here . 作为参考,可以在此处找到过去的版本。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 内部服务器错误:AWS Elastic Beanstalk上的Flask上的Dash - Internal Server Error: Dash on Flask on AWS Elastic Beanstalk 在 AWS Elastic Beanstalk 中部署 Flask 应用程序 - Deploying Flask App in AWS Elastic Beanstalk 在AWS EBS上部署Flask App时出现500个内部服务器错误 - Getting 500 internal server error while Deploying Flask App on AWS EBS 在 AWS Elastic Beanstalk 上部署 Django-Wagtail 应用程序时出现 500 内部服务器错误 - 500 internal server error deploying Django-Wagtail application on AWS Elastic Beanstalk 如何在AWS EC2上部署Flask应用-内部服务器错误? - How to deploy flask app on AWS EC2 - Internal Server Error? 将 Django 应用程序部署到 Elastic Beanstalk 时出现内部服务器错误 500 - Internal Server Error 500 when deploying Django Application to Elastic Beanstalk AWS Beanstalk 中的 Django 应用程序部署 - 部署后出错 - 内部服务器错误 - Django app deployment in AWS Beanstalk - Error after deployment - Internal Server Error 部署 Chalice (AWS) 时出现内部服务器错误 - Internal Server Error when deploying Chalice (AWS) 在Elastic Beanstalk上使用Docker部署Flask应用程序:资源创建取消错误 - Deploying Flask app with Docker on Elastic Beanstalk: resource creation cancelled error Python Flask 服务器部署在 Elastic Beanstalk 上,出现 AWS 内部服务错误,日志显示 SECRET_KEY 从未设置? - Python Flask server deployed on Elastic Beanstalk with AWS Internal Service Error, Logs say SECRET_KEY was never set?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM