docx.opc.exceptions.PackageNotFoundError

1,627 views
Skip to first unread message

arun kumar s

unread,
Mar 9, 2015, 6:31:58 AM3/9/15
to pyins...@googlegroups.com
hi 

I am getting the error (docx.opc.exceptions.PackageNotFoundError: Package not found

while executing exe for python.I have generated a exe using python code for docx . I have used the following import(from docx import Document)

I am using PyInstaller in generating exe.

Below is the Error 

Traceback (most recent call last):
File "<string>", line 20, in <module>
File "C:\Python27\PyInstaller\build\Folder_name\out 00-PYZ.pyz\docx.ap
i", line 25, in Document
File "C:\Python27\PyInstaller\build\Folder_name\out 00-PYZ.pyz\docx.op
c.package", line 116, in open
File "C:\Python27\PyInstaller\build\Folder_name\out 00-PYZ.pyz\docx.op
c.pkgreader", line 32, in from_file
File "C:\Python27\PyInstaller\build\Folder_name\out 00-PYZ.pyz\docx.op
c.phys_pkg", line 31, in __new__
docx.opc.exceptions.PackageNotFoundError: Package not found at 'C:\Python27\PYIN
ST~1\dist\ADA_TE~1\docx\templates\default.docx'

Pls anybody can help

Hartmut Goebel

unread,
Mar 9, 2015, 6:51:00 AM3/9/15
to pyins...@googlegroups.com
Am 09.03.2015 um 08:07 schrieb arun kumar s:
I am getting the error (docx.opc.exceptions.PackageNotFoundError: Package not found

while executing exe for python.I have generated a exe using python code for docx . I have used the following import(from docx import Document)

Please follow the instructions at <https://github.com/pyinstaller/pyinstaller/wiki/If-Things-Go-Wrong> and <https://github.com/pyinstaller/pyinstaller/wiki/How-to-Report-Bugs>.

--
Schönen Gruß
Hartmut Goebel
Dipl.-Informatiker (univ), CISSP, CSSLP
Information Security Management, Security Governance, Secure Software Development

Goebel Consult, Landshut
http://www.goebel-consult.de

Blog: http://www.goebel-consult.de/blog/digitale-burgerrechte-in-der-ara-snowden
Kolumne: http://www.cissp-gefluester.de/2010-01-hinterturen-allen-ortes

Reply all
Reply to author
Forward
0 new messages