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

pywintypes.com_error: (-2146822307, 'OLE error 0x800a175d', None, None) #119

Open
WanZunGe opened this issue Jun 8, 2024 · 1 comment
Open

Comments

@WanZunGe
Copy link

WanZunGe commented Jun 8, 2024

这是完整错误提示
Traceback (most recent call last):
File "K:\Microsoft VS Code\my project\doc批量转换为docx.py", line 94, in
office.word.doc2docx(input_path=src_directory, output_path=dest_directory) #方法二
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "K:\python312\Lib\site-packages\office\lib\decorator_utils\instruction_url.py", line 128, in instruction_wrapper
instruction_res = func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "K:\python312\Lib\site-packages\office\api\word.py", line 37, in doc2docx
poword.doc2docx(input_path, output_path)
File "K:\python312\Lib\site-packages\poword\api\word.py", line 31, in doc2docx
mainWord.doc2docx(input_path, output_path)
File "K:\python312\Lib\site-packages\poword\core\WordType.py", line 65, in doc2docx
self.convert4word(type_id, input_path, output_path, docSuffix)
File "K:\python312\Lib\site-packages\poword\core\WordType.py", line 93, in convert4word
doc = word_app.Documents.Open(str(word_file), ReadOnly=1)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\AppData\Local\Temp\gen_py\3.12\00020905-0000-0000-C000-000000000046x0x8x7\Documents.py", line 93, in Open
ret = self.oleobj.InvokeTypes(19, LCID, 1, (13, 0), ((16396, 1), (16396, 17), (16396, 17), (16396, 17), (16396, 17), (16396, 17), (16396, 17), (16396, 17), (16396, 17), (16396, 17), (16396, 17), (16396, 17), (16396, 17), (16396, 17), (16396, 17), (16396, 17)),FileName
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
pywintypes.com_error: (-2146822307, 'OLE error 0x800a175d', None, None)

@WanZunGe
Copy link
Author

WanZunGe commented Jun 8, 2024

我是WIN11,office365企业版

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

1 participant