SOAPpy and py2exe

When working with SOAPpy 0.12.0 (and Python 2.4.x), py2exe achieves to retrieve all the modules (pyXML, fpconst, SOAPpy) except for the drivers. This results in having an exception during execution with the message "No Parsers Found".

A way to solve this is to add explicitly the path to the drivers (_xmlplus.sax.drivers2.*) into the py2exe options. For exemple :

setup(
    options = {"py2exe": { "compressed": 1,
                           "optimize": 2,
                           "ascii": 1,
                           "bundle_files": 1,
                           "includes": [ "encodings.utf_8", "_xmlplus.sax.drivers2.*" ] }},
    zipfile = None,
    windows = [MyAppWithSOAP]
    )

py2exeAndSOAPpy (last edited 2008-07-08 11:27:43 by localhost)