[lxml-dev] _elementpath.pyc and py2exe problem
Werner F. Bruhin
werner.bruhin at free.fr
Fri Aug 31 18:11:22 CEST 2007
Greg Willden wrote:
> Hi Stefan,
> That is the conclusion I came to as well. The tool that searches for
> the modules is called modulefinder and is a part of the standard
> library. Modulefinder is unable to find _elementpath.* because it is
> only imported from the C code.
>
> My work-around was to add the following line to my code
> import _elementpath as DONTUSE #this is a workaround for Modulefinder
> and lxml
Why not change the setup.py and force py2exe to include all of lxml
(with the "packages" option) or maybe the "includes" option for just
that file.
Werner
More information about the lxml-dev
mailing list