Search code examples
pythonpy2exepython-docxpython-packaging

Error while generating executable files using py2exe (python)


I am trying to create an executable file which is using module python-docx.

The executable files is created but this error occurs when I run the executable file.

[Errno 2] No such file or directory: 'D:\Pycharm Projects\pydocx\dist\library.zip\docx\parts\..\templates\default-footer.xml'

The normal .py file which I am trying to convert into a .exe works perfectly fine.

Can anyone suggest how should I resolve this


Solution

  • Switched to pyinstaller and everything worked flawlessly.