py2exe and SOAP.py
scott_hathaway at riskvision.com
Tue Aug 28 13:59:20 CEST 2001
Thanks for the tip. I tried adding the imports as you show, but still get
the errors with py2exe. I will try with Gordon's installer and see if I can
get it working with it.
----- Original Message -----
From: "Gregory P. Smith" <greg at electricrain.com>
To: "Scott Hathaway" <scott_hathaway at riskvision.com>
Cc: <python-list at python.org>
Sent: Monday, August 27, 2001 10:55 PM
Subject: Re: py2exe and SOAP.py
> On Thu, Aug 23, 2001 at 11:56:13AM -0500, Scott Hathaway wrote:
> > I am trying to build an .exe with py2exe on Windows with a project that
> > SOAP.py. When I try to run the .exe I get this error:
> > LookUp Error: no codec search functions registered: can't find
> > Any ideas on how to fix this?
> Yes, this one was annoying. I make sure I do this somewhere in my
> code have the needed dependencies show up to py2exe:
> # don't use this file in actual code, its sole purpose is to import
> # everything necessary to grab from PyXML so that Gordon's Installer
> # will package up a python program that uses PyXML properly.
> # include PyXML
> import xml
> from xml import dom, marshal, parsers, sax, utils #,unicode
> import xml.dom.minidom
> import xml.parsers.xmlproc
> import xml.parsers.xmlproc.xmlproc
> import xml.parsers.pyexpat
> from xml.sax import drivers, drivers2
> from xml.sax.drivers import drv_pyexpat, drv_xmlproc
> from xml.sax.drivers2 import drv_pyexpat, drv_xmlproc
> import xml.unicode
> from xml.unicode import iso8859, utf8_iso
> I believe it was the latter two lines that had to be added to work around
> the missing codec problem.
> I also renamed the PyXML installation's '_xmlplus' directory to 'xml'
> (replacing the tiny 'xml' directory that comes with python) so that the
> PyXML modules are packaged correctly for me.
> Gregory P. Smith gnupg/pgp: http://electricrain.com/greg/keys/
> C379 1F92 3703 52C9 87C4 BE58 6CDA DB87 105D 9163
More information about the Python-list