Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

执行.py插件无法获取标准输出 #7

Open
HuoYingCunCunZhang opened this issue Aug 3, 2020 · 2 comments
Open

执行.py插件无法获取标准输出 #7

HuoYingCunCunZhang opened this issue Aug 3, 2020 · 2 comments

Comments

@HuoYingCunCunZhang
Copy link

HuoYingCunCunZhang commented Aug 3, 2020

我在我的正式环境中执行. py文件频率是20秒,每次都有一个黑框一闪而过。而在我的测试环境貌似没有这样的情况可以成功获取标准输出内容,并且在前端页面可以获得对应的指标结果。初步分析是因为黑框的出现导致没有捕获到标准输出内容!请问这种问题如何解决。
ps:之所以说获取不到标准输出内容是因为开启DEBUG模式发现报这样的错误!

@UlricQin
Copy link
Member

UlricQin commented Aug 6, 2020

测试环境可以,生产环境不行,感觉是环境的问题,是不是系统层面有什么限制

@HuoYingCunCunZhang
Copy link
Author

测试环境可以,生产环境不行,感觉是环境的问题,是不是系统层面有什么限制

谢谢😜,这个问题可以通过打包. py成exe的方式解决。但是直接执行脚本的问题还是没有解决

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants