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

请教,直接运行sample.py报错。 #19

Open
runningtime opened this issue Aug 9, 2018 · 3 comments
Open

请教,直接运行sample.py报错。 #19

runningtime opened this issue Aug 9, 2018 · 3 comments

Comments

@runningtime
Copy link

主要报错信息:
File "G:\BeautifulReport\BeautifulReport.py", line 189, in complete_output
return self.outputBuffer.getvalue()
AttributeError: 'NoneType' object has no attribute 'getvalue'
即:
if self.sys_stdout:
sys.stdout = self.sys_stdout
sys.stderr = self.sys_stderr
self.sys_stdout = None
self.sys_stderr = None
return self.outputBuffer.getvalue()
self.sys_stdout为None,
self.outputBuffer也为None,请指教,谢谢!

@TesterlifeRaymond
Copy link
Owner

是不是因为没有把 BeautifulReport 这个 packages 放在 site-packages 路径下?

@runningtime
Copy link
Author

@TesterlifeRaymond 在python的安装目录的site-packages路径下,有 BeautifulReport这个文件夹

@TesterlifeRaymond
Copy link
Owner

ok 我先找到这个问题, 感谢你的反馈

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