原文:flask_socket_io中报错RuntimeError: You need to use the eventlet server. See the Deployment section of the documentation for more information.的解决办法

最新的flask socketio 使用的是python socketio 如果在包中安装了gevent或evenlet,在服务器上使用时,就会报错 卸载gevent和evenlet有关的库,卸载后就好了 经测试发现,如果是用uwsgi启动,采用eventlet模式,process只能设置 个,且会造成线程堵塞,如果设置超过 个,也会报上面的错误 后来采用gunicorn解决 ...

2018-09-03 10:45 0 898 推荐指数:

查看详情

flask上线部署————“WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.”

因为钉钉推送消息中要可以实时查看测试报告,但是钉钉只能添加报告的url,所以考虑使用flask框架搭建一个report的访问接口,返回报告详情。 1.接口代码 测试报告是使用HTMLhttprunner生成的静态网页,确定好路由,可以分别访问不同的文件 ...

Mon Sep 28 17:51:00 CST 2020 0 14734
Nodejs npm安装socket.io报错解决办法

安装socket.io时,报错,提示需要安装Microsoft visual studio 2005 或 Net framework 2.0 sdk,没有找到vcbuild.exe,解决办法是安装 ...

Thu Jul 17 04:03:00 CST 2014 0 3375
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM