运行打开和新建excel文档指令均报“请检查你的电脑是否已安装wps", 重新安装wps依然报错,下方是 运行新建一个excel文档报的错,求大侠指点T-T,先谢过了~~~~
【报错日志】
请检查你的电脑是否已安装wps
Traceback (most recent call last):
File "C:\Program Files (x86)\ShadowBot\shadowbot-5.12.26\python\lib\site-packages\win32com\client\dynamic.py", line 89, in _GetGoodDispatch
IDispatch = pythoncom.connect(IDispatch)
pywintypes.com_error: (-2147221005, '无效的类字符串', None, None)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 187, in _create_instance
File "C:\Program Files (x86)\ShadowBot\shadowbot-5.12.26\python\lib\site-packages\win32com\client\__init__.py", line 95, in Dispatch
dispatch, userName = dynamic._GetGoodDispatchAndUserName(dispatch,userName,clsctx)
File "C:\Program Files (x86)\ShadowBot\shadowbot-5.12.26\python\lib\site-packages\win32com\client\dynamic.py", line 114, in _GetGoodDispatchAndUserName
return (_GetGoodDispatch(IDispatch, clsctx), userName)
File "C:\Program Files (x86)\ShadowBot\shadowbot-5.12.26\python\lib\site-packages\win32com\client\dynamic.py", line 91, in _GetGoodDispatch
IDispatch = pythoncom.CoCreateInstance(IDispatch, None, clsctx, pythoncom.IID_IDispatch)
pywintypes.com_error: (-2147221005, '无效的类字符串', None, None)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Program Files (x86)\ShadowBot\shadowbot-5.12.26\python\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "C:\Program Files (x86)\ShadowBot\shadowbot-5.12.26\python\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Program Files (x86)\ShadowBot\shadowbot-5.12.26\python\lib\site-packages\xbot_interpreter.py", line 87, in <module>
main()
File "C:\Program Files (x86)\ShadowBot\shadowbot-5.12.26\python\lib\site-packages\xbot_interpreter.py", line 49, in main
mod.main(args)
File "C:\Users\33253\AppData\Local\ShadowBot\users\117854851304321025\apps\af7278d4-d264-4617-b77e-a92d0322b4eb\xbot_robot\main.py", line 33, in main
excel_instance = xbot_visual.excel.launch(launch_way="create", driver_way="auto_check", open_filename="", save_filename="D:\\纳税人信息自建.xlsx", isvisible=True, ignoreformula=False, password=xbot_visual.decrypt(""), write_password=xbot_visual.decrypt(""), update_links=False, _block=("main", 16, "启动Excel"))
File "<string>", line 89, in wrapper
File "<string>", line 84, in wrapper
File "<string>", line 49, in launch
File "<string>", line 41, in create
File "<string>", line 28, in create
File "<string>", line 193, in _create_instance
ValueError: 请检查你的电脑是否已安装wps