Open runningtime opened 6 years ago
主要报错信息: 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,请指教,谢谢!
是不是因为没有把 BeautifulReport 这个 packages 放在 site-packages 路径下?
@TesterlifeRaymond 在python的安装目录的site-packages路径下,有 BeautifulReport这个文件夹
ok 我先找到这个问题, 感谢你的反馈
主要报错信息: 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,请指教,谢谢!