-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Description
Hi!
I'm trying to compile the program into exe with pyinstall.
When I run the program, I get the error that default.docx is not found. Is there any way I can resolve this?
Many thanks!!!
Error is below:
Traceback (most recent call last):
File "", line 1344, in
File "", line 952, in menu
File "", line 1291, in generate_report
File "site-packages\docxtpl__init__.py", line 116, in new_subdoc
File "site-packages\docxtpl__init__.py", line 123, in init
File "site-packages\docx\api.py", line 25, in Document
File "site-packages\docx\opc\package.py", line 116, in open
File "site-packages\docx\opc\pkgreader.py", line 32, in from_file
File "site-packages\docx\opc\phys_pkg.py", line 31, in new
docx.opc.exceptions.PackageNotFoundError: Package not found at 'C:\Users\sp\AppData\Local\Temp_MEI48882\docx\templates\default.docx'