Hypdncy / NessusToReport

Nessus扫描报告自动化生成工具
Apache License 2.0
526 stars 135 forks source link

pywintypes.com_error: (-2147221005, '无效的类字符串', None, None) #10

Closed safebaseline closed 3 years ago

safebaseline commented 3 years ago

Traceback (most recent call last): File "main.py", line 46, in h.run() File "C:\Users\Administrator\Desktop\NessusToReport-20210521\modle\handle.py", line 95, in run func_type_run[self.docxtype]() File "C:\Users\Administrator\Desktop\NessusToReport-20210521\modle\handle.py", line 84, in run_all self.run_loops() File "C:\Users\Administrator\Desktop\NessusToReport-20210521\modle\handle.py", line 78, in run_loops DocxLoops(self.LOOPHOLES).run() File "C:\Users\Administrator\Desktop\NessusToReport-20210521\modle\docx\loops. py", line 101, in run self.update_doc_toc() File "C:\Users\Administrator\Desktop\NessusToReport-20210521\modle\docx\base.p y", line 193, in update_doc_toc update_toc_win(docx_abs_file) File "C:\Users\Administrator\Desktop\NessusToReport-20210521\modle\docx\base.p y", line 181, in update_toc_win word = win32com.client.DispatchEx("Word.Application") File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-p ackages\win32com\client__init__.py", line 113, in DispatchEx dispatch = pythoncom.CoCreateInstanceEx(clsid, None, clsctx, serverInfo, (py thoncom.IID_IDispatch,))[0] pywintypes.com_error: (-2147221005, '无效的类字符串', None, None)

Hypdncy commented 3 years ago

应该是没有安装微软的word,我使用的是office2019

Hypdncy commented 3 years ago

现在也可以使用wps2019了

nu0l commented 3 years ago

现在也可以使用wps2019了

WPS2019依旧报错

Hypdncy commented 3 years ago

需要安装正版的WPS,我是昨天做得测试,安装最新的wps

Hypdncy commented 3 years ago

去广告wps应该是不可以的

nu0l commented 3 years ago

需要安装正版的WPS,我是昨天做得测试,安装最新的wps

去广告wps应该是不可以的

我使用的是WPS2019专业增强版,从吾爱上下载的,一会换office测试

Hypdncy commented 3 years ago

好的,如果没问题,把别忘了close issuse