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"]}}
)