I am trying to use \'py2app\' to generate a standalone application from some Python scripts. The Python uses the \'lxml\' package, and I\'ve found that I have to specify this ex
I have no experience with the combination of lxml and py2app specifically, but I've had issues with py2app not picking up modules that were not explicitly imported. For example, I had to explicitly include modules that are imported via __import__()
, like this:
OPTIONS['includes'] = [filename[:-3].replace('/', '.') for filename \
in glob.glob('path/to/*.py')]
Maybe it also helps in your case to insert an explicit from lxml import etree
somewhere in your code?