docx.opc.exceptions.PackageNotFoundError

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Arun Sohanlal
    New Member
    • Mar 2015
    • 3

    docx.opc.exceptions.PackageNotFoundError

    Hi ,


    I am getting the error (docx.opc.excep tions.PackageNo tFoundError: Package not found at ...\dist\docx1. exe\docx\templa tes\default.doc x')

    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 Py2Nsis in generating exe.

    Pls anybody can help

    Thanks,
    Arun
  • bvdet
    Recognized Expert Specialist
    • Oct 2006
    • 2851

    #2
    You should consult documentation for py2Nsis. It appears your imports are not being packaged. Perhaps you should attempt to make your exe with py2exe or pyinstaller. I have used pyinstaller, and there is an active community supporting it.

    Comment

    • Arun Sohanlal
      New Member
      • Mar 2015
      • 3

      #3
      I am getting the same error while using pyinstaller/py2exe

      below is the error :

      Traceback (most recent call last):
      File "<string>", line 20, in <module>
      File "C:\Python27\Py Installer\build \Folder_name\ou t00-PYZ.pyz\docx.ap
      i", line 25, in Document
      File "C:\Python27\Py Installer\build \Folder_name\ou t00-PYZ.pyz\docx.op
      c.package", line 116, in open
      File "C:\Python27\Py Installer\build \Folder_name\ou t00-PYZ.pyz\docx.op
      c.pkgreader", line 32, in from_file
      File "C:\Python27\Py Installer\build \Folder_name\ou t00-PYZ.pyz\docx.op
      c.phys_pkg", line 31, in __new__
      docx.opc.except ions.PackageNot FoundError: Package not found at 'C:\Python27\PY IN
      ST~1\dist\ADA_T E~1\docx\templa tes\default.doc x'

      Comment

      • bvdet
        Recognized Expert Specialist
        • Oct 2006
        • 2851

        #4
        I suggest posting to the "PyInstalle r" group. The group can be found here.

        Comment

        Working...