xml.dom.minidom + py2exe

Trond Gaarder trondgaNOSPAM at student.matnat.uio.no
Thu Jul 12 21:49:46 EDT 2001

A small problem concerning py2exe that I hope you can help me with:

I have a small OpenGL program that reads its scene graph from a XML file. I
use xml.dom.minidom to accomplish this, and everything works fine. But when
I try to compile the script into an .EXE with py2exe I get the following

warning: py2exe:
warning: py2exe: * The following modules were not found:
warning: py2exe: *   xml.dom.HierarchyRequestErr
warning: py2exe: *   riscosenviron
warning: py2exe: *   _xmlplus
warning: py2exe: *   ic
warning: py2exe: *   ce
warning: py2exe: *   riscos
warning: py2exe: *   SOCKS
warning: py2exe: *   rourl2path
warning: py2exe: *   riscospath
warning: py2exe:

And when I try to run the program:

Traceback (most recent call last):
  File "<string>", line 381, in ?
  File "<string>", line 299, in readScenegraph
  File "SceneGraph.pyc", line 187, in fromXML
  File "xml\dom\minidom.pyc", line 910, in parse
  File "xml\dom\minidom.pyc", line 901, in _doparse
  File "xml\dom\pulldom.pyc", line 289, in parse
  File "xml\sax\__init__.pyc", line 88, in make_parser
xml.sax._exceptions.SAXReaderNotAvailable: No parsers found

It looks like the XML module is using som kind of dynamic loader (like Pmw
does), and these modules naturally escape py2exe. Do any of you have any
tips on how to work around this problem? Something similar to bundlepmw.py


Trond Gaarder

E-mail: trondga at SPAM.ifi.uio.no
ICQ: 11811905

More information about the Python-list mailing list