I have a tkinter
app that I am compiling to an .exe
via py2exe
.
In the setup file, I have set it to include lxml
,
Looks like py2exe
doesn't realize it should include the lxml._elementpath
module, which is conditionally imported by lxml.etree
. You can tell it to include that module explicitly with the includes
keyword argument in your setup.py
.
setup(
options={'py2exe': {"includes": ["lxml._elementpath"]}}
)
Py2exe has made documentation of this error on this page: http://www.py2exe.org/index.cgi/WorkingWithVariousPackagesAndModules
They also offer a working solution.