Thu Feb 15, 2024 8:44 am
Dear Team,
I have been working on generating an executable using PyInstaller for a Python script that utilizes Spire.Doc to convert DOC files to PDF. However, upon attempting to run the generated executable, I encountered an error.
Please find the error details attached for your reference.
I would appreciate any insights or suggestions you might have to resolve this issue.
Best regards.
Traceback (most recent call last):
File "conv_docx_pdf_par.py", line 34, in <module>
File "conv_docx_pdf_par.py", line 7, in convert_docx_to_pdf
File "plum/function.py", line 642, in __call__
File "plum/function.py", line 592, in __call__
File "spire/doc/Document.py", line 95, in __init__
AttributeError: 'NoneType' object has no attribute 'Document_CreateDocumentF'
[1108361] Failed to execute script 'conv_docx_pdf_par' due to unhandled exception!
Exception ignored in: <function SpireObject.__del__ at 0x7facae501310>
Traceback (most recent call last):
File "spire/doc/common/SpireObject.py", line 30, in __del__
AttributeError: 'NoneType' object has no attribute 'Spire_FreeHandle'
as a general question, what is the proper way to generate executable from programs referencing your tool ?
Thanks
KR
Login to view the files attached to this post.