freeze.py and dom.minidom

Greg Copeland gtcopeland at gmail.com
Tue Mar 20 19:36:02 CET 2007


I am attempting to freeze an application which uses the dom.minidom
parser.  When I execute my application, I get an import error of:
ImportError: No module named dom.minidom.  During the freeze process,
I can see:
freezing xml ...
freezing xml.dom ...
freezing xml.dom.NodeFilter ...
freezing xml.dom.domreg ...
freezing xml.dom.expatbuilder ...
freezing xml.dom.minicompat ...
freezing xml.dom.minidom ...
freezing xml.dom.pulldom ...
freezing xml.dom.xmlbuilder ...
freezing xml.parsers ...
freezing xml.parsers.expat ...
freezing xml.sax ...
freezing xml.sax._exceptions ...
freezing xml.sax.expatreader ...
freezing xml.sax.handler ...
freezing xml.sax.saxutils ...
freezing xml.sax.xmlreader ...

And in my target directory, I can see:
$ ls M_xml*
M_xml.c                     M_xml__dom.o
M_xml__sax___exceptions.o
M_xml__dom.c                M_xml__dom__pulldom.c
M_xml__sax__expatreader.c
M_xml__dom__domreg.c        M_xml__dom__pulldom.o
M_xml__sax__expatreader.o
M_xml__dom__domreg.o        M_xml__dom__xmlbuilder.c
M_xml__sax__handler.c
M_xml__dom__expatbuilder.c  M_xml__dom__xmlbuilder.o
M_xml__sax__handler.o
M_xml__dom__expatbuilder.o  M_xml.o                    M_xml__sax.o
M_xml__dom__minicompat.c    M_xml__parsers.c
M_xml__sax__saxutils.c
M_xml__dom__minicompat.o    M_xml__parsers__expat.c
M_xml__sax__saxutils.o
M_xml__dom__minidom.c       M_xml__parsers__expat.o
M_xml__sax__xmlreader.c
M_xml__dom__minidom.o       M_xml__parsers.o
M_xml__sax__xmlreader.o
M_xml__dom__NodeFilter.c    M_xml__sax.c
M_xml__dom__NodeFilter.o    M_xml__sax___exceptions.c

As you can see, minidom is being frozen and M_xml__dom__minidom.o is
compiled.  Likewise, I can confirm it linked into the application.
What do I need to do to get this to work with a frozen application?

Greg




More information about the Python-list mailing list