[英]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.